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
  • Loading branch information
ekohl committed Sep 9, 2022
1 parent f35f1a3 commit 5820c11
Showing 1 changed file with 7 additions and 27 deletions.
34 changes: 7 additions & 27 deletions theforeman.org/yaml/jobs/smart-proxy-plugin-pull-request.yaml
Original file line number Diff line number Diff line change
@@ -1,40 +1,19 @@
- job-template:
name: 'smart-proxy-{plugin}-pull-request'
concurrent: true
project-type: matrix
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
- pipelines/lib/rvm.groovy
- pipelines/test/smart-proxy.groovy

- project:
name: smart-proxy-plugin-pull-request
Expand All @@ -53,3 +32,4 @@
- salt
jobs:
- 'smart-proxy-{plugin}-pull-request'
empty: ''

0 comments on commit 5820c11

Please sign in to comment.