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

How do I ignore fail so that it can proceed to next step for using pipe. (Bitbucket Pipeline)

Mohamad Bathulah Bin Mohamad Mahir February 9, 2022

How do I ignore the error so that it can proceed to next step.

 

Why I want to ignore : 

 - This pipeline is for development environment.

 - There is few of other issues need to be fix first, so some code need to be deployed first without waiting for security fix.

 - The security fix is scheduled to fix at agreed time ( so there is few of other code need to be deployed first) .

 

 

image.png

 

My code :

- step: 
name: Atlassian Security Scan
clone:
enabled: true
script:
- pipe: atlassian/git-secrets-scan:0.6.0

1 answer

1 vote
Igor Stoyanov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 11, 2022

@Mohamad Bathulah Bin Mohamad Mahir hi. Thanks for your question.
It's a bad practice to ignore security checks.
If you don't need to run step Atlassian Security Scan then you can exclude it from your configuration or make this step trigger manual.
Also you can create two parallel steps NPM Audit and Compress build and then trigger step Atlassian Security Scan

Regards, Igor.

Mohamad Bathulah Bin Mohamad Mahir February 11, 2022

The purpose of it actually not to ignore, but to fix it at a scheduled time, and during that there is few other code need to be deployed so yeah, instead of failing the process, how about give warning.

Igor Stoyanov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 13, 2022
Mohamad Bathulah Bin Mohamad Mahir February 23, 2022

Thank you for your help

Like Igor Stoyanov likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events