Problem
When executing an Azure DevOps build pipeline using the Nexus IQ for Azure DevOps extension, you may receive a message similar to:
There was a resource authorization issue: "The pipeline build is not valid. Job Job: Step NexusIqPipelineTask input nexusIqService references service connection ... which could not be found. The service connection does not exist or has not been authorized for use."
Even if you Authorize resources, the problem persists when the build is retried.
Solution
This can indicate there is difference between pipeline yaml referenced nexusIqService value and the one that is configured in the UI. Check for any differences between these values and correct them.
# Node.js # Build a general Node.js project with npm. # Add steps that analyze code, save build artifacts, deploy, and more: # https://docs.microsoft.com/azure/devops/pipelines/languages/javascript trigger: - main pool: vmImage: 'ubuntu-latest' steps: - task: NodeTool@0 inputs: versionSpec: '10.x' displayName: 'Install Node.js' - script: | npm install displayName: 'npm install' - task: NexusIqPipelineTask@0 inputs: nexusIqService: 'john''s connection' applicationId: 'my-app' stage: 'Build' scanTargets: '**/*