Update 'Jenkinsfile'
All checks were successful
gitea-sync/antos-appimage/pipeline/head This commit looks good

This commit is contained in:
dany 2023-06-01 17:11:02 +02:00
parent 37b8653aba
commit 564bd8bc63

8
Jenkinsfile vendored
View File

@ -22,7 +22,6 @@ 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, optional: true);
env.tag = name;
sh'''
@ -40,12 +39,6 @@ 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
'''
}
}
@ -85,7 +78,6 @@ 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');