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,557,199
Community Members
 
Community Events
184
Community Groups

Push value/variable from scripts to after-scripts

I'm working with Salesforce CI/CD and we have issue that output of CI doesn't show up in pipeline log.

I came up with idea that maybe we can use report of deployment status.
But, I hit the wall, step looks something like this:

sfdx force:source:deploy -p force-app/main/default/ -u abatvalidate -l RunLocalTests -c -w 30 | cut -c 10- | awk ‘FNR <= 1’ > ./deployment.txt          
echo cat ./deployment.txt          
sfdx force:source:deploy:report --targetusername abatvalidate --jobid $value --wait 30 --json         
after-script:          
apt-get update          
apt-get install -y jq           
value=`cat ./deployment.txt`        
- sfdx force:source:deploy:report --targetusername abatvalidate --jobid $value --wait 30 --json

What i need is way to push output of deployment.txt file into after-scripts.
But when script fails it straight up removes what's inside deployment.txt .
Is there any possibility to do it? I tried artifacts but they are not working.

0 comments

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events