forked from jenkinsci/jira-steps-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release Review 1.4.4, Prepare for next dev version (jenkinsci#81)
* Release Review 1.4.4 * [maven-release-plugin] prepare release jira-steps-1.4.4 * [maven-release-plugin] prepare for next development iteration
- Loading branch information
Showing
14 changed files
with
84 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
+++ | ||
title = "Admin" | ||
description = "" | ||
weight = 1 | ||
date = "2018-01-08" | ||
lastmodifierdisplayname = "Naresh Rayapati" | ||
+++ | ||
|
||
### Admin Steps | ||
|
||
{{% children depth="2" showhidden="true" %}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
+++ | ||
title = "Server Info" | ||
description = "More about jiraGetServerInfo step." | ||
tags = ["steps", "server", "info"] | ||
weight = 1 | ||
date = "2018-01-08" | ||
lastmodifierdisplayname = "Naresh Rayapati" | ||
+++ | ||
|
||
### jiraGetServerInfo | ||
|
||
This step retrives the server info. | ||
|
||
#### Input | ||
|
||
* **site** - Optional, default: `JIRA_SITE` environment variable. | ||
* **failOnError** - Optional. default: `true`. | ||
|
||
#### Output | ||
|
||
* Each step generates generic output, please refer to this [link]({{%relref "getting-started/config/common.md"%}}) for more information. | ||
* The api response of this jira_jql_search step can be reused later in your script by doing `response.data.required_field_name`. | ||
* You can see some example scenarios [here]({{%relref "getting-started/examples"%}}) | ||
* All the available fields for a jira response can be found in [JIRA API documentation](https://docs.atlassian.com/jira/REST/) depending on your JIRA version. | ||
|
||
{{% notice note %}} | ||
`response.data` returns all the fields returned by JIRA API. | ||
{{% /notice %}} | ||
|
||
#### Examples | ||
|
||
* With default [site]({{%relref "getting-started/config/common.md#global-environment-variables"%}}) from global variables. | ||
|
||
```groovy | ||
node { | ||
stage('JIRA') { | ||
def serverInfo = jiraGetServerInfo() | ||
echo serverInfo.data.toString() | ||
} | ||
} | ||
``` | ||
* `withEnv` to override the default site (or if there is not global site) | ||
```groovy | ||
node { | ||
stage('JIRA') { | ||
withEnv(['JIRA_SITE=LOCAL']) { | ||
def serverInfo = jiraGetServerInfo() | ||
echo serverInfo.data.toString() | ||
} | ||
} | ||
} | ||
``` | ||
* Without environment variables. | ||
```groovy | ||
def serverInfo = jiraGetServerInfo site: 'LOCAL', failOnError: true | ||
echo serverInfo.data.toString() | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters