Commit a2acc512 authored by Ishtiaq Ahmed's avatar Ishtiaq Ahmed

Update Jenkinsfile

parent 8059fcf8
...@@ -36,17 +36,11 @@ ...@@ -36,17 +36,11 @@
steps { steps {
script { script {
echo "building application" echo "building application"
withCredentials([usernamePassword(credentialsId: 'docker-hub-creds', passwordVariable: 'PASS', usernameVariable: 'USER')]) { withCredentials([usernamePassword(credentialsId: 'gitlab-ishtiaq', passwordVariable: 'PASS', usernameVariable: 'USER')]) {
sh "sed -i 's/VERSION/${env.BUILD_ID}/g' docker-build.sh" sh "sed -i 's/VERSION/${env.BUILD_ID}/g' docker-build.sh"
sh 'chmod 777 docker-build.sh' sh 'chmod 777 docker-build.sh'
sh './docker-build.sh' sh './docker-build.sh'
// sh 'docker build -t my-app:1.0 .'
// sh 'docker tag my-app:1.0 mshussain/my-app:1.0'
// sh 'echo $PASS | docker login -u $USER --password-stdin'
// sh 'docker push mshussain/my-app:1.0'
} }
} }
} }
...@@ -59,7 +53,7 @@ ...@@ -59,7 +53,7 @@
projectId: env.PROJECT_ID, \ projectId: env.PROJECT_ID, \
clusterName: env.CLUSTER_NAME, \ clusterName: env.CLUSTER_NAME, \
location: env.LOCATION, \ location: env.LOCATION, \
manifestPattern: 'dep.yaml', \ manifestPattern: 'dep-nisum-cicd.yaml', \
credentialsId: env.CREDENTIALS_ID, \ credentialsId: env.CREDENTIALS_ID, \
verifyDeployments: true]) verifyDeployments: true])
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment