We are trying to upload the Jenkins job build details
to specific existing jira.
Below is the postaction code written in jenkins files.
jiraSendDeploymentInfo environmentId: 'XYZ', environmentName: 'DEV', environmentType: 'development', serviceIds: ['JJI-1'], site: 'XYZ.atlassian.net', state: 'successful'
But we are unable to upload the jenkins job details to jira and getting below error.
We have passed correct issue key and Id but still it's failing
Can you please help us to fix the issue.
jiraSendDeploymentInfo: FAILURE_UNKNOWN_ASSOCIATIONS: Failed to send deployment information to Jira: XYZ.atlassian.net. Unknown associations: [Association
Unknown macro: {associationType=serviceIdOrKeys, values=[JJI-1]}
].
I have a similar issue. The changelog includes a comment about changing support for UTF-8 format and iraSendDeploymentInfo post step fails because it can't find a jira issue with key UTF-8.
Is there a way to prevent the iraSendDeploymentInfo step from failing on issues not found and simply processing the payload for the issues it does find?
In my case the error message is
Unable to create the request payload: Cannot deserialize value of type `com.atlassian.jira.cloud.jenkins.deploymentinfo.client.model.AssociationType` from String "issueIdOrKeys": not one of the values accepted for Enum class: [issueKeys, serviceIdOrKeys]
It works for us. We are manually passing the Jira ids PFB the syntax for same. Can also pass in a variable for the same
pipeline {
agent any
stages{
stage('Deploy - Staging') {
steps{
echo 'Deploying to QA'
}
post {
always {
jiraSendDeploymentInfo (
environmentId: 'Manual_QA',
environmentName: 'Manual_QA',
environmentType: 'development',
state: 'successful',
issueKeys: [
'XXXX-132169',
'XXXX-132169'
]
)
}
}
}
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am also stuck here with the same error can anyone got a solution to this.
iraSendDeploymentInfo: FAILURE_UNKNOWN_ASSOCIATIONS: Failed to send deployment information to Jira: us.atlassian.net. Unknown associations: [Association{associationType=serviceIdOrKeys, values=[COG1-6263, COG1-6265]}].
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I believe there is no way right not to manually specify issue ids for jiraSendDeploymentInfo() because it just parses the changelog (commits since the last deployment). `serviceIds` parameter is used for linking to Jira Service Desk tickets if I understand correctly. I'm also searching for a way to specify issue id from Jira Software.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.