Hi,
I'm trying to deploy my first http trigger Function App to Azure.
It was created with the Azure Function extension in VS Code. I use my Bitbucket Repo as a source and the Gradle as build tool.
My functions are working well locally and when i deploy manually I can see my functions in the Azure Functions list.
we are using username and password for azure login.
However when i try to deploy it thru my bitbucket pipeline
I have no error on the deployment itself but I cannot see my functions in the Azure Functions list.
Below is my bitbucket pipeline code:
image: mcr.microsoft.com/openjdk/jdk:11-ubuntu
pipelines:
default: #this runs for any unspecified branches_
- step:
name: Install dependencies
caches:
- gradle
script:
- echo 'Display Java version'
- java -version
- step:
name: build
script:
- bash ./gradlew clean build
artifacts:
- build/libs/*.jar
- step:
name: Function App Deployment
script:
- pipe: atlassian/azure-cli-run:1.1.0
variables:
AZURE_APP_ID: $AZURE_APP_ID
AZURE_PASSWORD: $AZURE_PASSWORD
AZURE_TENANT_ID: $AZURE_TENANT_ID
CLI_COMMAND: 'az functionapp deployment source config-zip --resource-group ResourceGroup1 --name FunctionName1 --src build/libs/Application.jar'
@anusha reddy hi . Thanks for your question. You can add DEBUG to see more detailed output. Also before pipe execution you can execute
ls -lat
to see if in the step with pipe you have your files.
Also check that you provide
build/libs/*.jar
in artifacts, but your source is just
build/libs/Application.jar
maybe problem here.
Regards, Igor
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.