mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-19 22:35:50 +00:00
branch
This commit is contained in:
parent
6a485a711a
commit
fda33aa261
1 changed files with 9 additions and 2 deletions
11
Jenkinsfile
vendored
11
Jenkinsfile
vendored
|
@ -3,7 +3,9 @@ pipeline {
|
||||||
|
|
||||||
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()
|
||||||
DOCKER_HUB_USER = "m1kkY8"
|
DOCKER_HUB_USER = "m1kky8"
|
||||||
|
DOCKRHUB_CREDS = "580b959d-d40a-422f-a3d7-cf11b2ec7a4c"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
|
@ -23,7 +25,12 @@ pipeline {
|
||||||
|
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
steps {
|
steps {
|
||||||
sh './gradlew build -x test'
|
script {
|
||||||
|
def branch = env.BRANCH_NAME
|
||||||
|
sh """
|
||||||
|
echo $BRANCH_NAME
|
||||||
|
"""
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue