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,461,158
Community Members
 
Community Events
176
Community Groups

Run custom command before builtin pipeline

How can I run a custom command before running a provided pipeline?

Specifically I want to:

 

poetry export -f requirements.txt --output requirements.txt


then run the google-app-engine-deploy pipeline.

I understand the 'steps' are in different docker containers, so I can't run this in the previous step, correct?

2 answers

1 accepted

0 votes
Answer accepted

After seeing this used in ssh-run for envsubst, I found out you can simply:

- step:
script:
- pip install poetry
- poetry export --without-hashes -f requirements.txt --output requirements.txt
- pipe: atlassian/google-app-engine-deploy:0.2.1

Most examples with pipes have only a single 'line', and the step/script terminology was a bit confusing, but this works fine.

0 votes

@Sander Land you can share your output files via artifacts section.

As for google app engine pipe, we are passing the volume (working dir) to the docker containers, so that you can share requirements.txt in artifacts section and in the next step you just run google app engine pipe in this dir where requirements is in.

The question will it be accepted by google app engine cloud is to google cloud: if they accept requirements file in that way, then yes, it should work

Keep contacting us and talk if more questions arise, we are happy to help you

 

Regards, Galyna

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events