Skip to content

Commit 7996e2e

Browse files
committed
Docs update
1 parent 969d12b commit 7996e2e

File tree

5 files changed

+121
-218
lines changed

5 files changed

+121
-218
lines changed

COMPATIBILITY.md

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,19 @@
11
# Plugin Compatibility with [Pipeline](https://github.com/jenkinsci/pipeline-plugin)
2-
(formerly known as Pipeline plugin)
32

4-
This document captures the status of features to be compatible or incompatible.
3+
(formerly known as Pipeline plugin). This document captures the status of features to be compatible or incompatible.
4+
5+
- [X] `JIRA Issue Parameter` supported
6+
- [X] `JIRA Version Parameter` supported
7+
- [X] `JiraChangeLogAnnotator` supported
8+
- [X] `JiraIssueUpdater` supported
9+
- [X] `JiraIssueUpdateBuilder` supported
10+
- [X] `JiraCreateReleaseNotes` supported
11+
- [ ] `JiraCreateIssueNotifier` never supported
12+
- [ ] `JiraIssueMigrator` never supported
13+
- [ ] `JiraReleaseVersionUpdater` never supported
14+
- [X] `JiraReleaseVersionUpdaterBuilder` supported
15+
- [ ] `JiraVersionCreator` never supported
16+
- [ ] `JiraEnvironmentVariableBuilder` not supported (workaround exists)
517

618
## JiraIssueUpdater usage example
719

@@ -22,6 +34,7 @@ node {
2234
Note that a pointer to scm class should be better cleared to not serialize scm object between steps.
2335

2436
You can add some labels to issue in jira:
37+
2538
```groovy
2639
step([$class: 'hudson.plugins.jira.JiraIssueUpdater',
2740
issueSelector: [$class: 'hudson.plugins.jira.selector.DefaultIssueSelector'],
@@ -44,13 +57,12 @@ node {
4457
```groovy
4558
node {
4659
wrap([$class: 'hudson.plugins.jira.JiraCreateReleaseNotes', jiraProjectKey: 'TST',
47-
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+
{
4962
//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
5265
}
53-
5466
```
5567

5668
## JiraReleaseVersionUpdaterBuilder usage example
@@ -68,6 +80,7 @@ node {
6880
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.
6981

7082
usage:
83+
7184
```groovy
7285
node {
7386
List<String> issueKeys = jiraSearch(jql: "project = EX and labels = 'jenkins' and labels = '${version}'")
@@ -76,15 +89,17 @@ node {
7689

7790
## CommentStep
7891

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+
8094
```groovy
8195
node {
8296
jiraComment(issueKey: "EX-111", body: "Job '${env.JOB_NAME}' (${env.BUILD_NUMBER}) builded. Please go to ${env.BUILD_URL}.")
8397
}
8498
```
8599

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):
88103

89104
```groovy
90105
import hudson.plugins.jira.JiraSite;
@@ -96,11 +111,13 @@ node {
96111
```
97112

98113
To replace JIRA_ISSUES env variable, you can use pipeline step jiraIssueSelector:
114+
99115
```groovy
100116
List<String> issueKeys = jiraIssueSelector()
101117
```
102118

103119
or if you use custom issue selector:
120+
104121
```groovy
105122
List<String> issueKeys = jiraIssueSelector(new CustomIssueSelector())
106123
```
@@ -115,20 +132,3 @@ See [here](https://github.com/jenkinsci/workflow-plugin/blob/master/basic-steps/
115132
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).
116133
So notifiers will never be implemented as you can use the catchError step and run jira action manually.
117134
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)

CONTRIBUTING.md

Lines changed: 0 additions & 38 deletions
This file was deleted.

JIRA plugin idea.txt

Lines changed: 0 additions & 32 deletions
This file was deleted.

MAINTAINERS.md

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,36 @@
1-
#### Developing in Docker
1+
# Notes for maintainers
22

3-
*Start dockerized Jenkins (for testing)*
3+
## Developing in Docker
4+
5+
### Start dockerized Jenkins (for testing)
46

57
The command below will start a local Jenkins using the version specificied as first argument (or lts):
68

79
```bash
8-
$ ./examples/start_docker.sh 2.249.2
10+
./examples/start_docker.sh 2.249.2
911
```
1012

11-
*Build the plugin in Docker environment*
13+
### Build the plugin in Docker environment
1214

1315
The command below allows to build the plugin using maven docker image. This is useful to test building against different Maven/JDK versions.
1416
See also [SDKMan](https://sdkman.io/) for a different approach.
1517

1618
```bash
17-
$ docker run -it --rm -v "$PWD":/usr/src/mymaven -v "$HOME/.m2:/root/.m2" -w /usr/src/mymaven maven:3.3-jdk-8 mvn clean package
19+
docker run -it --rm -v "$PWD":/usr/src/mymaven -v "$HOME/.m2:/root/.m2" -w /usr/src/mymaven maven:3.3-jdk-8 mvn clean package
1820
```
1921

20-
*Atlassian sources import*
22+
### Atlassian sources import
2123

2224
To resolve some binary compatibility issues [JENKINS-48357](https://issues.jenkins-ci.org/browse/JENKINS-48357),
2325
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/)
2426
has been imported in the project to have control over http(s) protocol transport layer.
2527
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)
2628
sources are Apache License (see pom in src/main/resources/atlassian-httpclient-plugin-0.23.0.pom)
2729

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.
2833

29-
#### Releasing the plugin
34+
### Releasing the plugin
3035

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

Comments
 (0)