From 8153ca6f9dc4dcbbb0a7ccb68ffb0226c3d4c95c Mon Sep 17 00:00:00 2001 From: DanyLE Date: Thu, 1 Jun 2023 17:07:38 +0200 Subject: [PATCH] add jenkinsfile --- Jenkinsfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 65a6c85..05b13c7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -22,7 +22,10 @@ pipeline{ steps { sh''' printenv - echo "archiving release" + echo "publishing release" + tag="$GIT_BRANCH" + [ -d "/home/dany/public/antos-release/packages/$tag" ] && rm -rf /home/dany/public/antos-release/packages/$tag || true + cp -rfv release /home/dany/public/antos-release/packages/$tag ''' script { // only useful for any master branch