From 97a01656a1f2b623f19c38db6df04e8478e59f17 Mon Sep 17 00:00:00 2001 From: Harrison Date: Wed, 3 May 2023 08:26:48 -0500 Subject: [PATCH] Updated pipeline to latest system --- Jenkinsfile | 6 ++---- environment.yml | 3 ++- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 9886327..4f3f7ae 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,8 +3,7 @@ pipeline { stages { stage("install") { steps { - sh 'conda env update --file environment.yml' - sh 'echo "conda activate audioshowkit" >> ~/.bashrc' + sh 'mamba env update --file environment.yml --prefix ./env || mamba env create --force --file environment.yml --prefix ./env' sh 'node --version && npm --version' sh 'npm install' } @@ -18,8 +17,7 @@ pipeline { stage("build") { steps { sh 'npm run build:prod' - fingerprint "dist/**" - archiveArtifacts artifacts: 'dist/audioshowkit.js', followSymlinks: false + archiveArtifacts artifacts: 'dist/audioshowkit.js', fingerprint: true, followSymlinks: false, onlyIfSuccessful: true } } stage("generate docs") { diff --git a/environment.yml b/environment.yml index 4e0212f..e080144 100644 --- a/environment.yml +++ b/environment.yml @@ -13,4 +13,5 @@ dependencies: - libzlib=1.2.13 - nodejs=18.12.1 - openssl=3.0.7 - - zlib=1.2.13 \ No newline at end of file + - zlib=1.2.13 +prefix: ./env \ No newline at end of file