简体   繁体   中英

Jenkins pipeline stages as to be done

I'd like to set up a Jenkins pipeline so that some of the later stages are to be done. What I mean is the first couple stages have been implemented but the latter stages have not. There is some business value for me and showing the future stages as

For example, build, unit test, and integration test stages are all implemented and run in order to determine the success of the build. But there could also be two follow on stages called create docker and deploy to cloud which are not done and would have no effect on the build.

Is this possible?

You can use when :

 when { expression { return false } }

This will skip and provide a ? visual (in BlueOcean) while retaining the placeholder.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM