colindembovsky / cols-agent-tasks

Colin's ALM Corner Custom Build Tasks
MIT License
83 stars 67 forks source link

Tag not applied to build #80

Closed EaglesRoost closed 6 years ago

EaglesRoost commented 6 years ago

Don't know what I'm missing here, but when I attempt to configure a tag for my build, I get the following:

Task : Tag Build or Release Description : Adds tags to a build or release Version : 0.1.176 Author : Colin Dembovsky (colinsalmcorner.com) Help : More Information

Setting tags on build [13057] Error: self signed certificate in certificate chain

Nothing special, enabled oauth for build, just updating a build's tag image

colindembovsky commented 6 years ago

Hi @EaglesRoost - can you please create a variable called system.debug and set the value to true. Then paste the (verbose) logs here (feel free to scrub any sensitive information).

Are you using VSTS or TFS? I suspect it's TFS. The task is making a REST call to the TFS server and that call is failing because of a cert issue. Looking at the logs would help.

EaglesRoost commented 6 years ago

Sure, this is in VSTS and here is the log:


Starting: Tag Build


============================================================================== Task : Tag Build or Release Description : Adds tags to a build or release Version : 0.1.176 Author : Colin Dembovsky (colinsalmcorner.com) Help : More Information

agent.TempDirectory=D:\VSTSAgent\xxxxxxx_Agent2_work_temp loading inputs and endpoints loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION loading INPUT_TAGS loading INPUT_TYPE loaded 5 Agent.ProxyUrl=undefined Agent.CAInfo=undefined Agent.ClientCert=undefined Starting Tag Build/Release task System.TeamFoundationCollectionUri=https://xxxx.visualstudio.com/ System.TeamProject=Main type=Build tags=DEVDeploy Build.BuildId=13062 Build ID = 13062 Release.ReleaseId=undefined System.AccessToken=**** Detected token: creating bearer cred handler Getting build api client Setting tags on build [13062] task result: Failed Error: self signed certificate in certificate chain Processed: ##vso[task.issue type=error;]Error: self signed certificate in certificate chain Processed: ##vso[task.complete result=Failed;]Error: self signed certificate in certificate chain


Finishing: Tag Build


colindembovsky commented 6 years ago

@EaglesRoost is this still happening?

colindembovsky commented 6 years ago

Closing due to inactivity.

akhanna38 commented 5 years ago

I am seeing it now. I am using TFS 2017. my company recently moved TFS to https