From 5a556d9b000865019f782bf9b19110fe2506619d Mon Sep 17 00:00:00 2001 From: "kirill.labutin" Date: Fri, 14 Aug 2026 18:30:55 +0300 Subject: [PATCH] +nexus app deploy --- Jenkinsfile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 3cbae34..b55d872 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -77,6 +77,22 @@ pipeline { } } + stage('Upload app to Nexus') { + steps { + script { + withCredentials([usernamePassword(credentialsId: 'nexus-credentials', + usernameVariable: 'NEXUS_USER', + passwordVariable: 'NEXUS_PASSWORD')]) { + sh """ + curl -v -u ${NEXUS_USER}:${NEXUS_PASSWORD} \ + --upload-file launcher/target/${VERSION}.pfapp \ + http://172.16.0.59:8081/repository/object-storage/apps/${VERSION}.pfapp + """ + } + } + } + } + stage('Deploy') { steps { script { @@ -88,6 +104,10 @@ pipeline { echo "TODO: deploy ${VERSION}.pfapp to repository (not implemented yet)" } + + + + } } }