So i will just give a brief overview of the pipeline file, as somehow in following step, artifact can be found:
image: maven:3-jdk-8-slim
definitions:
- step: &dockerize
name: Build
steps:
- some steps
- mvn clean package
- cd target/azure-functions/name-of-function && zip -r $BITBUCKET_CLONE_DIR/name-of-function.zip .
artifacts:
- $BITBUCKET_CLONE_DIR/name-of-function.zip
- step: &deploy_zip
name: Deploy zip to function
script:
- pipe: microsoft/azure-functions-deploy:1.0.1
variables:
AZURE_APP_ID: $SERVICE_PRINCIPAL_ID
AZURE_PASSWORD: $SERVICE_PRINCIPAL_PASSWORD
AZURE_TENANT_ID: $TENANT_ID
ZIP_FILE: '$BITBUCKET_CLONE_DIR/name-of-function.zip'
FUNCTION_APP_NAME: 'name-of-function'
DEBUG: 'true'
pipelines:
default:
- step: *dockerize
- step: *deploy_zip
So in second step i get error:
<span>FileNotFoundError: [Errno 2] No such file or directory: '/opt/atlassian/pipelines/agent/build/name-of-function.zip'</span>
What am i missing here? So i am doing mvn package of the azure function, and want to zip the content of my function so i can use pipe to deploy them to my function app.
Its strange that even in the artifact section of my build, there is nothing, empty screen.
Regards,