Commit a2acc512 authored by Ishtiaq Ahmed's avatar Ishtiaq Ahmed

Update Jenkinsfile

parent 8059fcf8
......@@ -36,17 +36,11 @@
steps {
script {
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 'chmod 777 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 @@
projectId: env.PROJECT_ID, \
clusterName: env.CLUSTER_NAME, \
location: env.LOCATION, \
manifestPattern: 'dep.yaml', \
manifestPattern: 'dep-nisum-cicd.yaml', \
credentialsId: env.CREDENTIALS_ID, \
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