Skip to content

Commit

Permalink
Merge pull request #200 from Ajpantuso/apantuso/jenkins_refactor
Browse files Browse the repository at this point in the history
ci: refactor jenkins env setup
  • Loading branch information
Ajpantuso authored Sep 28, 2022
2 parents 45e539f + d728d2c commit 4fe327b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
2 changes: 2 additions & 0 deletions build_tag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@

set -exvo pipefail -o nounset

source "${PWD}/cicd/jenkins_env.sh"

./mage release:cli
9 changes: 9 additions & 0 deletions cicd/jenkins_env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

set -exvo pipefail -o nounset

GO_1_18="/opt/go/1.18.1/bin"

if [ -d "${GO_1_18}" ]; then
PATH="${GO_1_18}:${PATH}"
fi
6 changes: 1 addition & 5 deletions pr_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@

set -exvo pipefail -o nounset

GO_1_18="/opt/go/1.18.1/bin"

if [ -d "${GO_1_18}" ]; then
PATH="${GO_1_18}:${PATH}"
fi
source "${PWD}/cicd/jenkins_env.sh"

# pre-emptively install go-sqlite3 to ensure amalgamated libsqlite3
# source is present for compilation.
Expand Down

0 comments on commit 4fe327b

Please sign in to comment.