Skip to content

Commit

Permalink
Jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
vfarcic committed Aug 15, 2017
1 parent 5ec3e07 commit c4f1467
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,11 @@ pipeline {
stage("checkout") {
steps {
script {
echo "111"
def props = readProperties file: "/run/secrets/cluster-info.properties"
echo "222"
env.HOST_IP = props.hostIp
echo "333"
env.DOCKER_HUB_USER = props.dockerHubUser
echo "444"
}
checkout scm
echo "555"
}
}
stage("build") {
Expand All @@ -35,11 +30,17 @@ pipeline {
}
}
stage("release") {
when {
branch "master"
}
steps {
dockerRelease("go-demo-2", env.DOCKER_HUB_USER)
}
}
stage("deploy") {
when {
branch "master"
}
agent {
label "prod"
}
Expand Down

0 comments on commit c4f1467

Please sign in to comment.