mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-19 14:05:50 +00:00
global agent
This commit is contained in:
parent
6fbbd7ccab
commit
4c96fecd9e
1 changed files with 1 additions and 4 deletions
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
|
@ -1,5 +1,5 @@
|
||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent { label 'vps-agent1' }
|
||||||
|
|
||||||
environment {
|
environment {
|
||||||
GIT_COMMIT_SHORT = sh(script: "git rev-parse --short HEAD", returnStdout: true).trim()
|
GIT_COMMIT_SHORT = sh(script: "git rev-parse --short HEAD", returnStdout: true).trim()
|
||||||
|
@ -10,7 +10,6 @@ pipeline {
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('checkStyle') {
|
stage('checkStyle') {
|
||||||
agent { label 'vps-agent1' }
|
|
||||||
when { not {branch 'main' }}
|
when { not {branch 'main' }}
|
||||||
steps {
|
steps {
|
||||||
echo "Syle Check"
|
echo "Syle Check"
|
||||||
|
@ -19,7 +18,6 @@ pipeline {
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Test') {
|
stage('Test') {
|
||||||
agent { label 'vps-agent1' }
|
|
||||||
when { not {branch 'main' }}
|
when { not {branch 'main' }}
|
||||||
steps {
|
steps {
|
||||||
echo "Running tests"
|
echo "Running tests"
|
||||||
|
@ -28,7 +26,6 @@ pipeline {
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
agent { label 'vps-agent1' }
|
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
def branch = env.BRANCH_NAME
|
def branch = env.BRANCH_NAME
|
||||||
|
|
Loading…
Reference in a new issue