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: https://github.com/status-im/status-web/issues/590 Signed-off-by: markoburcul <marko@status.im>
This commit is contained in:
parent
0d89bf4683
commit
90e33d2654
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env groovy
|
#!/usr/bin/env groovy
|
||||||
library 'status-jenkins-lib@v1.9.1'
|
library 'status-jenkins-lib@v1.9.11'
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
agent { label 'linux' }
|
agent { label 'linux' }
|
||||||
|
@ -31,9 +31,11 @@ pipeline {
|
||||||
steps {
|
steps {
|
||||||
dir("${env.WORKSPACE}/apps/connector") {
|
dir("${env.WORKSPACE}/apps/connector") {
|
||||||
script {
|
script {
|
||||||
withEnv(["WORKSPACE=${env.WORKSPACE}/apps/connector"]) { // Override WORKSPACE
|
nix.shell(
|
||||||
nix.shell('yarn install --frozen-lockfile', pure: false)
|
'yarn install --frozen-lockfile',
|
||||||
}
|
pure: false,
|
||||||
|
entryPoint: "${env.WORKSPACE}/apps/connector/shell.nix"
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -43,9 +45,11 @@ pipeline {
|
||||||
steps {
|
steps {
|
||||||
dir("${env.WORKSPACE}/apps/connector") {
|
dir("${env.WORKSPACE}/apps/connector") {
|
||||||
script {
|
script {
|
||||||
withEnv(["WORKSPACE=${env.WORKSPACE}/apps/connector"]) { // Override WORKSPACE
|
nix.shell(
|
||||||
nix.shell('yarn build:chrome', pure: false)
|
'yarn build:chrome',
|
||||||
}
|
pure: false,
|
||||||
|
entryPoint: "${env.WORKSPACE}/apps/connector/shell.nix"
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -53,7 +57,7 @@ pipeline {
|
||||||
|
|
||||||
stage('Zip') {
|
stage('Zip') {
|
||||||
steps {
|
steps {
|
||||||
dir("${env.WORKSPACE}/apps/connector") { // Set the working directory to apps/connector
|
dir("${env.WORKSPACE}/apps/connector") {
|
||||||
zip(
|
zip(
|
||||||
zipFile: env.ZIP_NAME,
|
zipFile: env.ZIP_NAME,
|
||||||
dir: 'build/chrome-mv3-prod',
|
dir: 'build/chrome-mv3-prod',
|
||||||
|
@ -65,7 +69,7 @@ pipeline {
|
||||||
|
|
||||||
stage('Archive') {
|
stage('Archive') {
|
||||||
steps {
|
steps {
|
||||||
dir("${env.WORKSPACE}/apps/connector") { // Set the working directory to apps/connector
|
dir("${env.WORKSPACE}/apps/connector") {
|
||||||
archiveArtifacts(
|
archiveArtifacts(
|
||||||
artifacts: env.ZIP_NAME,
|
artifacts: env.ZIP_NAME,
|
||||||
fingerprint: true,
|
fingerprint: true,
|
||||||
|
@ -76,7 +80,7 @@ pipeline {
|
||||||
|
|
||||||
stage('Upload') {
|
stage('Upload') {
|
||||||
steps {
|
steps {
|
||||||
dir("${env.WORKSPACE}/apps/connector") { // Set the working directory to apps/connector
|
dir("${env.WORKSPACE}/apps/connector") {
|
||||||
script {
|
script {
|
||||||
env.PKG_URL = s5cmd.upload(env.ZIP_NAME)
|
env.PKG_URL = s5cmd.upload(env.ZIP_NAME)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue