When I want to implement [skip ci] or [ci skip] for Jenkins multi-branch pipeline, the existing plugin seems broken.
My advice: try not to use the Jenkins plugin if possible.
Good, it’s time to implement [skip ci] myself.
If you like me used Jenkins shared library, you can create a function like SkipCI
from src/org/cicd/utils.groovy
, then other jobs can reused this function.
// src/org/cicd/utils.groovy |
Then I can call this function from other jobs.
// The following is not the complete code, it is just sample code and may not be run successfully. |
Please let me know if any questions or suggestions.
转载本站文章请注明作者和出处,请勿用于任何商业用途。欢迎关注公众号「DevOps攻城狮」