Usage of ternary expressions in Jenkins-Groovy

Original link: https://wiki.eryajf.net/pages/ebae63/

008k1Yt0ly1h4rdnv4bawj30u011g7ai.jpg

When we use the pipeline, if a variable is not declared normally, we will encounter the error of variable definition failure. At this time, we can use ternary expression to solve this problem.

This article is reproduced from: https://wiki.eryajf.net/pages/ebae63/
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment