Skip to content

Commit

Permalink
test volumemount
Browse files Browse the repository at this point in the history
  • Loading branch information
akokshar committed Aug 12, 2019
1 parent d776bf3 commit 1f4c942
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
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!'
}
}
}
# 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!'
# }
# }
# }

kubernetes.pod('hello')
.withImage('ubuntu')
.withVolumeClaim('/home/jenkins/workspace/', 'jenkins-workspace')
.withVolumeClaim('/home/jenkins/agent/workspace/', 'jenkins-workspace')
.inside {
sh 'uname -a'
}

0 comments on commit 1f4c942

Please sign in to comment.