Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,559,962
Community Members
 
Community Events
185
Community Groups

Bitbucket pipeline test output failed test as jira/clickup ticket

I am building a pipeline and am running jest test's and wanted to create as jira/clickup ticket for the test's faild what's the best way to get this done 

 

What i wanted to do is to capture the output of the jest test's and create a ticket in jira/clickup.

 

Below is the pipeline 

image: atlassian/default-image:2

pipelines:
default:
- step:
name: "Install"
image: node:16
caches:
- node
script:
- npm install
- parallel:
- step:
name: "Test"
image: node:16
caches:
- node
script:
- npm test

 

the package.json is as below 

{
"name": "node-app-jest",
"version": "1.0.0",
"description": "Node app with Jest test's",
"main": "server.js",
"scripts": {
"test": "jest --verbose --runInBand --forceExit",
"start": "node server"
},

 

1 answer

0 votes
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Sep 22, 2022

Hey @Nataraj ,

Thank you for reaching out to Atlassian Community!

I noticed you have opened an internal support ticket with us about this same question, and it seems it was already resolved.

In this case, I will be sharing the solution of the ticket here : 

 We suggest using the jira-create-issue pipe insidean after-script section. Inside the after-script, you can check for the latest exit code using the variable 'BITBUCKET_EXIT_CODE'. If the exit code differs from 0, you can trigger the pipe.

 Thank you, @Nataraj .

Kind regards,

Patrik S

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events