jenkinsci / jenkinsci/azure-cli-plugin
Failure: WARNING: Packing source code into tar file to upload - build failed
- Dominant language
- Java
- Stars
- 5
- Forks
- 18
- PR merge metrics
- No merged PRs in 30d
Description
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?
Contributor guide
Assessment
This issue has not been assessed yet.