Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Pipe for deploy a jar or war file in azure webapp

Andrea Calderon March 11, 2024

Hi,

We want to deploy a WebApp from pipelines using the JAR or WAR file that we create in target file in the pipeline process. Is possible this or we only can use a zip file? 

Thanks for the help.

1 answer

1 accepted

2 votes
Answer accepted
Oleksandr Kyrdan
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 15, 2024

Hi @Andrea Calderon 

Thanks for your question!

Currently, the azure-web-app-deploy pipe supports only zip files:

- step:
    name: "Build and test"
    script:
      - npm install
      - npm test
      - zip -r my-package-$BITBUCKET_BUILD_NUMBER.zip .
    artifacts:
      - my-package-*.zip
- step:
    name: "Deploy to Azure"
    script:
      - pipe: atlassian/azure-web-apps-deploy:1.1.1
        variables:
          AZURE_APP_ID: $AZURE_APP_ID
          AZURE_PASSWORD: $AZURE_PASSWORD
          AZURE_TENANT_ID: $AZURE_TENANT_ID
          AZURE_RESOURCE_GROUP: $AZURE_RESOURCE_GROUP
          AZURE_APP_NAME: 'my-site'
          ZIP_FILE: 'my-package-$BITBUCKET_BUILD_NUMBER.zip'

For your case you could implement your own custom pipe following this Azure guide.

Best regards,
Oleksandr Kyrdan

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events