From b9ae51a977604b59fbfe6698519b8ccd3bfc86fc Mon Sep 17 00:00:00 2001 From: Liang Huang Date: Sun, 26 May 2024 20:00:54 +0800 Subject: [PATCH] . Signed-off-by: Liang Huang --- ci/jenkins/PublishImages/Jenkinsfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ci/jenkins/PublishImages/Jenkinsfile b/ci/jenkins/PublishImages/Jenkinsfile index fb75628240b73..ea26f167948e0 100644 --- a/ci/jenkins/PublishImages/Jenkinsfile +++ b/ci/jenkins/PublishImages/Jenkinsfile @@ -6,8 +6,6 @@ pipeline { // defaultContainer 'jnlp' // yamlFile 'ci/jenkins/pod/meta-builder.yaml' yaml ''' - apiVersion: v1 - kind: Pod spec: securityContext: runAsUser: 1000 # default UID of jenkins user in agent image @@ -17,6 +15,11 @@ pipeline { command: - cat tty: true + - name: tekton + image: rancher/tekton-utils:v0.1.43 + command: + - cat + tty: true ''' } } @@ -35,7 +38,7 @@ pipeline { } stage('list pod') { steps { - container('kubectl') { + container('tekton') { script { // sh 'kubectl get pod' // "ls -lah".execute().text.eachLine { line ->