Reputation: 4358
I have series of test in Jenkins Pipeline like Integration test1
, Integration test2
, smoke test
, End-to-End Test
. Out of these test I want only the End-to-End Test
to run every night for master irrespective of the SCM changes.
For example refer attached picture of Pipeline flow
In this I would like to run End-to-End Test
every night where as other test should run whenever SCM commit happens. And End-to-End Test
should take the latest available artifact from Master.
Upvotes: 0
Views: 2144
Reputation: 51768
Scheduling in Jenkins is applicable to jobs. You need to refactor the End-to-End Tests into a separate Job. It can be a simple free-style job or a pipeline job. Then, you can schedule this job by configuring the Build Triggers > Build periodically
.
This job can also be invoked from the pipeline by using the build job dsl:
build job: 'e2e-test', parameters: ...
Upvotes: 1