Jenkinsfile-Lane-Update
pipeline {
agent any
stages {
stage('harvest') {
steps {
checkout scm
sshagent (['sul-devops-team']){
sh '''#!/bin/bash -l
export PATH=/ci/home/bin:$PATH
export HUB_CONFIG=/ci/home/config/hub
# Load RVM
rvm use 3.2.2@searchworks --create
gem install bundler
bundle install --without production
# Harvest
bin/rake proxies:import_lane || exit 1
# Make a PR
git checkout -B lane-ezproxy-update
git add config/ezproxy/lane_proxy_file.txt
git commit -m "Update Lane Library EZProxy config" &&
git push git@github.com:sul-dlss/SearchWorks.git lane-ezproxy-update &&
hub pull-request -f -m "Update Lane Library EZProxy config" --base main
echo 'Done!'
'''
}
}
}
}
}