Skip to content

Instantly share code, notes, and snippets.

@garunski
Created December 25, 2017 23:01
Show Gist options
  • Save garunski/847dbcbfcf02d0a92cd4588824a83773 to your computer and use it in GitHub Desktop.
Save garunski/847dbcbfcf02d0a92cd4588824a83773 to your computer and use it in GitHub Desktop.
Jenkinsfile.local
#!/usr/bin/groovy
podTemplate(
label: 'jenkins-pipeline',
inheritFrom: 'default',
containers: [
containerTemplate(name: 'ng', image: 'alexsuch/angular-cli:1.6.1', command: 'cat', ttyEnabled: true)
]
) {
node ('jenkins-pipeline') {
stage ('Get Latest') {
checkout scm
}
stage ('Build') {
container ('ng') {
sh "npm install"
sh "ng build"
}
}
} // end node
} // end podTemplate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment