Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-52040

Jira-Issue-Updater Plugin doesn't work as expected in Jenkins Pipeline Script

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Hello Jenkins Community,

      I am trying to use JIRA Issue Updater plugin as a script in my Jenkins Pipeline but it is not working as expected. Here is a script that I am using, 

      withCredentials([usernamePassword(credentialsId: 'DummyId', usernameVariable: 'DummyUsername', passwordVariable: 'DummyPASSWORD')]) { step([$class: 'JiraIssueUpdateBuilder', restAPIUrl:'https://jiraweb.xyz.com/rest/api/2', userName:'$DummyUSERNAME', password: '$DummyPASSWORD',jqlSearch: jql, workflowActionName: SYSTEST, customFieldId: 'customfield_10370', customFieldValue: 2018-06-03]) }

       

      If I run this same plugin as a jenkins Job then sometime it works and sometime it doesn't. And after changing status for first time either manually or via Jenkins Job then above script works. 

      But this shouldn't be the case.Can we have some solution on this?

      Jenkins Version:2.107.2

        Attachments

          Activity

          Hide
          neeldesai1992 Neel Desai added a comment -

          Is there any update on this story?

          Show
          neeldesai1992 Neel Desai added a comment - Is there any update on this story?

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            neeldesai1992 Neel Desai
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated: