jenkins: only publish packages in main pipeline if on master branch
@@ -1092,6 +1092,7 @@ def buildPackage(stageName, image, repoName, repoPrefix, installImage,
}
}
dir("build/package") {
+ if (isMaster()) {
publishPackagesFun(
'doc.libelektra.org',
"/packaging/incoming/${repoName}/",
@@ -1104,6 +1105,7 @@ def buildPackage(stageName, image, repoName, repoPrefix, installImage,
}
}
}
+ }
withDockerEnv(image, [DockerOpts.MOUNT_MIRROR], postCl) {
withCredentials([file(credentialsId: 'jenkins-key', variable: 'KEY'),
file(credentialsId: 'jenkins-secret-key', variable: 'SKEY')]) {
