From 3fa1de5e4ed769bb25499241a4aa671af9e1100b Mon Sep 17 00:00:00 2001 From: Adam Townsend Date: Sun, 22 Oct 2023 13:27:07 -0700 Subject: [PATCH] install bundled gems in /vendor, and use bundle exec to run them --- Jenkinsfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index ca63cd3..ab08d27 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -16,6 +16,7 @@ pipeline { } stage('Build dependencies') { steps { + sh 'bundle config set --local path "vendor"' sh 'bundle install' sh 'sequel -m db/migrations sqlite://db/${DB_NAME}' } @@ -28,10 +29,10 @@ pipeline { stage('Run tests') { steps { catchError(buildResult: 'UNSTABLE', stageResult: 'FAILURE') { - sh 'cucumber features --format html --out cucumber.html' + sh 'bundle exec cucumber features --format html --out cucumber.html' } catchError(buildResult: 'UNSTABLE', stageResult: 'FAILURE') { - sh 'rspec spec --format html --out spec.html' + sh 'bundle exec rspec spec --format html --out spec.html' } } }