Skip to content

Commit

Permalink
github: pin the jenkins-job version
Browse files Browse the repository at this point in the history
The recently released jenkins-job version 5.0 fail to generate our jobs
due to deprecated features removed. We can either fix our yaml files or
keep using a known to work version of the tool. I chose the later
option as Jenkins will be replaced with Github actions soon, so let's
keep it simple. The last known working version of jenkins-job is 4.3.0.

Fixes #548
Signed-off-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
  • Loading branch information
wainersm committed Jun 23, 2023
1 parent 02f6a1b commit 30bb922
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
- name: Install the Jenkins Job Builder
run: |
pip install --user --upgrade jinja2
pip install --user jenkins-job-builder
pip install --user jenkins-job-builder==4.3.0
- name: Check it can generate all jobs
run: |
cd jobs-builder
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish_jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Install the Jenkins Job Builder
run: |
pip install --user --upgrade jinja2
pip install --user jenkins-job-builder
pip install --user jenkins-job-builder==4.3.0
- name: Run the publish script
env:
JENKINS_USER: ${{ secrets.JENKINS_USER }}
Expand Down

0 comments on commit 30bb922

Please sign in to comment.