Jenkins skipping steps

When you have a long job in Jenkins, which consists of many steps, and you are actively developing / debugging this task, you need to disable some of the steps in order to proceed to a specific step that has been debugged.

How do you do this?

Obviously, you can try to remove those steps that do not interest you, but this is a pain, because restoring these steps is error prone. The same goes for editing them to make them skip by giving them some parameter, for example -DskipTests.

Another alternative would be to copy the work, but then again the pain, because testing our significant large project takes age. We can manually copy the workspace, but this is also hard work.

What are the best solutions for this problem?

+7
source share
2 answers

Try the BuildStep conditional plugin , which requires a Run Condition Plugin. With these two plugins, you can conditionally configure any build step and skip any one you like.

+8
source

Ok, I suppose that only commenting in .jenkins / jobs / JobName / config.xml should be done with the steps you want to skip?

-one
source

All Articles