Created
December 25, 2017 23:01
-
-
Save garunski/847dbcbfcf02d0a92cd4588824a83773 to your computer and use it in GitHub Desktop.
Jenkinsfile.local
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
#!/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