jenkinsci / azure-cli-plugin

A Jenkins plugin to use Azure CLI for managing Azure resources.
https://plugins.jenkins.io/azure-cli/
MIT License
5 stars 18 forks source link

Failure: WARNING: Packing source code into tar file to upload - build failed #19

Open rnkhouse opened 5 years ago

rnkhouse commented 5 years ago

Running below command in Jenkins pipeline:

azureCLI commands: [[exportVariablesString: "",
                                script: "az acr build -t test.azurecr.io/repo:$env.BUILD_NUMBER -r test 
                                ${WORKSPACE} --build-arg PORT=${PORT}"]],
                                principalCredentialId: "xxxxx"

ERROR

Running: az acr build -t test.azurecr.io/repo:5 -r test /var/lib/jenkins/workspace/test --build-arg PORT=7777
Failure: WARNING: Packing source code into tar file to upload...
WARNING: Excluding '.gitignore' based on default ignore rules
WARNING: Excluding '.git' based on default ignore rules
WARNING: Sending build context (3.222 MiB) to ACR...
WARNING: Queued a build with build ID: axb4
WARNING: Waiting for build agent...
ERROR: Build failed

There is no specific error message on why build has been failed.

When I ran this command with shell script it gave me detailed log on what was wrong in Dockerfile.

How to view all logs if build fails in azure-cli plugin?