Merge "Tests: Add test for group including missing job"

This commit is contained in:
Zuul 2023-02-03 20:17:59 +00:00 committed by Gerrit Code Review
commit 263fbc9772
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