From 39d06222770cd02a83b98cf7490cb93f8bbddc7b Mon Sep 17 00:00:00 2001 From: nofaralfasi Date: Tue, 5 Mar 2024 19:58:10 +0200 Subject: [PATCH] Drop hammer_cli_foreman_discovery jenkins jobs --- .../test/test_hammer_cli_foreman_discovery.sh | 24 ------------- .../test_hammer_cli_foreman_discovery.yaml | 27 -------------- ...er_cli_foreman_discovery_pull_request.yaml | 35 ------------------- 3 files changed, 86 deletions(-) delete mode 100644 theforeman.org/scripts/test/test_hammer_cli_foreman_discovery.sh delete mode 100644 theforeman.org/yaml/jobs/test_hammer_cli_foreman_discovery.yaml delete mode 100644 theforeman.org/yaml/jobs/test_hammer_cli_foreman_discovery_pull_request.yaml diff --git a/theforeman.org/scripts/test/test_hammer_cli_foreman_discovery.sh b/theforeman.org/scripts/test/test_hammer_cli_foreman_discovery.sh deleted file mode 100644 index 89d47c63..00000000 --- a/theforeman.org/scripts/test/test_hammer_cli_foreman_discovery.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/bash -ex - -# RVM Ruby environment -. /etc/profile.d/rvm.sh -# Use a gemset unique to each executor to enable parallel builds -gemset=$(echo ${JOB_NAME} | cut -d/ -f1)-${EXECUTOR_NUMBER} -rvm use ruby-${ruby}@${gemset} --create -rvm gemset empty --force - -if [ "${ruby}" = '2.7' ] -then - gem install bundler -v 2.4.22 --no-document -else - gem install bundler --no-document -fi - -# Link hammer_cli from github -echo 'gem "hammer_cli", :github => "theforeman/hammer-cli"' > Gemfile.local - -# Link hammer_cli_foreman from github -echo 'gem "hammer_cli_foreman", :github => "theforeman/hammer-cli-foreman"' >> Gemfile.local - -bundle install --without development --jobs=5 --retry=5 -bundle exec rake ci:setup:minitest test TESTOPTS="-v" diff --git a/theforeman.org/yaml/jobs/test_hammer_cli_foreman_discovery.yaml b/theforeman.org/yaml/jobs/test_hammer_cli_foreman_discovery.yaml deleted file mode 100644 index bb41740e..00000000 --- a/theforeman.org/yaml/jobs/test_hammer_cli_foreman_discovery.yaml +++ /dev/null @@ -1,27 +0,0 @@ -- job: - name: test_hammer_cli_foreman_discovery - project-type: matrix - concurrent: true - properties: - - github: - url: https://github.com/theforeman/hammer-cli-foreman-discovery - scm: - - git: - url: https://github.com/theforeman/hammer-cli-foreman-discovery - wipe-workspace: true - branches: - - master - triggers: - - scm_fifteen_minutes - - github - axes: - - axis: - type: user-defined - name: ruby - values: - - 2.7 - builders: - - shell: !include-raw: scripts/test/test_hammer_cli_foreman_discovery.sh - publishers: - - gemset_cleanup - - ircbot_freenode diff --git a/theforeman.org/yaml/jobs/test_hammer_cli_foreman_discovery_pull_request.yaml b/theforeman.org/yaml/jobs/test_hammer_cli_foreman_discovery_pull_request.yaml deleted file mode 100644 index 5934edfd..00000000 --- a/theforeman.org/yaml/jobs/test_hammer_cli_foreman_discovery_pull_request.yaml +++ /dev/null @@ -1,35 +0,0 @@ -- job: - name: test_hammer_cli_foreman_discovery_pull_request - description: | - Test a Hammer CLI (Foreman Discovery) pull request under each Ruby version. - project-type: matrix - concurrent: true - properties: - - github: - url: https://github.com/theforeman/hammer-cli-foreman-discovery - - tfm-pull-request-build-discarder - parameters: - - pr_parameters - scm: - - git: - url: https://github.com/theforeman/hammer-cli-foreman-discovery - wipe-workspace: true - branches: - - '${ghprbActualCommit}' - refspec: '+refs/pull/${ghprbPullId}/*:refs/remotes/origin/pr/${ghprbPullId}/*' - triggers: - - github_pr: - context: hammer - axes: - - axis: - type: user-defined - name: ruby - values: - - 2.7 - builders: - - shell: !include-raw: scripts/test/test_hammer_cli_foreman_discovery.sh - publishers: - - gemset_cleanup - - junit: - results: 'test/reports/*.xml' - health-scale-factor: 1.0