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.
  • Loading branch information
ekohl committed Sep 9, 2022
1 parent eeb4678 commit b0f85e7
Showing 1 changed file with 10 additions and 29 deletions.
39 changes: 10 additions & 29 deletions theforeman.org/yaml/jobs/smart-proxy-plugin-pull-request.yaml
Original file line number Diff line number Diff line change
@@ -1,40 +1,20 @@
- job-template:
name: 'smart-proxy-{plugin}-pull-request'
name: 'smart_proxy_{plugin}-pr-test'
concurrent: true
project-type: matrix
sandbox: true
project-type: pipeline
properties:
- github:
url: 'https://github.com/theforeman/smart_proxy_{plugin}'
- tfm-pull-request-build-discarder
scm:
- git:
url: 'https://github.com/theforeman/smart_proxy_{plugin}'
wipe-workspace: true
prune: true
branches:
- '${{ghprbActualCommit}}'
refspec: '+refs/pull/${{ghprbPullId}}/*:refs/remotes/origin/pr/${{ghprbPullId}}/*'
triggers:
- github_pr:
context: 'smart_proxy_{plugin}'
wrappers:
- timeout:
type: absolute
abort: true
timeout: 60
write-description: 'Build timed out (after {{0}} minutes). Marking the build as aborted.'
axes:
- axis:
type: user-defined
name: ruby
values:
- '2.5'
- '2.7'
builders:
- smart-proxy-plugin
publishers:
- gemset_cleanup

dsl:
!include-raw:
- pipelines/lib/git.groovy{empty}
- pipelines/lib/rvm.groovy{empty}
- pipelines/test/smart-proxy.groovy{empty}

- project:
name: smart-proxy-plugin-pull-request
Expand All @@ -52,4 +32,5 @@
- remote_execution_ssh
- salt
jobs:
- 'smart-proxy-{plugin}-pull-request'
- 'smart_proxy_{plugin}-pr-test'
empty: ''

0 comments on commit b0f85e7

Please sign in to comment.