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
/** | |
* PLUNKER VERSION (based on systemjs.config.js in angular.io) | |
* System configuration for Angular 2 samples | |
* Adjust as necessary for your application needs. | |
*/ | |
(function(global) { | |
var ngVer = '@2.0.0-rc.1'; // lock in the angular package version; do not let it float to current! | |
//map tells the System loader where to look for things |
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
pipeline { | |
agent any | |
stages { | |
stage("Build") { | |
//… | |
} | |
stage("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
node { | |
stage ("Build") { | |
//… | |
} | |
stage ("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
#!groovy | |
def lastCommitInfo = "" | |
def skippingText = "" | |
def commitContainsSkip = 0 | |
def slackMessage = "" | |
def shouldBuild = false | |
def pollSpec = "" |
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
stage('Init') { | |
steps { | |
script { | |
lastCommitInfo = sh(script: "git log -1", returnStdout: true).trim() | |
commitContainsSkip = sh(script: "git log -1 | grep '.*\\[skip ci\\].*'", returnStatus: true) | |
if(commitContainsSkip == 0) { | |
skippingText = "Skipping commit." | |
env.shouldBuild = false | |
currentBuild.result = "NOT_BUILT" |
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
stage('Run Unit and UI Tests') { | |
when { | |
expression { | |
return env.shouldBuild != "false" | |
} | |
} | |
steps { | |
script { | |
try { | |
// Run your tests here |
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
stage('Build application for beta') { | |
when { | |
expression { | |
return env.shouldBuild != "false" | |
} | |
} | |
steps { | |
// Build application for pre-prod servers | |
} | |
} |
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
stage('Deploy to beta') { | |
when { | |
expression { | |
return env.shouldBuild != "false" | |
} | |
} | |
steps { | |
// Deploy new build to pre-prod environments | |
} | |
} |
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
stage('Build application for prod') { | |
when { | |
expression { | |
return env.shouldBuild != "false" && env.BRANCH_NAME == "master" | |
} | |
} | |
steps { | |
// Build your application for prod servers | |
} | |
} |
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
stage('Send to Prod') { | |
when { | |
expression { | |
return env.shouldBuild != "false" && env.BRANCH_NAME == "master" | |
} | |
} | |
steps { | |
// Deploy your application to prod servers | |
} | |
} |
OlderNewer