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

Added netci for jenkins #4

Merged
merged 5 commits into from
Aug 4, 2016
Merged

Added netci for jenkins #4

merged 5 commits into from
Aug 4, 2016

Conversation

333fred
Copy link
Member

@333fred 333fred commented Aug 2, 2016

This adds a netci config for Jenkins. We still need to do the following tasks to get Jenkins fully building PRs and merges:

  1. Enable the Jenkins service hooks and pull request hooks.
  2. Add this repository to the dotnet-ci-internal repo list, so the Jenkins jobs are created.
  3. Add test archival when we have tests. Right now, anything that builds should pass, since we have no tests. Filed Add XUnit Tests to netci.groovy #6 to track.

['Debug', 'Release'].each { config ->
def lowerCaseConfig = config.toLowerCase()

def newJobName = InternalUtilities.getFullJobName(project, "windows_$lowerCaseConfig", isPR)
Copy link
Contributor

@brthor brthor Aug 2, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we test on non-windows as well?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@natidea and @eerhardt and I were talking about this offline, and we were only thinking Windows for the moment.

@333fred
Copy link
Member Author

333fred commented Aug 2, 2016

Tagging @tannergooding, @jaredpar, @mmitche for review.

@natidea
Copy link
Contributor

natidea commented Aug 3, 2016

LGTM

// TODO: For when we actually have unit tests in this repo
// Utilities.addXUnitDotNETResults(myJob, '**/xUnitResults/*.xml')

Utilities.setMachineAffinity(newJob, 'Windows_NT')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to additionally specify either latest-or-auto-internal or latest-dev15-internal (both contain dev12 and dev14, but the latter also contains dev15). For example: Utilities.setMachineAffinity(newJob, 'Windows_NT', 'latest-dev15-internal').

This is required for all internal jobs to ensure nothing can be maliciously pulled off a machine by an arbitrary PR made against a public repo.

@tannergooding
Copy link
Member

Overall the changes LGTM, but you need to ensure you explicitly specify an internal machine label before this gets merged.


def newJob = job(newJobName) {
steps {
batchFile("build.cmd /$lowerCaseConfig")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed this in my PR last night. This should be
'build.cmd -Configuration $config'

@jaredpar
Copy link
Member

jaredpar commented Aug 3, 2016

OCD NIT: If you put a line break between your paragraph and start of the numbered list, Github will format it as an actual list.

def project = GithubProject
def branch = GithubBranchName

// Generate a PR/nonPR job for debug (test only), which just does testing.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix comment now that only or jobs are generated.

@333fred
Copy link
Member Author

333fred commented Aug 3, 2016

@eerhardt @tannergooding if I can get a final approval after my updates, I'll merge these and submit a pull to dotnet-ci-internal to add this repo to the list.

@eerhardt
Copy link
Member

eerhardt commented Aug 3, 2016

:shipit:

@tannergooding
Copy link
Member

LGTM

@333fred 333fred merged commit 99cae05 into dotnet:master Aug 4, 2016
@333fred 333fred deleted the jenkins-setup branch August 11, 2016 23:15
nguerrera pushed a commit that referenced this pull request Oct 10, 2016
mmitche pushed a commit to mmitche/sdk that referenced this pull request Jun 5, 2020
Adding Support for publishing using MsDeploy
JanKrivanek added a commit to JanKrivanek/sdk that referenced this pull request Oct 26, 2022
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

Successfully merging this pull request may close these issues.

6 participants