-
Notifications
You must be signed in to change notification settings - Fork 948
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1c6a453
commit 5e48261
Showing
3 changed files
with
12 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,7 @@ imageUtils = null | |
|
||
pipeline { | ||
agent { | ||
docker { | ||
docker { | ||
image env.AGENT_DOCKER_BUILDER_IMAGE | ||
args env.AGENT_DOCKER_BUILDER_ARGS | ||
label util.avoidFaultyNodes() | ||
|
@@ -112,7 +112,7 @@ pipeline { | |
stage('Upload OptaPlanner documentation') { | ||
steps { | ||
script { | ||
configFileProvider([configFile(fileId: env.MAVEN_SETTINGS_CONFIG_FILE_ID, variable: 'MAVEN_SETTINGS_FILE')]){ | ||
configFileProvider([configFile(fileId: env.MAVEN_SETTINGS_CONFIG_FILE_ID, variable: 'MAVEN_SETTINGS_FILE')]) { | ||
getMavenCommand() | ||
.inDirectory(optaplannerRepository) | ||
.skipTests(true) | ||
|
@@ -150,7 +150,7 @@ pipeline { | |
void sendErrorNotification() { | ||
if (params.SEND_NOTIFICATION) { | ||
String additionalInfo = "**[${getBuildBranch()}] Optaplanner - Promote**" | ||
mailer.sendMarkdownTestSummaryNotification("CI failures", [env.OPTAPLANNER_CI_EMAIL_TO], additionalInfo) | ||
mailer.sendMarkdownTestSummaryNotification('CI failures', [env.OPTAPLANNER_CI_EMAIL_TO], additionalInfo) | ||
} else { | ||
echo 'No notification sent per configuration' | ||
} | ||
|
@@ -260,7 +260,7 @@ void uploadDistribution(String directory) { | |
// For testing, simulate connection via SSH: | ||
// sh "ssh -i $SSH_KEY_JBOSS_FILEMGMT -oKexAlgorithms=+diffie-hellman-group1-sha1 [email protected]" | ||
sh "./build/release/upload_distribution.sh ${getProjectVersion()} $SSH_KEY_JBOSS_FILEMGMT" | ||
} | ||
} | ||
} | ||
} else { | ||
echo 'No uploadDistribution due to testing build' | ||
|
@@ -316,10 +316,8 @@ void pushOperatorFinalImage() { | |
} | ||
|
||
void removeOperatorImageTemporaryTag() { | ||
if (!imageUtils.removeQuayTag(getOperatorImageNamespace(), getOperatorImageName(), getOperatorImageTemporaryTag())) { | ||
String temporaryImageName = imageUtils.getImageFullName(getOperatorImageNamespace(), getOperatorImageName(), | ||
getOperatorImageTemporaryTag()) | ||
error "Cannot remove the OptaPlanner Operator temporary image tag (${temporaryImageName}) from quay.io. " | ||
+ "The tag should be removed manually." | ||
} | ||
String temporaryImageName = imageUtils.getImageFullName(getOperatorImageNamespace(), getOperatorImageName(), | ||
getOperatorImageTemporaryTag()) | ||
// https://docs.docker.com/docker-hub/api/latest/#tag/repositories | ||
error "Dockerhub API does not allow deleting tags via API. The OptaPlanner Operator temporary image tag (${temporaryImageName}) should be removed manually." | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters