From 3e82b1d01e1c523b36e00575e5123160e6db0d63 Mon Sep 17 00:00:00 2001 From: Harrison Deng Date: Sat, 20 Jul 2024 05:07:36 +0000 Subject: [PATCH] Added zip and tar to environment for pipeline. --- .devcontainer/devcontainer.json | 4 +--- Jenkinsfile | 11 +++++++---- environment.yml | 4 +++- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 7f776ab..bb9d192 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -24,8 +24,6 @@ ] } } - }, - - "postCreateCommand": "bash conda init" + } } \ No newline at end of file diff --git a/Jenkinsfile b/Jenkinsfile index 66207ae..29de938 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,11 +5,13 @@ pipeline { defaultContainer 'conda' } } - + environment { + DOTNET_SYSTEM_GLOBALIZATION_INVARIANT = "1" + } stages { stage("Install") { steps { - sh 'conda update conda -y' + sh 'conda update conda -y -q' sh 'conda env update -n base --file environment.yml' sh 'conda run -n base dotnet restore props.sln' sh 'npm install --prefix ./Props' @@ -45,8 +47,9 @@ pipeline { sh 'conda run -n base dotnet publish --configuration Release --output output/props/props-linux-x64 --runtime linux-x64 --self-contained Props' sh 'conda run -n base dotnet publish --configuration Release --output output/props/props-win-x64 --runtime win-x64 --self-contained Props' fingerprint 'output/props/**/Props*' - tar file: "output/props-linux-x64.tar.gz", archive: true, compress: true, dir: "output/props/props-linux-x64" - zip zipFile: "output/props-win-x64.zip", archive: true, dir: "output/props/props-win-x64" + sh 'conda run -n base tar -czf output/props-linux-x64.tar.gz output/props/props-linux-x64' + sh 'conda run -n base zip -r output/props-win-x64.zip output/props/props-win-x64' + archiveArtifacts artifacts: 'output/*.tar.gz,output/*.zip', followSymlinks: false } } } diff --git a/environment.yml b/environment.yml index 17945db..9e43cf8 100644 --- a/environment.yml +++ b/environment.yml @@ -4,4 +4,6 @@ channels: dependencies: - dotnet-sdk=8 - nodejs=20 - - icu \ No newline at end of file + - icu + - tar + - zip \ No newline at end of file