diff options
author | Zuul <zuul@review.openstack.org> | 2017-10-23 19:12:14 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-10-23 19:12:14 +0000 |
commit | a23f8bf8db087d6bdc7c56b8f217f696927350a8 (patch) | |
tree | ef9921f1e700e92512dd5a8b77dc5a3b76992873 /tests/yamlparser/fixtures | |
parent | 2b65528b443443e3ca9be579b85d908d1165d69e (diff) | |
parent | 8bcd0d0bd2caf9d28d4f55cba712afb20654b591 (diff) | |
download | python-jenkins-job-builder-a23f8bf8db087d6bdc7c56b8f217f696927350a8.tar.gz python-jenkins-job-builder-a23f8bf8db087d6bdc7c56b8f217f696927350a8.tar.xz python-jenkins-job-builder-a23f8bf8db087d6bdc7c56b8f217f696927350a8.zip |
Merge "Add cloudbees folder creation support"
Diffstat (limited to 'tests/yamlparser/fixtures')
4 files changed, 51 insertions, 0 deletions
diff --git a/tests/yamlparser/fixtures/project_folder_template001.xml b/tests/yamlparser/fixtures/project_folder_template001.xml new file mode 100644 index 00000000..38cd68d0 --- /dev/null +++ b/tests/yamlparser/fixtures/project_folder_template001.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8"?> +<com.cloudbees.hudson.plugins.folder.Folder plugin="cloudbees-folder"> + <actions/> + <icon class="com.cloudbees.hudson.plugins.folder.icons.StockFolderIcon"/> + <views/> + <viewsTabBar class="hudson.views.DefaultViewsTabBar"/> + <primaryView>All</primaryView> + <healthMetrics/> + <actions/> + <description><!-- Managed by Jenkins Job Builder --></description> + <keepDependencies>false</keepDependencies> + <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding> + <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding> + <concurrentBuild>false</concurrentBuild> + <canRoam>true</canRoam> + <properties/> + <scm class="hudson.scm.NullSCM"/> + <publishers/> + <buildWrappers/> +</com.cloudbees.hudson.plugins.folder.Folder> diff --git a/tests/yamlparser/fixtures/project_folder_template001.yaml b/tests/yamlparser/fixtures/project_folder_template001.yaml new file mode 100644 index 00000000..0a499490 --- /dev/null +++ b/tests/yamlparser/fixtures/project_folder_template001.yaml @@ -0,0 +1,3 @@ +- job: + name: folder_test + project-type: folder diff --git a/tests/yamlparser/fixtures/project_folder_template002.xml b/tests/yamlparser/fixtures/project_folder_template002.xml new file mode 100644 index 00000000..38cd68d0 --- /dev/null +++ b/tests/yamlparser/fixtures/project_folder_template002.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8"?> +<com.cloudbees.hudson.plugins.folder.Folder plugin="cloudbees-folder"> + <actions/> + <icon class="com.cloudbees.hudson.plugins.folder.icons.StockFolderIcon"/> + <views/> + <viewsTabBar class="hudson.views.DefaultViewsTabBar"/> + <primaryView>All</primaryView> + <healthMetrics/> + <actions/> + <description><!-- Managed by Jenkins Job Builder --></description> + <keepDependencies>false</keepDependencies> + <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding> + <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding> + <concurrentBuild>false</concurrentBuild> + <canRoam>true</canRoam> + <properties/> + <scm class="hudson.scm.NullSCM"/> + <publishers/> + <buildWrappers/> +</com.cloudbees.hudson.plugins.folder.Folder> diff --git a/tests/yamlparser/fixtures/project_folder_template002.yaml b/tests/yamlparser/fixtures/project_folder_template002.yaml new file mode 100644 index 00000000..4af049cd --- /dev/null +++ b/tests/yamlparser/fixtures/project_folder_template002.yaml @@ -0,0 +1,8 @@ +- job-template: + name: 'folder-{name}' + project-type: folder + +- project: + name: test + jobs: + - 'folder-{name}' |