Skip to content
This repository was archived by the owner on Feb 6, 2025. It is now read-only.

Commit

Permalink
Run e2e jobs from pr (#1094)
Browse files Browse the repository at this point in the history
* Use branch from parameters in daily jobs

Using the BRANCH parameter allows testing daily jobs using a branch.

Add the refspec to allow fetching pull requests as branch pr/xxxx.

Signed-off-by: Pablo Chacin <pchacin@suse.com>
  • Loading branch information
pablochacin authored May 8, 2020
1 parent ce312a7 commit c414d87
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion ci/jenkins/templates/conformance-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@
- git:
url: 'https://github.com/{repo-owner}/{repo-name}.git'
credentials-id: '{repo-credentials}'
refspec: '+refs/heads/*:refs/remotes/origin/* +refs/pull/*/head:refs/remotes/origin/pr/*'
branches:
- '{branch}'
- '$BRANCH'
browser: auto
suppress-automatic-scm-triggering: true
basedir: skuba
Expand Down
3 changes: 2 additions & 1 deletion ci/jenkins/templates/e2e-daily-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@
- git:
url: 'https://github.com/{repo-owner}/{repo-name}.git'
credentials-id: '{repo-credentials}'
refspec: '+refs/heads/*:refs/remotes/origin/* +refs/pull/*/head:refs/remotes/origin/pr/*'
branches:
- '{branch}'
- '$BRANCH'
browser: auto
suppress-automatic-scm-triggering: true
basedir: skuba
Expand Down
3 changes: 2 additions & 1 deletion ci/jenkins/templates/e2e-update-daily-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@
- git:
url: 'https://github.com/{repo-owner}/{repo-name}.git'
credentials-id: '{repo-credentials}'
refspec: '+refs/heads/*:refs/remotes/origin/* +refs/pull/*/head:refs/remotes/origin/pr/*'
branches:
- '{branch}'
- '$BRANCH'
browser: auto
suppress-automatic-scm-triggering: true
basedir: skuba
Expand Down

0 comments on commit c414d87

Please sign in to comment.