jenkinsci / jenkinsci/azure-cli-plugin

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

Open
#19 0 comments 1 reaction 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.