Skip to content

Commit

Permalink
Fixes #24747: Openscap nightlies are still in need of a license
Browse files Browse the repository at this point in the history
  • Loading branch information
VinceMacBuche committed Apr 18, 2024
1 parent 36ff036 commit 0c23cd0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -209,13 +209,17 @@ pipeline {
}
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {

makeTarget = "licensed"
if (p == "cis" || p == "openscap") {
makeTarget = ""
}
dir("${p}") {

withMaven(globalMavenSettingsConfig: "1bfa2e1a-afda-4cb4-8568-236c44b94dbf",
// don't archive jars
options: [artifactsPublisher(disabled: true)]
) {
sh script: 'export PATH=$MVN_CMD_DIR:$PATH && make licensed', label: "build ${p} plugin"
sh script: "export PATH=$MVN_CMD_DIR:$PATH && make ${makeTarget}", label: "build ${p} plugin"
if (changeRequest()) {
archiveArtifacts artifacts: '**/*.rpkg', fingerprint: true, onlyIfSuccessful: false, allowEmptyArchive: true
sshPublisher(publishers: [sshPublisherDesc(configName: 'publisher-01', transfers: [sshTransfer(execCommand: "/usr/local/bin/add_to_repo -r -t rpkg -v ${env.RUDDER_VERSION}-nightly -d /home/publisher/tmp/${p}-${env.RUDDER_VERSION}", remoteDirectory: "${p}-${env.RUDDER_VERSION}", sourceFiles: '**/*.rpkg')], verbose:true)])
Expand Down

0 comments on commit 0c23cd0

Please sign in to comment.