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

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

sh """
kubectl describe taskrun ${name}
"""

// "kubectl get pod".execute().text.eachLine { line ->
// echo line
Expand Down

0 comments on commit b6ae10e

Please sign in to comment.