Azure / azure-acr-plugin

Jenkins Azure ACR plugin
MIT License
2 stars 10 forks source link

Fail to Get ACR Quick Task Log #41

Closed sabvente closed 5 years ago

sabvente commented 5 years ago

We are getting the following error:

ERROR: Failed to get the ACR Quick Task log: Azure Service Storage Error when taking action Download log : Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.

This issue is really disturbing, because our builds fail 50-50%.

We are using the following script:

acrQuickTask(
            azureCredentialsId: env.ACR_SERVICE_PRINCIPAL,
            imageNames: [
              [image: "${env.REGISTRY}/${cr_namespace}/${cr_image}:latest"],
              [image: "${env.REGISTRY}/${cr_namespace}/${cr_image}:jenkins-${env.BUILD_NUMBER}"]
            ],
            registryName: env.ACR_REGISTRY,
            resourceGroupName: env.ACR_REGISTRY_GROUP,
            buildArgs: [
              [key: 'API_URL', secrecy: false, value: api_url])
sabvente commented 5 years ago

We resolved this by setting the timeout to a higher value (default 300).

Is suggest to improve timout error handling, because the error message was not really helpful.