Skip to content

Commit

Permalink
Convert Smart Proxy Plugin PR testing to a pipeline
Browse files Browse the repository at this point in the history
This also renames the job names to follow the convention.

It only converts projects which have been updated to be compatible.
  • Loading branch information
ekohl committed Sep 15, 2022
1 parent eeb4678 commit 625805e
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 3 deletions.
7 changes: 7 additions & 0 deletions theforeman.org/pipelines/test/smart-proxy.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,13 @@ pipeline {
}
}
stage('Run Tests') {
environment {
// ci_reporters gem
CI_REPORTS = 'jenkins/reports/unit'
// minitest-reporters
MINITEST_REPORTER = 'JUnitReporter'
MINITEST_REPORTERS_REPORTS_DIR = 'jenkins/reports/unit'
}
steps {
withRVM(['bundle exec rake jenkins:unit'], ruby)
}
Expand Down
3 changes: 0 additions & 3 deletions theforeman.org/yaml/jobs/smart-proxy-plugin-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,11 @@
plugin:
- ansible
- dhcp_infoblox
- dhcp_remote_isc
- dns_infoblox
- discovery
- dynflow
- monitoring
- omaha
- openscap
- pulp
- remote_execution_ssh
- salt
jobs:
Expand Down
27 changes: 27 additions & 0 deletions theforeman.org/yaml/jobs/tests/smart-proxy-plugin-pr-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
- job-template:
name: 'smart_proxy_{plugin}-pr-test'
concurrent: true
sandbox: true
project-type: pipeline
properties:
- github:
url: 'https://github.com/theforeman/smart_proxy_{plugin}'
- tfm-pull-request-build-discarder
triggers:
- github_pr:
context: 'smart_proxy_{plugin}'
dsl:
!include-raw:
- pipelines/lib/git.groovy{empty}
- pipelines/lib/rvm.groovy{empty}
- pipelines/test/smart-proxy.groovy{empty}

- project:
name: smart_proxy_plugin_pr_test
plugin:
- dhcp_remote_isc
- dns_infoblox
- pulp
jobs:
- 'smart_proxy_{plugin}-pr-test'
empty: ''

0 comments on commit 625805e

Please sign in to comment.