From f166b9650db96316f5cfc3cfdd72e266401415b5 Mon Sep 17 00:00:00 2001 From: Nicolas Arenas Date: Wed, 3 Sep 2025 10:46:58 +0200 Subject: [PATCH] refs #2747 Updates Jenkisfile to autolaunch debian publish repos --- Jenkins/Jenkinsfile-deb-pkg | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/Jenkins/Jenkinsfile-deb-pkg b/Jenkins/Jenkinsfile-deb-pkg index d9ec6d3..a93eec8 100644 --- a/Jenkins/Jenkinsfile-deb-pkg +++ b/Jenkins/Jenkinsfile-deb-pkg @@ -97,8 +97,21 @@ pipeline { } } post { + success { + script { + // Solo lanzar cuando el build sea exitoso y en la rama main + if (env.BRANCH_NAME == 'main') { + build job: 'Aptly publish nightly repository', + wait: false, + parameters: [ + string(name: 'TRIGGERED_BY', value: "${env.JOB_NAME}-${env.BUILD_NUMBER}") + ] + } + } + + } always { - notifyBuildStatus('narenas@qindel.com') + notifyBuildStatus('opengnsys@qindel.com') } } -} +} \ No newline at end of file