Compare commits

...

2 Commits

Author SHA1 Message Date
0abfc60fe9 Improved dev container experience.
All checks were successful
ydeng/props/pipeline/head This commit looks good
2024-07-20 05:07:59 +00:00
3e82b1d01e Added zip and tar to environment for pipeline. 2024-07-20 05:07:36 +00:00
3 changed files with 11 additions and 6 deletions

View File

@ -26,6 +26,6 @@
} }
}, },
"postCreateCommand": "bash conda init" "postCreateCommand": "bash -i -c 'conda init'"
} }

11
Jenkinsfile vendored
View File

@ -5,11 +5,13 @@ pipeline {
defaultContainer 'conda' defaultContainer 'conda'
} }
} }
environment {
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT = "1"
}
stages { stages {
stage("Install") { stage("Install") {
steps { steps {
sh 'conda update conda -y' sh 'conda update conda -y -q'
sh 'conda env update -n base --file environment.yml' sh 'conda env update -n base --file environment.yml'
sh 'conda run -n base dotnet restore props.sln' sh 'conda run -n base dotnet restore props.sln'
sh 'npm install --prefix ./Props' 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-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' 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*' fingerprint 'output/props/**/Props*'
tar file: "output/props-linux-x64.tar.gz", archive: true, compress: true, dir: "output/props/props-linux-x64" sh 'conda run -n base tar -czf output/props-linux-x64.tar.gz 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 zip -r output/props-win-x64.zip output/props/props-win-x64'
archiveArtifacts artifacts: 'output/*.tar.gz,output/*.zip', followSymlinks: false
} }
} }
} }

View File

@ -4,4 +4,6 @@ channels:
dependencies: dependencies:
- dotnet-sdk=8 - dotnet-sdk=8
- nodejs=20 - nodejs=20
- icu - icu
- tar
- zip