Git Product home page Git Product logo

Comments (5)

colindembovsky avatar colindembovsky commented on June 12, 2024

Hi @masheleza - I suspect the issue is permissions. I've updated this doc to show how you can set permissions if you get the permission error.

If the problem is something else, can you please set a release variable system.debug = true and post the logs for the task?

from cols-agent-tasks.

masheleza avatar masheleza commented on June 12, 2024

from cols-agent-tasks.

masheleza avatar masheleza commented on June 12, 2024

Managed to get Oauth, now the problem is I can't locate the tag when I go to the VSTS code / repo/ history, I can only see the other tags I created but not the one created on the build/release

from cols-agent-tasks.

masheleza avatar masheleza commented on June 12, 2024

@colindembovsky Please above comments and assist if there's anything that I am missing

2017-05-04T12:25:15.5028255Z Starting task: Tag Release
2017-05-04T12:25:15.5028255Z Set workingFolder to default: C:\tfa1\tasks\JSONTokenizer\0.1.154
2017-05-04T12:25:15.7997040Z ##[debug]agent.workFolder=C:\tfa1
2017-05-04T12:25:15.8153470Z ##[debug]loading inputs and endpoints
2017-05-04T12:25:15.8153470Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN
2017-05-04T12:25:15.8153470Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION
2017-05-04T12:25:15.8309598Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION
2017-05-04T12:25:15.8309598Z ##[debug]loading INPUT_TAGS
2017-05-04T12:25:15.8309598Z ##[debug]loading INPUT_TYPE
2017-05-04T12:25:15.8309598Z ##[debug]loaded 5
2017-05-04T12:25:16.3153326Z ##[debug]Starting Tag Build/Release task
2017-05-04T12:25:16.3153326Z ##[debug]System.TeamFoundationCollectionUri=https://masheleza.visualstudio.com/
2017-05-04T12:25:16.3153326Z ##[debug]System.TeamProject=VSTS
2017-05-04T12:25:16.3153326Z ##[debug]type=Release
2017-05-04T12:25:16.3153326Z ##[debug]tags=Cust.Api_1.0.17124.01
2017-05-04T12:25:16.3153326Z PROD - Cust.Api-Release
2017-05-04T12:25:16.3153326Z ##[debug]Build.BuildId=2630
2017-05-04T12:25:16.3153326Z ##[debug]Build ID = 2630
2017-05-04T12:25:16.3153326Z ##[debug]Release.ReleaseId=1925
2017-05-04T12:25:16.3153326Z ##[debug]Release ID = 1925
2017-05-04T12:25:16.3153326Z ##[debug]System.AccessToken=********
2017-05-04T12:25:16.3153326Z ##[debug]Detected token: creating bearer cred handler
2017-05-04T12:25:16.3153326Z ##[debug]Getting release api client
2017-05-04T12:25:18.6122529Z Setting tags on release [1925]
2017-05-04T12:25:21.0810441Z ##[debug]New tags: PROD -Cust.Api-Release,Cust.Api_1.0.17124.01
2017-05-04T12:25:21.0810441Z ##[debug]task result: Succeeded
2017-05-04T12:25:21.0810441Z ##[debug]Leaving Tag Build/Release task
2017-05-04T12:25:21.0966685Z Finishing task: JSONTokenizer

from cols-agent-tasks.

colindembovsky avatar colindembovsky commented on June 12, 2024

Hi @masheleza - glad you got the token set. I can see from this line:

2017-05-04T12:25:21.0810441Z ##[debug]New tags: PROD -Cust.Api-Release,Cust.Api_1.0.17124.01

that the tags are being set (the values are returned from the call to VSTS to add the tag). Since you set the Type to Release, the tag has been added to the instance of the release itself. If you click on the release and open the Release Summary, there's a tags section on the bottom right where you'll see your tags.

If you want to tag the build instead, set the Type to Build and the task will add the tag to the incoming build instead (if you tag a build you see the tags on the Build Summary page).

Hope that helps!

from cols-agent-tasks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.