Tests: Add test for group including missing job

Change-Id: Ie3103257111f5f6a81f0aadd32f88f35222198c6
This commit is contained in:
Vsevolod Fedorov 2023-01-11 13:02:16 +03:00
parent 822397a57f
commit 5e5eee86c3
2 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<project>
<actions/>
<description>&lt;!-- Managed by Jenkins Job Builder --&gt;</description>
<keepDependencies>false</keepDependencies>
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
<concurrentBuild>false</concurrentBuild>
<canRoam>true</canRoam>
<properties/>
<scm class="hudson.scm.NullSCM"/>
<builders>
<hudson.tasks.Shell>
<command>echo hi</command>
</hudson.tasks.Shell>
</builders>
<publishers/>
<buildWrappers/>
</project>

View File

@ -0,0 +1,17 @@
# When job group includes job which is never declared, it's just ignored.
- job-template:
name: job-1
builders:
- shell: echo hi
- job-group:
name: group-1
jobs:
- job-1
- job-2
- project:
name: sample-project
jobs:
- group-1