Hi,
I am using Multibranch Job.
I have a Webhook for my repository in gilab which is triggered when there is a push to dev branch and then webhook starts the build in Jenkins
At the end of build process, I created and updated chaneglog file and push it to dev branch again which would trigger the webhook again and make a loop of builds in Jenkins.
Any suggestions ?
Thanks
--
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/2ce983bc-fb40-4b3a-9fd8-719040d32e4e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thanks on the tip
stage('Publish') {
// if we dont find SKIP_PUBLISH in git log
// then we proceed with push
// note, we're checking the status of the grep command
// not the output. grep status will be 0 if we find the
// string and 1 if we dont find
when {
branch 'master'
expression {
grepStatus = sh(returnStatus: true,
script: 'git log -1 | grep SKIP_PUBLISH')
return 1 == grepStatus
}
}
Thanks on the tipCan you please elaborate how did you exit ?
--
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/55df0cca-759d-41f5-abc6-6c16370c1f63%40googlegroups.com.