getting
No JIRA site configured with <URL_HERE> name.
when running
jiraAddComment site: '<URL_HERE>', idOrKey: 'ticketId', input: "test comment"
Hi @Gereth Dittrick,
is it correct, that you are using JIRA Pipeline Steps plugin?
Do you have the possibility to check authentication configuration in Jenkins?
https://jenkinsci.github.io/jira-steps-plugin/getting-started/config/authentication/
You can also perform the connection check from the configuration site (using Test connection button).
The parameter site is optional - is it neccessary to override global JIRA_SITE variable? Did you try to skip it?
Hello Hana, yes this is the Jira Steps Plugin. The test connect button shows a successful connection but when trying to invoke the plugin with a job i get the above error. I did try omitting the site variable but the JIRA_SITE env variable is empty/null with the specific error
ERROR: No JIRA site configured with null name.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Gereth Dittrick ,
I would recommend you to contact the vendor of the Jira Steps Plugin, described behaviour looks like a bug to me.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If the problem is still relevant, try using the following script in Jenkinspipeline to contact JIRA and make comment to Issue TSP-26:
script {
withEnv(['JIRA_SITE=JIRA-Test']) {
def comment = [ body: 'Test comment from Jenkins' ]
jiraAddComment idOrKey: 'TSP-26', input: comment
}
where JIRA_SITE=JIRA-Test is predefined Jira site in Jenkins system settings:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.