Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. JIRA_KEY=$(curl --request GET "http://jenkins-server/job/myProject/job/mySubProject/job/myComponent/${BUILD_NUMBER}/api/xml?xpath=/*/changeSet/item/comment" | sed -e "s/<comment>(.*)</comment>/1/")
  2.  
  3. JIRA_KEY=$(echo $JIRA_KEY | cut -c10-17)
  4.  
  5. <freeStyleBuild _class="hudson.model.FreeStyleBuild">
  6. <changeSet _class="hudson.plugins.git.GitChangeSetList">
  7. <item _class="hudson.plugins.git.GitChangeSet">
  8. <comment>
  9. JRA-1011 This is commit
  10. message.
  11. </comment>
  12. </item>
  13. </changeSet>
  14. </freeStyleBuild>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement