diff --git a/build-k8s-lenz.jenkins b/build-k8s-lenz.jenkins index f8c03f8..c9c0acc 100644 --- a/build-k8s-lenz.jenkins +++ b/build-k8s-lenz.jenkins @@ -183,22 +183,22 @@ pipeline { steps { container('alpine') { script { - def appName = sh ( + def aName = sh ( script: """ printf '%s\\n' "\$(basename "\$(find ./ -name "*.AppImage")")" """, returnStdout: true ).trim() - def appLoc = sh ( + def aPath = sh ( script: """ - printf '%s\\n' "\$(find ./ -name "*.AppImage")" + printf '%s\\n' "\$(dirname "\$(find ./ -name "*.AppImage")")" """, returnStdout: true ).trim() functions.pushArtifact( repoCreds: "nexus-generic-upload-bot", - fileName: appName, - filePath: workspace + "/" + appLoc, + fileName: aName, + filePath: workspace + "/" + aPath, fileURL: "https://nexus.c.test-chamber-13.lan/repository/generic/appimage/" ) }