Skip to content

Commit

Permalink
nodejs comtainer
Browse files Browse the repository at this point in the history
  • Loading branch information
akokshar committed Aug 9, 2019
1 parent 4b1c731 commit 1c9fed8
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,23 @@
podTemplate {
node(POD_LABEL) {
stage('Run shell') {
sh 'echo YAY! Hello Sasha!'
}
podTemplate (
label: 'test',
containers: [
containerTemplate(
name: 'nodejs',
image: 'node:alpine',
command: 'cat',
ttyEnabled: true
)
]
)
{
node('test') {
stage('nodejs') {
container('nodejs') {
sh "node --version"
}
}
stage('Run shell') {
sh 'echo YAY! Hello Sasha!'
}
}
}

0 comments on commit 1c9fed8

Please sign in to comment.