Skip to content

Commit

Permalink
chore(pipeline): cleanup useless env and install (#3467)
Browse files Browse the repository at this point in the history
as jenkins-infra/packer-images#277 is merged, no need to install yq and no need to specify asdf in path anymore.
  • Loading branch information
smerle33 authored Jun 11, 2024
1 parent 76006ce commit e99a3fd
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,9 @@ pipeline {
timestamps()
}

environment {
// To allow using ASDF shims
PATH = "${env.PATH}:/home/jenkins/.asdf/shims:/home/jenkins/.asdf/bin"
}

stages {
stage('Prepare Puppet Project') {
steps {
// Install `yq` until https://github.com/jenkins-infra/packer-images/pull/277 is merged and available
sh '''
if ! command -v yq >/dev/null 2>&1
then
asdf plugin-add yq https://github.com/sudermanjr/asdf-yq.git || true
asdf install yq 4.25.3
asdf global yq 4.25.3
fi
'''

// Install Dependencies once for all
sh 'bash ./scripts/setupgems.sh'
// For auditing purposes: if tests are failing with "module not found" or "object not found" for instance
Expand Down

0 comments on commit e99a3fd

Please sign in to comment.