Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KOGITO-8115: Deploy jobs should deploy locally and then push to Nexus #4886

Merged
merged 1 commit into from
Aug 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 1 addition & 14 deletions .ci/jenkins/Jenkinsfile.deploy
Original file line number Diff line number Diff line change
Expand Up @@ -112,20 +112,7 @@ pipeline {
}
}
}
stage('Deploy to repository') {
when {
expression { return !shouldStageArtifacts() && shouldDeployToRepository() }
}
steps {
script {
runMavenDeploy()
}
}
}
stage('Deploy locally') {
when {
expression { return shouldStageArtifacts() }
}
steps {
script {
runMavenDeploy(true)
Expand Down Expand Up @@ -225,7 +212,7 @@ void sendNotification() {
}

boolean shouldStageArtifacts() {
return isRelease() && !env.MAVEN_DEPLOY_REPOSITORY
return isRelease()
}

boolean shouldDeployToRepository() {
Expand Down
6 changes: 4 additions & 2 deletions .ci/jenkins/dsl/jobs.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,12 @@ void setupDeployJob(JobType jobType) {
AUTHOR_CREDS_ID: "${GIT_AUTHOR_CREDENTIALS_ID}",
GITHUB_TOKEN_CREDS_ID: "${GIT_AUTHOR_TOKEN_CREDENTIALS_ID}",


MAVEN_SETTINGS_CONFIG_FILE_ID: "${MAVEN_SETTINGS_FILE_ID}",
MAVEN_DEPENDENCIES_REPOSITORY: "${MAVEN_ARTIFACTS_REPOSITORY}",
MAVEN_DEPLOY_REPOSITORY: "${MAVEN_ARTIFACTS_REPOSITORY}",

MAVEN_DEPLOY_REPOSITORY: "${MAVEN_ARTIFACTS_UPLOAD_REPOSITORY_URL}",
MAVEN_REPO_CREDS_ID: "${MAVEN_ARTIFACTS_UPLOAD_REPOSITORY_CREDS_ID}",

DROOLS_STREAM: getDroolsStream(),
])
if (jobType == JobType.RELEASE) {
Expand Down