From b47a998007bd884f3c2450f091cadc0771e27d7d Mon Sep 17 00:00:00 2001 From: Nicolas Arenas Date: Wed, 19 Mar 2025 12:07:32 +0100 Subject: [PATCH] Publishing released packages --- Jenkins/Jenkinsfile-deb-pkg | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/Jenkins/Jenkinsfile-deb-pkg b/Jenkins/Jenkinsfile-deb-pkg index dac3d1a..32108d0 100644 --- a/Jenkins/Jenkinsfile-deb-pkg +++ b/Jenkins/Jenkinsfile-deb-pkg @@ -55,12 +55,23 @@ pipeline { composer require symfony/flex dpkg-buildpackage -us -uc mkdir -p ../artifacts && mv ../*.deb ../*.changes ../*.buildinfo ../artifacts/ - ssh aptly@172.17.8.68 "rm -rf /var/tmp/opengnsys/debian-repo && mkdir -p /var/tmp/opengnsys/debian-repo" - scp -r ../artifacts/* aptly@172.17.8.68:/var/tmp/opengnsys/debian-repo/ + ssh aptly@172.17.8.68 "rm -rf /var/tmp/opengnsys/debian-repo/ogcore && mkdir -p /var/tmp/opengnsys/debian-repo/ogcore" + scp -r ../artifacts/* aptly@172.17.8.68:/var/tmp/opengnsys/debian-repo/ogcore ''' } } } + stage ('Publish to Debian Repository') { + when { + expression { + return env.TAG_NAME != null + } + } + agent { label 'debian-repo' } + steps { + sh "aptly repo add opengnsys-devel /var/tmp/opengnsys/debian-repo/*.deb" + } + } } post { always { @@ -68,10 +79,5 @@ pipeline { } } } -// stage ('Publish to Debian Repository') { -// agent { label 'debian-repo' } -// steps { -// sh "aptly repo add opengnsys-devel /var/tmp/opengnsys/debian-repo/*.deb" -// } -// } +