forked from docToolchain/docToolchain
-
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.
Improved - JIRA config - decoupling & cleaning (docToolchain#452)
* Extract hardcoded Jira results filename to variable * Rename legacy variable as exportJiraIssue.gradle expect different var name * Add proper Asciidoc table syntax with header row * Add all Jira configs to the Config.groovy file (and template_config) * Add suggestion to gradle.properties about Config.groovy * Give Config.groovy Jira settings preference over gradle.property * Improve credentials comments & suggestions * Improve recommended comment in gradle.properties * Fix variable name to match configuration * Update exportJiraIssues task documentation * Add note about broken password input * Add myself to the contributors list * Add missing closing of htmlSanityCheckConfig tag * Rename Jira helpers for exportEAP * Re-generate docs as described in PR template Co-authored-by: Vladi <[email protected]>
- Loading branch information
Showing
14 changed files
with
373 additions
and
122 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -156,3 +156,43 @@ htmlSanityCheck.with { | |
//sourceDir = "build/html5/site" | ||
//checkingResultsDir = | ||
} | ||
//end::htmlSanityCheckConfig[] | ||
|
||
//tag::jiraConfig[] | ||
// Configuration for Jira related tasks | ||
jira = [:] | ||
|
||
jira.with { | ||
|
||
// endpoint of the JiraAPI (REST) to be used | ||
api = 'https://your-jira-instance' | ||
|
||
/* | ||
username:password (username:token) of an account which has the right permissions to read the JIRA issues for a given project. | ||
It is recommended to store these securely instead of commiting them to your git repository. | ||
In that case, either fetch it from some external storage or leave it empty (credentials = '') to fallback to gradle variables set through gradle properties files or environment variables. | ||
The fallback in gradle.properties uses the 'jiraUser' and 'jiraPassword' keys. | ||
You might even want to prompt the user for the password (by not providing it anywhere) | ||
*/ | ||
|
||
credentials = "[email protected]:accesstoken".bytes.encodeBase64().toString() // colon ":" is used as a separation of username from password/token before base64 encoding | ||
|
||
// the key of the Jira project | ||
project = 'PROJECTKEY' | ||
|
||
// the format of the received date time values to parse | ||
dateTimeFormatParse = "yyyy-MM-dd'T'H:m:s.SSSz" // i.e. 2020-07-24'T'9:12:40.999 CEST | ||
|
||
// the format in which the date time should be saved to output | ||
dateTimeFormatOutput = "dd.MM.yyyy HH:mm:ss z" // i.e. 24.07.2020 09:02:40 CEST | ||
|
||
// the label to restrict search to | ||
label = | ||
|
||
// Jira query | ||
jql = "project='%jiraProject%' AND labels='%jiraLabel%' ORDER BY priority DESC, duedate ASC" | ||
|
||
// Filename in which Jira query results should be stored | ||
resultsFilename = 'JiraTicketsContent.adoc' | ||
} | ||
//end::jiraConfig[] |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.