Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upWIP Set up CI with Azure Pipelines #1071
Conversation
|
@TravisEz13 @JamesWTruher I cannot create a new build definition in the PSScriptAnalyzer Azure pipelines instance here because the required service connection to the GitHub repo under my account has insufficient privileges (I am a build administrator and can create/edit Azure pipelines otherwise). Could you please create a dumy build pipeline and setup the GitHub service connection as a one-off please? Thanks |
| @@ -0,0 +1,24 @@ | |||
| steps: | |||
This comment has been minimized.
This comment has been minimized.
TravisEz13
Sep 16, 2018
Member
Can you include what queue it should run it?
I want as little as possible in Azure Pipelines
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
bergmeister
Sep 17, 2018
Author
Collaborator
The idea would be to have only 1 YAML file that works for different build definition, where only the queue (Windows/Linux/Mac) is different and set in UI of the the build definition.
This comment has been minimized.
This comment has been minimized.
TravisEz13
Sep 17, 2018
Member
You can use a matrix and run it 3 time in different queues if that is the intent.
| testRunner: NUnit | ||
| testResultsFiles: TestResults.xml | ||
| - task: PublishBuildArtifacts@1 | ||
| displayName: 'Publish Artifact: PSScriptAnalyzer' |
This comment has been minimized.
This comment has been minimized.
TravisEz13
Sep 16, 2018
Member
This currently won't work in an PR (I have an issue open to add this feature.)
See an example here how to skip this: https://github.com/PowerShell/PowerShell/blob/f90fa8afc1d96603811f67fe95a6c3fbc74497c0/.vsts-ci/mac.yml#L60
This comment has been minimized.
This comment has been minimized.
bergmeister
Sep 17, 2018
Author
Collaborator
Ok, thanks, I did not know that. Is there a tracking issue in https://github.com/Microsoft/vsts-tasks ?
| @@ -0,0 +1,24 @@ | |||
| steps: | |||
This comment has been minimized.
This comment has been minimized.
TravisEz13
Sep 16, 2018
Member
NIT: it would be good to set a build name, unless azure pipelines (can we say AP?) has made the default name meaningfull. Again see the powershell definitions.
|
see comments |

bergmeister commentedSep 15, 2018
•
edited
PR Summary
Works for Windows (Hosted VS 2017) and macOS agent. Linux needs some work
PR Checklist
Note: Tick the boxes below that apply to this pull request by putting an
xbetween the square brackets. Please mark anything not applicable to this PRNA.WIP:to the beginning of the title and remove the prefix when the PR is ready