Guest User

Untitled

a guest
Aug 21st, 2018
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.08 KB | None | 0 0
  1. Extracts JIRA information for the build to environment variables.
  2. Available variables:
  3. JIRA_ISSUES - A comma separated list of issues which are referenced in the version control system changelog
  4. JIRA_URL - Primary URL for the JIRA server
  5. Typical usage:
  6.  
  7. Add this build step
  8. Use the "Progress JIRA issues by workflow action" or "Move issues matching JQL to the specified version" with JQL like:
  9. issue in (${JIRA_ISSUES})
  10.  
  11. <builders>
  12. <hudson.plugins.jira.JiraEnvironmentVariableBuilder plugin="jira@3.0.0"/>
  13. <hudson.plugins.jira.JiraIssueUpdateBuilder plugin="jira@3.0.0">
  14. <jqlSearch>issue in (${JIRA_ISSUES})</jqlSearch>
  15. <workflowActionName>Ready for Review</workflowActionName>
  16. <comment>add comment</comment>
  17. </hudson.plugins.jira.JiraIssueUpdateBuilder>
  18. </builders>
  19.  
  20. GitHub pull request #356 of commit 2e2b92d107a5460c4cc593fcab78c63f800d6472, no merge conflicts.
  21. Setting status of 2e2b92d107a5460c4cc593fcab78c63f800d6472 to PENDING with url https://myjenkins.com/job/cicd-myjob-prtest-unittest/69/ and message: 'running tox...'
  22. Using context: tox testing
  23. [EnvInject] - Loading node environment variables.
  24. Building remotely on myslave.node.box.com (linux) in workspace /var/lib/jenkins/workspace/cicd-myjob-prtest-unittest
  25. > git rev-parse --is-inside-work-tree # timeout=10
  26. Fetching changes from the remote Git repository
  27. > git config remote.origin.url https://mygithub.com/myuser/myproject.git # timeout=10
  28. Fetching upstream changes from https://mygithub.com/myuser/myproject.git
  29. > git --version # timeout=10
  30. using GIT_ASKPASS to set credentials Github Service Account Username with token
  31. > git fetch --tags --progress https://mygithub.com/myuser/myproject.git +refs/pull/*:refs/remotes/origin/pr/*
  32. > git rev-parse refs/remotes/origin/pr/356/merge^{commit} # timeout=10
  33. > git rev-parse refs/remotes/origin/origin/pr/356/merge^{commit} # timeout=10
  34. Checking out Revision 0ff9e43bbc1385303429f7bcf93fea36e8c455d3 (refs/remotes/origin/pr/356/merge)
  35. > git config core.sparsecheckout # timeout=10
  36. > git checkout -f 0ff9e43bbc1385303429f7bcf93fea36e8c455d3
  37. Commit message: "Merge 2e2b92d107a5460c4cc593fcab78c63f800d6472 into 731994024e723b1257374f521b4784060df9e5b5"
  38. First time build. Skipping changelog.
  39. [JIRA] Setting JIRA_ISSUES to .
  40. [JIRA] Updating issues using workflow action Ready for Review.
  41. [JIRA] JQL: issue in ()
  42. [JIRA] Updating issue MYPROJECT-1234
  43. Setting status of 2e2b92d107a5460c4cc593fcab78c63f800d6472 to SUCCESS with url https://myjenkins.com/job/cicd-myjob-prtest-unittest/69/ and message: 'All is well.
  44. '
  45. Using context: tox testing
  46. Finished: SUCCESS
  47.  
  48. <publishers>
  49. <hudson.plugins.jira.JiraIssueUpdater plugin="jira@3.0.0">
  50. <issueSelector class="hudson.plugins.jira.selector.JqlIssueSelector">
  51. <jql>issue=MYPROJECT-1234</jql>
  52. </issueSelector>
  53. <labels/>
  54. </hudson.plugins.jira.JiraIssueUpdater>
  55. </publishers>
  56.  
  57. commit 2e2b92d107a5460c4cc593fcab78c63f800d6472 (HEAD -> MYPROJECT-1234, origin/MYPROJECT-1234)
  58. Author: myuser <myuser@mygithub.com>
  59. Date: Tue Aug 21 15:55:41 2018 -0500
  60.  
  61. MYPROJECT-1234: Tox testing
  62.  
  63. MYPROJECT-1234 change the data.
Add Comment
Please, Sign In to add comment