使用 Jenkins Jira Step 插件创建 JIRA 问题

时间:2021-05-26 14:01:57

标签: jenkins oauth jenkins-plugins jira

自从现在 JIRA apis 中禁用了基本身份验证,我可以从中获取这些信息。 enter image description here 我正在使用这个插件 - https://plugins.jenkins.io/jira-steps/

enter image description here

在@apr_1985 解决方案得到这个之后 -

node {
  stage('JIRA') {
    withEnv(['JIRA_SITE=Jira']) {
      def testIssue = [fields: [ project: [key: 'AUT'],
                                 summary: 'SDsad',
                                 issuetype: [name: 'Bug']]]

      response = jiraNewIssue issue: testIssue
      echo response.successful.toString()
      echo response.data.toString()
    }
  }
}

enter image description here

0 个答案:

没有答案
相关问题