Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

cannot pass artifact to following step Edited

I have been hitting my head against the wall pretty hard on this one, hopefully, its all my fault and I missed something in the documentation somewhere :)

 

I have the following very simple pipeline

 

image: golang:1.12

pipelines:
default:
- step:
name: Build and test
script:
- PACKAGE_PATH="${GOPATH}/src/bitbucket.org/${BITBUCKET_REPO_FULL_NAME}"
- mkdir -pv "${PACKAGE_PATH}"
- tar -cO --exclude-vcs --exclude=bitbucket-pipelines.yml . | tar -xv -C "${PACKAGE_PATH}"
- cd "${PACKAGE_PATH}"
- go get -v
- go build -v
- go test -v
- echo "Packaging app"
- tar cvf app.tar app config.yml
- ls -al
- pwd
artifacts:
- app.tar
- step:
name: Distribution
script:
- pipe: atlassian/bitbucket-upload-file:0.1.2
variables:
BITBUCKET_USERNAME: User
BITBUCKET_APP_PASSWORD: $SomePAss
FILENAME: 'app.tar'

 

A couple of output from this file:

  • the "ls -al" show that the files needed for the tar command do exist
  • The "ls -al" also show that the tar file was successfully created
  • The pwd command show that I am in the project repo
  • I have tried to put as artifact config.yml; does works
  • I have tried to put the app file as an artifact; does not work
  • the teardown command does show that there is no match for my artifact request

 

My problem is that I want to pass the app.tar as an artifact to upload it to the bitbucket download section in the following step, but I get the error the file is not found.

 

I am not sure what I am doing wrong, but any help would be appreciated

 

Thanks

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase

All you wanted to know about customer support KPIs

When working in customer support, it’s crucial to calculate, analyze and monitor specific numbers, called KPIs (Key Performance Indicators). They go hand-in-hand with customer satisfaction, problem d...

122 views 1 5
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you