tests: Document how to manually replay nightly Pipeline
This commit is contained in:
parent
4cd6b37ea4
commit
fb8493b4df
4 changed files with 33 additions and 0 deletions
|
|
@ -237,3 +237,36 @@ can be used to review the test automation state during a PR lifecycle.
|
|||
`qa_ack+` on RHBZ will be granted **after** a reproducer has been
|
||||
identified and with the mutual understanding that PRs related to
|
||||
that RHBZ must include an automated test reproducer.
|
||||
|
||||
|
||||
## Cron jobs for nightly builds testing
|
||||
|
||||
The Schutzbot Pipeline contains conditional sections that facilitate test execution
|
||||
against nightly builds. This is achieved by running different preparation steps while
|
||||
the testing stage remains the same. The main difference is that SUT is not compiled
|
||||
locally but installed directly from OS repositories!
|
||||
|
||||
### Replay nightly Pipeline manually
|
||||
|
||||
If you wish to execute the nightly Pipeline by hand, often to verify changes made to it
|
||||
then do the following:
|
||||
|
||||
1. Wait for `schutzbot-psi/pr-head` to report any status on the pull request.
|
||||
This means a regular Pipeline has been started with changes coming from your PR; or
|
||||
1. In Jenkins Blue Ocean UI locate the latest Pipeline execution triggered by timer
|
||||
2. In Jenkins Blue Ocean UI, top-right corner, click ***Go to classic*** button:
|
||||
|
||||

|
||||
|
||||
3. In Jenkins Classic UI, left-hand sidebar click ***Replay*** button. This will allow you to
|
||||
replay a Pipeline with a modified syntax
|
||||
4. Locate the `detect_build_cause()` function near the bottom and modify it so that it
|
||||
will `return "cron"`. This is required because when Pipelines are restarted manually
|
||||
their build cause is **Replayed #xy**. See the images for reference:
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
5. Click the ***Run*** button - the newly started Pipeline will be forced to take the
|
||||
nightly branches instead of the regular ones
|
||||
|
|
|
|||
BIN
test/go_to_classic.png
Normal file
BIN
test/go_to_classic.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
BIN
test/pipeline_replay_01.png
Normal file
BIN
test/pipeline_replay_01.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 11 KiB |
BIN
test/pipeline_replay_02.png
Normal file
BIN
test/pipeline_replay_02.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.7 KiB |
Loading…
Add table
Add a link
Reference in a new issue