You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jiraRelease: '1.1.1', jiraEnvironmentVariable: 'notes', jiraFilter: 'status in (Resolved, Closed)'])
48
-
{
60
+
jiraRelease: '1.1.1', jiraEnvironmentVariable: 'notes', jiraFilter: 'status in (Resolved, Closed)'])
61
+
{
49
62
//do some useful here
50
-
//release notes can be found in environment variable jiraEnvironmentVariable
51
-
print env.notes
63
+
//release notes can be found in environment variable jiraEnvironmentVariable
64
+
print env.notes
52
65
}
53
-
54
66
```
55
67
56
68
## JiraReleaseVersionUpdaterBuilder usage example
@@ -68,6 +80,7 @@ node {
68
80
Custom pipeline step (see [step-api](https://github.com/jenkinsci/workflow-plugin/blob/master/step-api/README.md)) that allow to search by jql query directly from workflow.
69
81
70
82
usage:
83
+
71
84
```groovy
72
85
node {
73
86
List<String> issueKeys = jiraSearch(jql: "project = EX and labels = 'jenkins' and labels = '${version}'")
@@ -76,15 +89,17 @@ node {
76
89
77
90
## CommentStep
78
91
79
-
Interface for Pipeline job types that simply want to post a comment e.g.
92
+
Interface for Pipeline job types that simply want to post a comment e.g.:
93
+
80
94
```groovy
81
95
node {
82
96
jiraComment(issueKey: "EX-111", body: "Job '${env.JOB_NAME}' (${env.BUILD_NUMBER}) builded. Please go to ${env.BUILD_URL}.")
83
97
}
84
98
```
85
99
86
-
##JiraEnvironmentVariableBuilder
87
-
Is not supported in Pipeline. You can get current jira url (if you are not using the Groovy sandbox):
100
+
## JiraEnvironmentVariableBuilder
101
+
102
+
Not supported in Pipeline. You can get current jira url (if you are not using the Groovy sandbox):
88
103
89
104
```groovy
90
105
import hudson.plugins.jira.JiraSite;
@@ -96,11 +111,13 @@ node {
96
111
```
97
112
98
113
To replace JIRA_ISSUES env variable, you can use pipeline step jiraIssueSelector:
@@ -115,20 +132,3 @@ See [here](https://github.com/jenkinsci/workflow-plugin/blob/master/basic-steps/
115
132
Running a notifiers is trickier since normally a flow in progress has no status yet, unlike a freestyle project whose status is determined before the notifier is called (never supported).
116
133
So notifiers will never be implemented as you can use the catchError step and run jira action manually.
117
134
I'm going to create a special pipeline steps to replace this notifiers in future.
118
-
119
-
Other builders will be supported in future (not supported yet).
120
-
121
-
##Current status:
122
-
123
-
-[X]`JIRA Issue Parameter` supported
124
-
-[X]`JIRA Version Parameter` supported
125
-
-[X]`JiraChangeLogAnnotator` supported
126
-
-[X]`JiraIssueUpdater` supported
127
-
-[X]`JiraIssueUpdateBuilder` supported
128
-
-[X]`JiraCreateReleaseNotes` supported
129
-
-[ ]`JiraCreateIssueNotifier` never supported
130
-
-[ ]`JiraIssueMigrator` never supported
131
-
-[ ]`JiraReleaseVersionUpdater` never supported
132
-
-[X]`JiraReleaseVersionUpdaterBuilder` supported
133
-
-[ ]`JiraVersionCreator` never supported
134
-
-[ ]`JiraEnvironmentVariableBuilder` not supported (workaround exists)
To resolve some binary compatibility issues [JENKINS-48357](https://issues.jenkins-ci.org/browse/JENKINS-48357),
23
25
the sources from the artifact [com.atlassian.httpclient:atlassian-httpclient-plugin:0.23](https://packages.atlassian.com/maven-external/com/atlassian/httpclient/atlassian-httpclient-plugin/0.23.0/)
24
26
has been imported in the project to have control over http(s) protocol transport layer.
25
27
The downloaded sources didn't have any license headers but based on the [pom](https://packages.atlassian.com/maven-external/com/atlassian/httpclient/atlassian-httpclient-plugin/0.23.0/atlassian-httpclient-plugin-0.23.0.pom)
26
28
sources are Apache License (see pom in src/main/resources/atlassian-httpclient-plugin-0.23.0.pom)
27
29
30
+
### Testing
31
+
32
+
There is a [Jira Cloud](https://jenkins-jira-plugin.atlassian.net/) test instance that the changes can be tested against, official maintainers are admins that can grant access for testing to PR submitters on a need-to-have basis.
28
33
29
-
####Releasing the plugin
34
+
### Releasing the plugin
30
35
31
-
- we use the [Release Drafter](https://github.com/toolmantim/release-drafter) extension to perform releases, make sure that the PRs are [properly labelled](https://github.com/jenkinsci/.github/blob/master/.github/release-drafter.yml)
32
-
- there is a [Jira Cloud](https://jenkins-jira-plugin.atlassian.net/) test instance that the changes can be tested against, official maintainers are admins that can grant access for testing to PR submitters on a need-to-have basis
33
-
- make sure you have `~/.m2/settings.xml` configured - refer to [releasing Jenkins plugins](https://www.jenkins.io/doc/developer/publishing/releasing/)
36
+
Make sure you have your `~/.m2/settings.xml` configured accordingly - refer to [releasing Jenkins plugins](https://www.jenkins.io/doc/developer/publishing/releasing/).
0 commit comments