Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build is not getting queued when 'VSTS Developer Tools Build Tasks' is added in TFS 2017 build definition #47

Closed
ranuka2 opened this issue Feb 22, 2017 · 5 comments

Comments

@ranuka2
Copy link

ranuka2 commented Feb 22, 2017

I have entered all required parameters and saves the task, When I clicked the “Queue new build” link it shows error message “There are issues with the request or definition….”, When I disable the task and Queue a build again it works fine. Please advise how to resolve this.

TFS Version : TFS 2017
Task Version: 1.1.41
Input file type: VSIX file

@jessehouwing
Copy link
Collaborator

It looks like you're using the "Publish task"? Have you tried removing and re-adding the task?

Please post the Build Definition json for this task:
image

Like this, that should tell me exactly what values are configured:
image

And what also could help is if you can intercept the json reply that's generated when queueing the build using your browser developer tools or fiddler. It may contain more information about the issues with the definition.

If you want to send them offline, please send it to: jhouwing@xpirit.com.

@jessehouwing
Copy link
Collaborator

I just tested the publish task on TFS 2017u1RC and that works as expected. I do get an error that my agent doesn't have npm installed, do you have Node installed and added to the %path% of the system or the service user so the build can find it?

@ranuka2
Copy link
Author

ranuka2 commented Feb 22, 2017

@jessehouwing ,

Json from build definition:

{
   "enabled": true,
   "continueOnError": false,
   "alwaysRun": false,
   "displayName": "Publish Extension",
   "timeoutInMinutes": 0,
   "task": {
     "id": "xxx-xxx-xxx-xxx-xxx",
     "versionSpec": "*",
     "definitionType": "task"
   },
   "inputs": {
     "connectTo": "VsTeam",
     "connectedServiceName": "xxx-xxx-xxx-xxx-xxx",
     "connectedServiceNameTFS": "",
     "fileType": "vsix",
     "vsixFile": "C:\\Test\\Test.vsix",
     "rootFolder": "",
     "localizationRoot": "",
     "patternManifest": "vss-extension.json",
     "publisherId": "xxxxx",
     "extensionId": "",
     "extensionTag": "",
     "extensionName": "",
     "extensionVersion": "",
     "updateTasksVersion": "false",
     "extensionVisibility": "private",
     "extensionPricing": "free",
     "outputVariable": "",
     "shareWith": "",
     "arguments": "",
     "cwd": ""
   }
 }

Node server is installed in the TFS server and other build tasks are getting executed. I assume this is related to inputs from 'VSTS Developer Tools Build Tasks' since its displaying the error message when trying to queue the build.

Thank you,
Ranuka

@jessehouwing
Copy link
Collaborator

Not seeing anything that stands out from the json that helps me diagnose the issue. Next step would be to get a fiddler trace from trying to queue the build when the definition is in broken state.

@ranuka2
Copy link
Author

ranuka2 commented Feb 24, 2017

@jessehouwing : Found the issue Jesse, Issue is Node path was not added as you mentioned. Thank you.

@ranuka2 ranuka2 closed this as completed Feb 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants