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 c82cd56 commit a58acd4
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions ci/jenkins/PublishImages/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,9 @@ spec:
taskRef:
name: hello
EOF
""", returnStdout: true).trim()
""", returnStdout: true)
ret = ret.split("/")[1].split(' ')[0]
// def ret = sh(script: 'kubectl ', returnStdout: true)
println ret
def scripts = "echo ${ret} | awk -F'[/ ]' '{print \$2}'"
println scripts
def name = sh(script: scripts, returnStdout: true).trim()

sh """
kubectl logs ${name}-pod -f
Expand Down

0 comments on commit a58acd4

Please sign in to comment.