mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-19 22:15:50 +00:00
explicit agent definition
This commit is contained in:
parent
be9b774c1d
commit
9ef77008cc
1 changed files with 3 additions and 1 deletions
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
|
@ -1,5 +1,5 @@
|
||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent none
|
||||||
|
|
||||||
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()
|
||||||
|
@ -9,6 +9,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
|
agent { label 'vps-agent1' }
|
||||||
stage('checkStyle') {
|
stage('checkStyle') {
|
||||||
when { not {branch 'main' }}
|
when { not {branch 'main' }}
|
||||||
steps {
|
steps {
|
||||||
|
@ -17,6 +18,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Test') {
|
stage('Test') {
|
||||||
|
agent { label 'vps-agent1' }
|
||||||
when { not {branch 'main' }}
|
when { not {branch 'main' }}
|
||||||
steps {
|
steps {
|
||||||
sh './gradlew test'
|
sh './gradlew test'
|
||||||
|
|
Loading…
Reference in a new issue