rundeck-plugins / jira-workflow-step Goto Github PK
View Code? Open in Web Editor NEWRundeck workflow step that checks if specified Jira issue exists
Rundeck workflow step that checks if specified Jira issue exists
The create issue plugin fails if a field other than those shown are required.
Enhancement request - create an advanced section that can read in additional fields in a property format
And update the error message to be more like the Jira API
when using the api and a required field is ommited the error message looks like this
Rundeck-2{
"errorMessages": [
"Inbound Hostname: Inbound Hostname is required."
],
"errors": {}
}
21:35:10 | Failed: JiraException: Jira exception: Failed to create issue
I checked for an existing JIRA Ticket, using the plugin to test it with the Job you defined as an example. Every time I get the following error:
`[workflow] Begin execution: rundeck-workflow-node-first context: null
[workflow] Begin step: 1,JIRA-Issue-Exists
1: Workflow step executing: StepExecutionItem{type='JIRA-Issue-Exists', keepgoingOnSuccess=false, hasFailureHandler=false}
Issue key "LSAC-1112".
Failed executing step plugin [JIRA-Issue-Exists]: com.dtolabs.rundeck.core.execution.workflow.steps.StepException: Issue key "LSAC-1112". at org.rundeck.plugins.workflow.JiraWorkflowStep.executeStep(JiraWorkflowStep.java:68)
at com.dtolabs.rundeck.core.execution.workflow.steps.StepPluginAdapter.executeWorkflowStep(StepPluginAdapter.java:98)
at com.dtolabs.rundeck.core.execution.ExecutionServiceImpl.executeStep(ExecutionServiceImpl.java:116)
at com.dtolabs.rundeck.core.execution.workflow.BaseWorkflowStrategy.executeWFItem(BaseWorkflowStrategy.java:225)
at com.dtolabs.rundeck.core.execution.workflow.BaseWorkflowStrategy.executeWorkflowItemsForNodeSet(BaseWorkflowStrategy.java:303)
at com.dtolabs.rundeck.core.execution.workflow.NodeFirstWorkflowStrategy.executeWFSection(NodeFirstWorkflowStrategy.java:313)
at com.dtolabs.rundeck.core.execution.workflow.NodeFirstWorkflowStrategy.executeWorkflowImpl(NodeFirstWorkflowStrategy.java:119)
at com.dtolabs.rundeck.core.execution.workflow.BaseWorkflowStrategy.executeWorkflow(BaseWorkflowStrategy.java:182)
at com.dtolabs.rundeck.core.execution.WorkflowExecutionServiceThread.run(WorkflowExecutionServiceThread.java:55)
[workflow] Finish step: 1,JIRA-Issue-Exists
[workflow] Finish execution: rundeck-workflow-node-first: [Workflow result: , step failures: {1=JiraIssueNotFound: Issue key "LSAC-1112".}, status: failed]
[Workflow result: , step failures: {1=JiraIssueNotFound: Issue key "LSAC-1112".}, status: failed]
Execution failed: 1769: [Workflow result: , step failures: {1=JiraIssueNotFound: Issue key "LSAC-1112".}, status: failed]`
Currently we need to place the password/token in plain-text in the project configuration. It would be good if instead, we could supply the path to a key in Key Storage, e.g.
project.plugin.WorkflowStep.JIRA-Issue-Exists.password=keys/jira-api-token
for the plugin to then fetch the value of the key from storage. I'm aiming to raise a PR for this enhancement
Related to rundeck-plugins/jira-notification#19
Currently there is no license assigned to the repo. Is it possible to assign a license to allow a more widely distributed usage? i.e. Apache 2.0 or MIT
Thanks.
Remove "beta" label from descriptions of this plugin. Plugin has been released for some time and is no longer in Beta.
Project configuration settings:
project.plugin.WorkflowStep.JIRA-Issue-Exists.login=[email protected]
project.plugin.WorkflowStep.JIRA-Issue-Exists.password=keys/jira/jira-demo
project.plugin.WorkflowStep.JIRA-Issue-Exists.url=https://rundeck.atlassian.net
Error:
19:30:55 | ย | Execution failed: 27825 in project Route53_and_Jira: [Workflow result: , step failures: {6=Dispatch failed on 1 nodes: [Rundeck-1: MissingConfiguration: login is required + {dataContext=MultiDataContextImpl(map={}, base=null)} ]}, Node failures: {Rundeck-1=[MissingConfiguration: login is required + {dataContext=MultiDataContextImpl(map={}, base=null)} ]}, status: failed]
Rundeck Enterprise version: RUNDECK ENTERPRISE 3.2.0-20191218
The plugin uses an old version of commons-collections which according to the website https://commons.apache.org/proper/commons-collections/security-reports.html contains a security whole which has been fixed in version 3.2.2
It should be replaced with this patched version.
In our Jira setup basic authentication is disabled, so I can only pass Access token. When I configured the work flow step to get issue details, I am getting the error "login is required", but corresponding curl request to get issue detail works without any user or password if access token is passed.
curl --request GET \
--url https://our-jira.net/rest/api/2/issue/issue-num\
--header 'Accept: application/json' \
--header 'Authorization: Bearer access-token'
Is it issue with plugin or some configuration problem?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.