Hi Team,
We have to send Jenkins build status to JIRA ticket for currently selected JIRA ticket. We have to pass JIRA current issue key in Jenkins pipeline script. Currently its working for hard coded JIRA issue value(Ex: LPPAD-124) and its working absolutly fine. Now I need to pass the JIRA current ticket / issue nu,ber to the pipeline script.
This Jenkinks, build is set up to trigger form JIRA, it is also working fien, Now need to fecth each Jira triggering get the current build status on the JIRA ticket.
Script:
post {
always {
jiraAddComment comment: "Job \'${JOB_NAME}\' build number (${BUILD_NUMBER}) is done and build status is ${currentBuild.currentResult} ,Please go to ${BUILD_URL}console and verify the build", idOrKey: 'LPPAD-124', site: 'jira_integration'
Here, instead of 'LPPAD-124', I need to pass the dynamic , current JIRA ticket value. Please help me to fix this.
Thank you,
Dev G
Where are you writing and running this script?
In Jenkins pipeline, I am writting this script. Its a shell script.
Thank you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, so how is it being triggered?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Team,
Please repsond on this, its blocking our deliverables.
Thanks in advance,
Dev G
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.