dmitryserbin / azdev-release-orchestrator

Azure DevOps extension to manage and orchestrate release pipelines
MIT License
23 stars 12 forks source link

Endpoint not present: SystemVssConnection on *nix build agents #8

Closed tophallen closed 5 years ago

tophallen commented 5 years ago

It seems that the SystemVssConnection is case sensitive on *nix systems - I was able to get it to work on a windows agent, but when running on an OSX agent it throws that error. All uses I have found in the Microsoft/azure-pipelines-tasks tests seems to have it in uppercase - so perhaps changing it to SYSTEMVSSCONNECTION would help this to be a cross-platform tool.

Related issue: https://github.com/geeklearningio/gl-vsts-tasks-inception/issues/9#issuecomment-255376042

Here is my debug log from testing:

2019-03-19T22:43:21.6480150Z ##[debug]agent.TempDirectory=/Users/Shared/myagent/_work/_temp
2019-03-19T22:43:21.6480700Z ##[debug]loading inputs and endpoints
2019-03-19T22:43:21.6480820Z ##[debug]loading INPUT_ENDPOINTTYPE
2019-03-19T22:43:21.6481010Z ##[debug]loading INPUT_TARGETPROJECT
2019-03-19T22:43:21.6481070Z ##[debug]loading INPUT_TARGETDEFINITION
2019-03-19T22:43:21.6481180Z ##[debug]loading INPUT_RELEASESTRATEGY
2019-03-19T22:43:21.6481230Z ##[debug]loading INPUT_TARGETRELEASE
2019-03-19T22:43:21.6481420Z ##[debug]loading INPUT_TARGETRELEASESTAGES
2019-03-19T22:43:21.6481560Z ##[debug]loading INPUT_RELEASETAGFILTER
2019-03-19T22:43:21.6481610Z ##[debug]loading INPUT_ARTIFACTTAGFILTER
2019-03-19T22:43:21.6481720Z ##[debug]loading INPUT_SOURCEBRANCHFILTER
2019-03-19T22:43:21.6481770Z ##[debug]loading INPUT_SOURCEBRANCHNAME
2019-03-19T22:43:21.6481870Z ##[debug]loading INPUT_ARTIFACTSTRATEGY
2019-03-19T22:43:21.6481930Z ##[debug]loading INPUT_TARGETARTIFACT
2019-03-19T22:43:21.6481980Z ##[debug]loading INPUT_TARGETARTIFACTVERSION
2019-03-19T22:43:21.6482140Z ##[debug]loading INPUT_STAGESTRATEGY
2019-03-19T22:43:21.6482190Z ##[debug]loading INPUT_TARGETDEFINITIONSTAGES
2019-03-19T22:43:21.6482290Z ##[debug]loading INPUT_IGNOREFAILURE
2019-03-19T22:43:21.6482350Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION
2019-03-19T22:43:21.6482400Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION
2019-03-19T22:43:21.6482520Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN
2019-03-19T22:43:21.6482570Z ##[debug]loaded 19
2019-03-19T22:43:21.6483180Z ##[debug]Agent.ProxyUrl=undefined
2019-03-19T22:43:21.6483240Z ##[debug]Agent.CAInfo=undefined
2019-03-19T22:43:21.6483350Z ##[debug]Agent.ClientCert=undefined
2019-03-19T22:43:21.6483410Z ##[debug]Agent.SkipCertValidation=undefined
2019-03-19T22:43:21.7836810Z ##[debug]EndpointType=integrated
2019-03-19T22:43:21.7859230Z ##[debug]IgnoreFailure=false
2019-03-19T22:43:21.7860890Z ##[debug]task result: Failed
2019-03-19T22:43:21.7911930Z ##[error]Endpoint not present: SystemVssConnection
2019-03-19T22:43:21.7922130Z ##[debug]Processed: ##vso[task.issue type=error;]Endpoint not present: SystemVssConnection
2019-03-19T22:43:21.7939750Z ##[debug]Processed: ##vso[task.complete result=Failed;]Endpoint not present: SystemVssConnection

I was not able to get any further to see if there are other places it might fail on a non-windows box.

dmitryserbin commented 5 years ago

Thanks for reporting. I'll see if I can address this issue in upcoming 1.2 release.

dmitryserbin commented 5 years ago

To be addressed in #6

tophallen commented 5 years ago

Awesome, thanks for the quick response - great work on this btw.

dmitryserbin commented 5 years ago

Version 1.2.0 has been pushed. Please check if it resolves the issues.

tophallen commented 5 years ago

that has solved this issue - thank you.