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

Want to use yum command only in one step & use its binary in second

Shrey February 19, 2023

I have 3 steps in my pipeline but the work is same to install git& make command . but I dont wana install gir and make in all steps I want to use that command in 2nd & 3rd step . How Can I achieve that?Screenshot 2023-02-19 at 3.21.55 PM.png 

1 answer

1 accepted

0 votes
Answer accepted
Erez Maadani
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 19, 2023

Hey @Shrey 

Each step in the pipeline is using a new container, even if the same image, so you can't install in step #1 and expect the dependency to exist in step #2.

To solve this issue, you can:

  1. Install the dependency in the same step. 
  2. Use an image with the dependency already installed.
  3. Use an external service which will replace your dependency.

Based on past experience, #2 is usually the simplest and fastest solution to such issues.

Hope that helps  

Shrey February 19, 2023

ok I did the same b4 thanks !

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events