-
Notifications
You must be signed in to change notification settings - Fork 12.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11763 from RyanCavanaugh/real-jenkins
Jenkins / .net CI support
- Loading branch information
Showing
2 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Set up NVM | ||
export NVM_DIR="/home/dotnet-bot/.nvm" | ||
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" | ||
|
||
nvm install $1 | ||
|
||
npm uninstall typescript | ||
npm uninstall tslint | ||
npm install | ||
npm update | ||
npm test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Import the utility functionality. | ||
import jobs.generation.Utilities; | ||
|
||
// Defines a the new of the repo, used elsewhere in the file | ||
def project = GithubProject | ||
def branch = GithubBranchName | ||
|
||
def nodeVersions = ['stable', '4'] | ||
|
||
nodeVersions.each { nodeVer -> | ||
|
||
def newJobName = "typescript_node.${nodeVer}" | ||
def newJob = job(Utilities.getFullJobName(project, newJobName, true)) { | ||
steps { | ||
shell("./jenkins.sh ${nodeVer}") | ||
} | ||
} | ||
|
||
Utilities.standardJobSetup(newJob, project, true, "*/${branch}") | ||
Utilities.setMachineAffinity(newJob, 'Ubuntu', '20161020') | ||
Utilities.addGithubPRTriggerForBranch(newJob, branch, "TypeScript Test Run ${newJobName}") | ||
} |