From 30bb9223ded742ed66412590208abada26d948a9 Mon Sep 17 00:00:00 2001 From: Wainer dos Santos Moschetta Date: Fri, 23 Jun 2023 13:53:10 -0300 Subject: [PATCH] github: pin the jenkins-job version 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 --- .github/workflows/main.yml | 2 +- .github/workflows/publish_jobs.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0d20f17..8dd6346 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 diff --git a/.github/workflows/publish_jobs.yml b/.github/workflows/publish_jobs.yml index 7c71b35..c4713c4 100644 --- a/.github/workflows/publish_jobs.yml +++ b/.github/workflows/publish_jobs.yml @@ -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 }}