ibm-cloudtoolchainibm-cloud-toolsdevops-services

Building Artifactory fails for Build Stage in Delivery Pipeline


I have created a toolchain, which downloads the code from the bitbucket repository and builds the docker image in IBM Cloud.

After the code builds the image, the build stage fails while building the artifactory.

Error:
Preparing the build artifacts...
Customer script does not exist for the job, exitting

I have specified the Build archive directory as the folder name. Do I need to write any scripts for archiving?


Solution

  • That particular error occurs when one of our checks -- the existence of /home/pipeline/$TASK_ID/_customer_script.sh -- fails.

    Archiving happens automatically but that file needs to be present as we use it as part of the traceability around how the artifact was created. Is it possible that file is getting removed? (Also will look into removing or making the check non-fatal however that will take time)