Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 1.75 KB

README.md

File metadata and controls

45 lines (33 loc) · 1.75 KB

Jenkins JiraCloud

Prerequisites

How to use ?

Setup JIRA STEPS plugin in Jenkins

  • Go to Manage Jenkins -> Configure System
  • G0 to section JIRA Steps and setup jira credentials (will be provided on the day of training). alt text

Configure Pipeline

  • Click on New item and select pipeline and setup name JIRAIntegration alt text

  • Configure Pipeline

    • Enable This project is parameterized and setup string parametr with name TICKET_NUMBER alt text
    • Choose Definition Pipeline script from SCM
    • Repository URL https://github.com/spy86/CI_CD.git
    • Credentials empty
    • Branch to build main
    • Script Path jenkins-integrations/jira/Jenkinsfile alt text

Now we can run our pipeline.

  • Click Build with Parameters provide ticket number and click Build

    • Ticket number: TP-1
      • Issue type: BUG
    • Ticket number: TP-2
      • Issue type: TASK
    • Ticket number: TP-3
      • Issue type: EPIC

NOTE: Pipeline verifies the type of ticket.

After a while, our buil should verify that the given ticket is of the correct type. If the type is correct, the next stage will run, which will perform an example action, and in the last step, a comment will be added to the ticket.

Comment in JIra ticket

alt text