Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
Signed-off-by: Liang Huang <[email protected]>
  • Loading branch information
yellow-shine committed May 26, 2024
1 parent be1c490 commit 788b276
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions ci/jenkins/PublishImages/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ pipeline {
containers:
- name: kubectl
image: bitnami/kubectl:1.27.14
securityContext:
privileged: true
command:
- sleep
args:
Expand All @@ -26,20 +28,20 @@ pipeline {
stage('sleep') {
steps {
script {
sleep 1
sleep 1
}
}
}
stage('list pod') {
steps {
container('kubectl') {
script {
script {
// sh 'kubectl get pod'

echo 'Hello world in list pod'
// sh 'kubectl get pod'
sh 'echo hello'
}
echo 'Hello world in list pod'
// sh 'kubectl get pod'
sh 'echo hello'
}
}
}
}
Expand Down

0 comments on commit 788b276

Please sign in to comment.