stage('Build image') {steps {
sh 'TAG=$(git describe --candidate=1 --tags)'
sh 'TAG=$(echo $TAG | cut -d\'-\' -f 1)'
sh 'WEB_IMAGE_NAME=' + env['ACR_LOGINSERVER'] + '/my-project-1499882073260/test:' + env['TAG']
sh 'sudo docker build -t ${WEB_IMAGE_NAME} -f WebApplication/WebApplication1/Dockerfile WebApplication/.'
}
}
def tag = sh (returnStdout: true, script: "git describe --candidate=1 --tags").trim() env.TAG = sh (returnStdout: true, script: "echo ${tag} | cut -d\'-\' -f 1").trim()
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/44d030af-6af6-4f5a-815b-030e89fc5e3f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/8effa089-07c3-4918-afdd-858513ef13cc%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/7b789802-5cac-4801-9d02-2f4cb732eefb%40googlegroups.com.
[Pipeline] stage [Pipeline] { (shhhh)[Pipeline] sh [test] Running shell script + echo 134 [Pipeline] echo 134 [Pipeline] echo 134 [Pipeline] } [Pipeline] // stage
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/562025ac-3867-432b-a7fe-adb0d8901093%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/bd6b658f-d822-4025-8056-e98cc01d13b0%40googlegroups.com.