mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-27 09:25:49 +00:00
fix Jenkinsfile
This commit is contained in:
parent
ef980b8a40
commit
486db094bb
1 changed files with 8 additions and 4 deletions
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
|
@ -3,7 +3,7 @@ pipeline {
|
||||||
agent any
|
agent any
|
||||||
|
|
||||||
environment {
|
environment {
|
||||||
BUILD_CONTAINER_ID = ''
|
BUILD_CONTAINER_ID='test'
|
||||||
}
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
|
@ -18,8 +18,12 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
sh 'docker run -v $HOME/.m2:/root/.m2 -d petclinic-build > build_id'
|
sh 'docker run -v $HOME/.m2:/root/.m2 -d petclinic-build > id'
|
||||||
env.BUILD_CONTAINER_ID = sh (returnStdout: true, script: 'echo $(cat build_id)').trim()
|
script {
|
||||||
|
BUILD_CONTAINER_ID = sh(
|
||||||
|
script: 'echo $(cat id)'
|
||||||
|
).trim()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue