Jenkins Pipeline sh display name/label

后端 未结 8 1337

With Jenkins 2 Pipeline plugin, there\'s a useful feature allowing a quick overview of the pipeline stages and status of steps, including logging output.

However, if

8条回答
  •  -上瘾入骨i
    2020-12-24 05:25

    It's not perfect, but I generally find it adequate to add an echo step that describes what the following bat or sh step is trying to accomplish. Someone that's never seen it before should be able to figure it out quickly.

    echo "Testing with Ping"
    bat "ping www.stackoverflow.com"
    echo "Getting IPs"
    bat "nslookup www.stackoverflow.com"
    

提交回复
热议问题