VSTS plugin running on Linux

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

VSTS plugin running on Linux

vbergbauer
The current Artifactory VSTS Plugin described at https://www.jfrog.com/confluence/display/RTF/VS+Team+Services+Artifactory+Plugin is implemented as as PowerShell script, so it would not run on Linux build/deploy agent.

Is there any plan to implement the plugin in a cross-platform manner with Node as shown in https://www.visualstudio.com/en-us/docs/integrate/extensions/develop/add-build-task (with many examples at https://github.com/Microsoft/vsts-tasks/tree/master/Tasks)?
Reply | Threaded
Open this post in threaded view
|

Re: VSTS plugin running on Linux

Ethan Spoelstra
The portion of the plugin that is PowerShell is probably the piece that goes onto the VSTS server, which is Windows only AFAIK. The plugin that you install in Artifactory should be Java/Groovy, because that is what Artifactory itself is programmed in. If you have a Linux VSTS build agent you can still use the Artifactory CLI to perform deploys/promotions or use the REST API. I'm not positive but fairly certain that even if you are using all Linux agents, the VSTS coordinator/master server that is hosted by VSTS runs Windows, and that is where the artifacts will get copied back to and promoted from.

On Wed, Jul 27, 2016 at 2:55 PM, vbergbauer <[hidden email]> wrote:
The current Artifactory VSTS Plugin described at
https://www.jfrog.com/confluence/display/RTF/VS+Team+Services+Artifactory+Plugin
is implemented as as PowerShell script, so it would not run on Linux
build/deploy agent.

Is there any plan to implement the plugin in a cross-platform manner with
Node as shown in
https://www.visualstudio.com/en-us/docs/integrate/extensions/develop/add-build-task
(with many examples at
https://github.com/Microsoft/vsts-tasks/tree/master/Tasks)?




--
View this message in context: http://forums.jfrog.org/VSTS-plugin-running-on-Linux-tp7581131.html
Sent from the Artifactory - Users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users


------------------------------------------------------------------------------

_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users
Reply | Threaded
Open this post in threaded view
|

Re: VSTS plugin running on Linux

vbergbauer
Thank you for your answer Ethan,

It does appear that the task is actually running on the build agent.
Here is the error:
2016-07-29T01:36:52.8159870Z ##[section]Starting: JFrogArtifactoryPromote
2016-07-29T01:36:53.0988410Z ##[error]Supported task execution handler not found. Supported handlers: Node
2016-07-29T01:36:53.1038520Z ##[section]Finishing: JFrogArtifactoryPromote

As you see the only handler supported is Node, not PowerShell (my agent runs on Linux)

When I unzipped the JFrog.jfrog-artifactory-1.0.0.vsix extension and looked at the JFrogArtifactoryPromote's task.json, I saw the following:
  "execution": {
    "PowerShell": {
      "target": "$(currentDirectory)\\ArtifactoryPromote.ps1",
      "argumentFormat": "",
      "workingDirectory": "$(currentDirectory)"
    }

Compare this to the PublishCodeCoverageResults task which supports both PowerShell and Node: https://github.com/Microsoft/vsts-tasks/blob/master/Tasks/PublishCodeCoverageResults/task.json#L58

It makes sense to assume that JFrogArtifactoryPromote is running on the build agent since I am adding it as a build task and it shows up in the build log.