Add test for job instantiation with null parameters

Change-Id: Ie2c91b2e7c36804333ef8e96ca89977203defdd8
This commit is contained in:
Vsevolod Fedorov 2023-04-17 10:42:30 +03:00
parent 84fe78ad90
commit 2f8ac26e86
2 changed files with 29 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 &quot;hello&quot;</command>
</hudson.tasks.Shell>
</builders>
<publishers/>
<buildWrappers/>
</project>

View File

@ -0,0 +1,10 @@
- job-template:
name: sample-job
builders:
- shell: echo "hello"
- project:
name: sample-project
jobs:
# Place colon but define no parameters.
- sample-job: