You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.