Skip to content

[Question]: Is it better to use a task for this #19544

Closed
@craftzneko

Description

Task name

?

Task version

No response

Environment type (Please select at least one enviroment where you face this issue)

  • Self-Hosted
  • Microsoft Hosted
  • VMSS Pool
  • Container

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

No response

Operation system

?

Question

I have a pipeline that runs this script in ubuntu image

PullRequests=$(curl -u ":$PersonalAccessToken" $dev)

I have confirmed all the variables are correct and are in the script but it always returns {"error":{"code":"AuthorizationFailed","message":"The authentication credentials are not valid."}}

If i run this same command on a local ubuntu rather than in the pipeline it works. I am so fed up trying to figure out this issue now. So my question, is there a task that can make API calls to dev ops api and be a better option than this.

Cheers

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions