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

custom pipe not working

oboe_ada May 18, 2023

i have a simple pipe that simply does echo "". after i build the image it works perfectly on my local system but bitbucket pipeline throws an error : sh: can't open './pipe.sh': No such file or directory
Screenshot 2023-05-19 100550.png
Screenshot 2023-05-19 1007092.png

3 answers

0 votes
Igor Stoyanov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 19, 2023

@oboe_ada hi. There is an example of simple bash pipe Dockerfile.

Try this one.

Regards, Igor

oboe_ada May 21, 2023

yaa , i clone the sme repo , but id didnot work

Igor Stoyanov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 22, 2023

Could you try to test it without self.hosted runner to understand where is the problem?
I just run default pipeline and all is ok.


0 votes
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.
May 19, 2023

Hi @oboe_ada 

I think the COPY command should be:

COPY pipe.sh /

The ".sh" is missing.

Hope that helps

oboe_ada May 19, 2023

i have tries that too it didnot work

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.
May 19, 2023

Try pulling and running the `bash` image locally, and then run the steps in it manually. 

oboe_ada May 19, 2023

locally it works put not in bitbucket pipeline

0 votes
oboe_ada May 18, 2023

 

 

even with .py it is not working .3.png

oboe_ada May 18, 2023

but it works locally , only bitbucket pipeline throws this error

oboe_ada May 18, 2023

FYI , i have tried putting script file in root also and more 

Suggest an answer

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

Atlassian Community Events