Added zip and tar to environment for pipeline.

This commit is contained in:
Harrison Deng 2024-07-20 05:07:36 +00:00
parent cac2b8ace7
commit 3e82b1d01e
3 changed files with 11 additions and 8 deletions

View File

@ -24,8 +24,6 @@
]
}
}
},
"postCreateCommand": "bash conda init"
}
}

11
Jenkinsfile vendored
View File

@ -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
}
}
}

View File

@ -5,3 +5,5 @@ dependencies:
- dotnet-sdk=8
- nodejs=20
- icu
- tar
- zip