Update 'Jenkinsfile'
Some checks failed
gitea-sync/antos-appimage/pipeline/head There was a failure building this commit

This commit is contained in:
dany 2023-06-01 16:46:31 +02:00
parent ffd61da47c
commit 977ee7a970

9
Jenkinsfile vendored
View File

@ -22,6 +22,8 @@ def generateStage(name) {
return {
stage("ANTOS ${name}") {
copyArtifacts(projectName: 'gitea-sync/antos/' + name, target: 'antos/frontend/' + name);
copyArtifacts(projectName: 'gitea-sync/antosdk-apps/' + name, target: 'antos/packages/' + name);
env.tag = name;
sh'''
echo "Deploy antos webapps for version $tag"
@ -38,6 +40,12 @@ def generateStage(name) {
[ -d "/home/dany/public/antos-release/sdk/$tag" ] && rm -rf /home/dany/public/antos-release/sdk/$tag || true
[ -d "antos/frontend/$tag/d.ts" ] && cp -rf antos/frontend/$tag/d.ts /home/dany/public/antos-release/sdk/$tag || true
echo $tag >> /home/dany/public/antos-release/sdk/versions.txt
# release antos packages
if [ -d "antos/packages/$tag" ]; then
[ -d "/home/dany/public/antos-release/packages/$tag" ] && rm -rf /home/dany/public/antos-release/packages/$tag || true
cp -rf antos/packages/$tag/release /home/dany/public/antos-release/packages/$tag
fi
'''
}
}
@ -77,6 +85,7 @@ pipeline{
mkdir -p antos/frontend
mkdir -p antos/backend
mkdir -p antos/webapps
mkdir -p antos/packages
cat /dev/null > /home/dany/public/antos-release/sdk/versions.txt
'''
copyArtifacts(projectName: 'gitea-sync/ant-http/master', target: 'antos/backend');