Update 'Jenkinsfile'
All checks were successful
gitea-sync/antos-appimage/pipeline/head This commit looks good
All checks were successful
gitea-sync/antos-appimage/pipeline/head This commit looks good
This commit is contained in:
parent
37b8653aba
commit
564bd8bc63
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@ -22,7 +22,6 @@ def generateStage(name) {
|
|||||||
return {
|
return {
|
||||||
stage("ANTOS ${name}") {
|
stage("ANTOS ${name}") {
|
||||||
copyArtifacts(projectName: 'gitea-sync/antos/' + name, target: 'antos/frontend/' + 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;
|
env.tag = name;
|
||||||
sh'''
|
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 "/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
|
[ -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
|
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/frontend
|
||||||
mkdir -p antos/backend
|
mkdir -p antos/backend
|
||||||
mkdir -p antos/webapps
|
mkdir -p antos/webapps
|
||||||
mkdir -p antos/packages
|
|
||||||
cat /dev/null > /home/dany/public/antos-release/sdk/versions.txt
|
cat /dev/null > /home/dany/public/antos-release/sdk/versions.txt
|
||||||
'''
|
'''
|
||||||
copyArtifacts(projectName: 'gitea-sync/ant-http/master', target: 'antos/backend');
|
copyArtifacts(projectName: 'gitea-sync/ant-http/master', target: 'antos/backend');
|
||||||
|
Loading…
Reference in New Issue
Block a user