-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
jenkinsfile: use newest status jenkins lib
Use newest jenkins lib tag which adds the entryPoint as an argument to the nix shell function. Referenced issue: #590 Signed-off-by: markoburcul <[email protected]>
- Loading branch information
1 parent
0d89bf4
commit f1bcde6
Showing
1 changed file
with
14 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/usr/bin/env groovy | ||
library '[email protected].1' | ||
library '[email protected].11' | ||
|
||
pipeline { | ||
agent { label 'linux' } | ||
|
@@ -31,9 +31,11 @@ pipeline { | |
steps { | ||
dir("${env.WORKSPACE}/apps/connector") { | ||
script { | ||
withEnv(["WORKSPACE=${env.WORKSPACE}/apps/connector"]) { // Override WORKSPACE | ||
nix.shell('yarn install --frozen-lockfile', pure: false) | ||
} | ||
nix.shell( | ||
'yarn install --frozen-lockfile', | ||
pure: false, | ||
entryPoint: "${env.WORKSPACE}/apps/connector" | ||
) | ||
} | ||
} | ||
} | ||
|
@@ -43,17 +45,19 @@ pipeline { | |
steps { | ||
dir("${env.WORKSPACE}/apps/connector") { | ||
script { | ||
withEnv(["WORKSPACE=${env.WORKSPACE}/apps/connector"]) { // Override WORKSPACE | ||
nix.shell('yarn build:chrome', pure: false) | ||
} | ||
nix.shell( | ||
'yarn build:chrome', | ||
pure: false, | ||
entryPoint: "${env.WORKSPACE}/apps/connector" | ||
) | ||
} | ||
} | ||
} | ||
} | ||
|
||
stage('Zip') { | ||
steps { | ||
dir("${env.WORKSPACE}/apps/connector") { // Set the working directory to apps/connector | ||
dir("${env.WORKSPACE}/apps/connector") { | ||
zip( | ||
zipFile: env.ZIP_NAME, | ||
dir: 'build/chrome-mv3-prod', | ||
|
@@ -65,7 +69,7 @@ pipeline { | |
|
||
stage('Archive') { | ||
steps { | ||
dir("${env.WORKSPACE}/apps/connector") { // Set the working directory to apps/connector | ||
dir("${env.WORKSPACE}/apps/connector") { | ||
archiveArtifacts( | ||
artifacts: env.ZIP_NAME, | ||
fingerprint: true, | ||
|
@@ -76,7 +80,7 @@ pipeline { | |
|
||
stage('Upload') { | ||
steps { | ||
dir("${env.WORKSPACE}/apps/connector") { // Set the working directory to apps/connector | ||
dir("${env.WORKSPACE}/apps/connector") { | ||
script { | ||
env.PKG_URL = s5cmd.upload(env.ZIP_NAME) | ||
} | ||
|