Skip to content

Commit d8fcc99

Browse files
author
Manuel Perez Belmonte
committed
issue solved in jenkinsfile
1 parent f3478f3 commit d8fcc99

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

Jenkinsfile

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ node('docker') {
1919
archiveArtifacts artifacts: 'target/*.jar'
2020

2121
stage "Build image - Package"
22-
echo ("Building Components")
23-
def postgresimage = docker.build("elastest/ece-postgres", "./postgres")
22+
# echo ("Building Components")
23+
# def postgresimage = docker.build("elastest/ece-postgres", "./postgres")
24+
2425
echo ("Building ECE Image")
2526
def myimage = docker.build 'elastest/ece'
2627

@@ -29,16 +30,16 @@ node('docker') {
2930

3031
stage "Publish"
3132
echo ("Publishing")
32-
withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'elastestci-dockerhub',
33-
usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD']]) {
34-
sh 'docker login -u "$USERNAME" -p "$PASSWORD"'
35-
postgresimage.push()
36-
}
33+
# withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'elastestci-dockerhub',
34+
# usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD']]) {
35+
# sh 'docker login -u "$USERNAME" -p "$PASSWORD"'
36+
# postgresimage.push()
37+
# }
3738

3839
withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'elastestci-dockerhub',
3940
usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD']]) {
4041
sh 'docker login -u "$USERNAME" -p "$PASSWORD"'
4142
myimage.push()
4243
}
4344
}
44-
}
45+
}

0 commit comments

Comments
 (0)