[JIRA] (JENKINS-57746) provide issue IDs associated with a Pull Request

7 views
Skip to first unread message

nickbroon@gmail.com (JIRA)

unread,
May 29, 2019, 11:46:03 AM5/29/19
to jenkinsc...@googlegroups.com
Nicholas Brown created an issue
 
Jenkins / Improvement JENKINS-57746
provide issue IDs associated with a Pull Request
Issue Type: Improvement Improvement
Assignee: Unassigned
Components: bitbucket-branch-source-plugin
Created: 2019-05-29 15:45
Priority: Minor Minor
Reporter: Nicholas Brown

Currently the bitbucket branch source plugin provides the following environment variables:

"BRANCH_NAME"
"CHANGE_ID"
"CHANGE_TARGET"
"CHANGE_BRANCH"
"CHANGE_FORK"
"CHANGE_URL"
"CHANGE_TITLE"
"CHANGE_AUTHOR"
"CHANGE_AUTHOR_DISPLAY_NAME"
"CHANGE_AUTHOR_EMAIL"
"TAG_NAME"
"TAG_TIMESTAMP"
"TAG_UNIXTIME"
"TAG_DATE"

It would be very useful if this was extended to provide any issue IDs associated with a Pull Request ("CHANGE" in the above semantics).

BitBucket Server provides a REST API to get issue IDs associated with a PR:

/rest/jira/1.0/projects/

{projectKey}

/repos/

{repositorySlug}

/pull-requests/

{pullRequestId}

/issues

https://docs.atlassian.com/bitbucket-server/rest/5.3.0/bitbucket-jira-rest.html

Perhaps this could be exposed by the plugins EnvironmentContributor extension as something like "CHANGE_ISSUES" ?

This would allow for use of the various Jira plugin steps to do things like update Jira tickets with information from a pipeline build of a pull request.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

nickbroon@gmail.com (JIRA)

unread,
May 29, 2019, 11:48:02 AM5/29/19
to jenkinsc...@googlegroups.com

nickbroon@gmail.com (JIRA)

unread,
May 29, 2019, 11:49:02 AM5/29/19
to jenkinsc...@googlegroups.com
Nicholas Brown updated an issue
Currently the bitbucket branch source plugin provides the following environment variables:

"BRANCH_NAME"
"CHANGE_ID"
"CHANGE_TARGET"
"CHANGE_BRANCH"
"CHANGE_FORK"
"CHANGE_URL"
"CHANGE_TITLE"
"CHANGE_AUTHOR"
"CHANGE_AUTHOR_DISPLAY_NAME"
"CHANGE_AUTHOR_EMAIL"
"TAG_NAME"
"TAG_TIMESTAMP"
"TAG_UNIXTIME"
"TAG_DATE"

It would be very useful if this was extended to provide any issue IDs associated with a Pull Request (" CHANGE CHANGE_ " in the above semantics).


BitBucket Server provides a REST API to get  issue IDs associated with a PR:

{noformat}

/rest/jira/1.0/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/issues
{noformat}


https://docs.atlassian.com/bitbucket-server/rest/5.3.0/bitbucket-jira-rest.html

Perhaps this could be exposed by the plugins EnvironmentContributor extension as something like "CHANGE_ISSUES" ?

This would allow  for use of the various Jira plugin steps to do things like update Jira tickets with information from a pipeline build of a pull request.

nickbroon@gmail.com (JIRA)

unread,
May 29, 2019, 11:49:02 AM5/29/19
to jenkinsc...@googlegroups.com
Nicholas Brown updated an issue
Currently the bitbucket branch source plugin provides the following environment variables:

"BRANCH_NAME"
"CHANGE_ID"
"CHANGE_TARGET"
"CHANGE_BRANCH"
"CHANGE_FORK"
"CHANGE_URL"
"CHANGE_TITLE"
"CHANGE_AUTHOR"
"CHANGE_AUTHOR_DISPLAY_NAME"
"CHANGE_AUTHOR_EMAIL"
"TAG_NAME"
"TAG_TIMESTAMP"
"TAG_UNIXTIME"
"TAG_DATE"

It would be very useful if this was extended to provide any issue IDs associated with a Pull Request ("CHANGE" in the above semantics).


BitBucket Server provides a REST API to get  issue IDs associated with a PR:

{
{ noformat}
/rest/jira/1.0/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/issues
{noformat
} }

https://docs.atlassian.com/bitbucket-server/rest/5.3.0/bitbucket-jira-rest.html

Perhaps this could be exposed by the plugins EnvironmentContributor extension as something like "CHANGE_ISSUES" ?

This would allow  for use of the various Jira plugin steps to do things like update Jira tickets with information from a pipeline build of a pull request.
Reply all
Reply to author
Forward
0 new messages