-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove puppet and chef from CI. (#598)
Merged PR #598.
- Loading branch information
1 parent
01f33c8
commit 3c57805
Showing
14 changed files
with
4 additions
and
432 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,30 +64,6 @@ resources: | |
uri: [email protected]:((github-account.username))/inspec-gcp.git | ||
private_key: ((repo-key.private_key)) | ||
|
||
{% for module in vars.puppet_modules %} | ||
- name: puppet-{{module}}-intermediate | ||
type: git-branch | ||
source: | ||
{% if module == '_bundle' %} | ||
uri: [email protected]:((github-account.username))/puppet-google.git | ||
{% else %} | ||
uri: [email protected]:((github-account.username))/puppet-google-{{module}}.git | ||
{% endif %} | ||
private_key: ((repo-key.private_key)) | ||
{% endfor %} | ||
|
||
{% for module in vars.chef_modules %} | ||
- name: chef-{{module}}-intermediate | ||
type: git-branch | ||
source: | ||
{% if module == '_bundle' %} | ||
uri: [email protected]:((github-account.username))/chef-google.git | ||
{% else %} | ||
uri: [email protected]:((github-account.username))/chef-google-{{module}}.git | ||
{% endif %} | ||
private_key: ((repo-key.private_key)) | ||
{% endfor %} | ||
|
||
- name: mm-approved-prs | ||
type: github-pull-request | ||
source: | ||
|
@@ -181,43 +157,6 @@ jobs: | |
branch_file: magic-modules-branched/branchname | ||
only_if_diff: true | ||
force: true | ||
{% if vars.puppet_modules %} | ||
- do: | ||
# consumes: magic-modules-branched | ||
# produces: puppet-generated | ||
- task: generate-puppet | ||
file: magic-modules-branched/.ci/magic-modules/generate-puppet.yml | ||
params: | ||
PRODUCTS: {{','.join(vars.puppet_modules)}} | ||
- aggregate: | ||
{% for module in vars.puppet_modules %} | ||
- put: puppet-{{module}}-intermediate | ||
params: | ||
repository: puppet-generated/{{module}} | ||
branch_file: magic-modules-branched/branchname | ||
only_if_diff: true | ||
force: true | ||
{% endfor %} | ||
{% endif %} | ||
|
||
{% if vars.chef_modules %} | ||
- do: | ||
# consumes: magic-modules-branched | ||
# produces: chef-generated | ||
- task: generate-chef | ||
file: magic-modules-branched/.ci/magic-modules/generate-chef.yml | ||
params: | ||
PRODUCTS: {{','.join(vars.chef_modules)}} | ||
- aggregate: | ||
{% for module in vars.chef_modules %} | ||
- put: chef-{{module}}-intermediate | ||
params: | ||
repository: chef-generated/{{module}} | ||
branch_file: magic-modules-branched/branchname | ||
only_if_diff: true | ||
force: true | ||
{% endfor %} | ||
{% endif %} | ||
on_failure: | ||
put: magic-modules-new-prs | ||
params: | ||
|
@@ -233,8 +172,6 @@ jobs: | |
# This needs to match the username for the 'intermediate' resources. | ||
GH_USERNAME: ((github-account.username)) | ||
CREDS: ((repo-key.private_key)) | ||
PUPPET_MODULES: {{','.join(vars.puppet_modules)}} | ||
CHEF_MODULES: {{','.join(vars.chef_modules)}} | ||
TERRAFORM_VERSIONS: "{{','.join(vars.terraform_properties_serialized)}}" | ||
TERRAFORM_ENABLED: true | ||
ANSIBLE_ENABLED: true | ||
|
@@ -317,70 +254,6 @@ jobs: | |
context: inspec-tests | ||
path: magic-modules-new-prs | ||
|
||
- name: puppet-test | ||
plan: | ||
- get: magic-modules | ||
version: every | ||
trigger: true | ||
params: | ||
submodules: | ||
{% for module in vars.puppet_submodules %} | ||
- {{module}} | ||
{% endfor %} | ||
passed: [mm-generate] | ||
- aggregate: | ||
{% for module in vars.puppet_modules %} | ||
- task: test-{{module}} | ||
file: magic-modules/.ci/unit-tests/puppet.yml | ||
timeout: 30m | ||
params: | ||
PRODUCT: {{module}} | ||
{%- if vars.puppet_test_excludes.get(module) %} | ||
EXCLUDE_PATTERN: {{','.join(vars.puppet_test_excludes[module])}} | ||
{%- endif %} | ||
{% endfor %} | ||
on_failure: | ||
do: | ||
- get: magic-modules-new-prs | ||
passed: [mm-generate] | ||
- put: magic-modules-new-prs | ||
params: | ||
status: failure | ||
context: puppet-tests | ||
path: magic-modules-new-prs | ||
|
||
- name: chef-test | ||
plan: | ||
- get: magic-modules | ||
version: every | ||
trigger: true | ||
params: | ||
submodules: | ||
{% for module in vars.chef_submodules %} | ||
- {{module}} | ||
{% endfor %} | ||
passed: [mm-generate] | ||
- aggregate: | ||
{% for module in vars.chef_modules %} | ||
- task: test-{{module}} | ||
file: magic-modules/.ci/unit-tests/chef.yml | ||
timeout: 30m | ||
params: | ||
PRODUCT: {{module}} | ||
{%- if vars.chef_test_excludes.get(module) %} | ||
EXCLUDE_PATTERN: {{','.join(vars.chef_test_excludes[module])}} | ||
{%- endif %} | ||
{% endfor %} | ||
on_failure: | ||
do: | ||
- get: magic-modules-new-prs | ||
passed: [mm-generate] | ||
- put: magic-modules-new-prs | ||
params: | ||
status: failure | ||
context: chef-tests | ||
path: magic-modules-new-prs | ||
|
||
- name: create-prs | ||
plan: | ||
- get: magic-modules | ||
|
@@ -390,12 +263,6 @@ jobs: | |
submodules: {{vars.all_submodules_yaml_format}} | ||
passed: | ||
- mm-generate | ||
{%- if vars.chef_modules %} | ||
- chef-test | ||
{%- endif -%} | ||
{%- if vars.puppet_modules %} | ||
- puppet-test | ||
{%- endif %} | ||
- terraform-test | ||
- ansible-test | ||
- inspec-test | ||
|
@@ -416,14 +283,6 @@ jobs: | |
TERRAFORM_REPO_USER: terraform-providers | ||
ANSIBLE_REPO_USER: modular-magician | ||
INSPEC_REPO_USER: modular-magician | ||
{%- if vars.puppet_modules %} | ||
PUPPET_REPO_USER: GoogleCloudPlatform | ||
PUPPET_MODULES: {{','.join(vars.puppet_modules)}} | ||
{%- endif %} | ||
{%- if vars.chef_modules %} | ||
CHEF_REPO_USER: GoogleCloudPlatform | ||
CHEF_MODULES: {{','.join(vars.chef_modules)}} | ||
{%- endif %} | ||
TERRAFORM_VERSIONS: "{{','.join(vars.terraform_properties_serialized)}}" | ||
on_failure: | ||
put: magic-modules-new-prs | ||
|
@@ -466,23 +325,6 @@ jobs: | |
# See comment on terraform-intermediate | ||
only_if_diff: true | ||
force: true | ||
{% for module in vars.puppet_modules %} | ||
- put: puppet-{{module}}-intermediate | ||
params: | ||
repository: magic-modules-with-comment/build/puppet/{{module}} | ||
branch_file: magic-modules-with-comment/original_pr_branch_name | ||
only_if_diff: true | ||
force: true | ||
{% endfor %} | ||
|
||
{% for module in vars.chef_modules %} | ||
- put: chef-{{module}}-intermediate | ||
params: | ||
repository: magic-modules-with-comment/build/chef/{{module}} | ||
branch_file: magic-modules-with-comment/original_pr_branch_name | ||
only_if_diff: true | ||
force: true | ||
{% endfor %} | ||
|
||
# This isn't load-bearing - it's just aesthetic. It will also be a no-op the first | ||
# time through, it works the same way as the preceding push. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.