-
Notifications
You must be signed in to change notification settings - Fork 201
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NO-ISSUE: Fix for daily-dev Jenkins CI failing to build due to missin…
…g git config and hard-linked files (#2861)
- Loading branch information
Showing
10 changed files
with
18 additions
and
243 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 |
---|---|---|
|
@@ -125,11 +125,6 @@ pipeline { | |
SERVERLESS_LOGIC_WEB_TOOLS__swfDevModeImageBuildTag = "${params.BRANCH_NAME}" | ||
SERVERLESS_LOGIC_WEB_TOOLS__corsProxyUrl = 'https://daily-dev-cors-proxy-kie-sandbox.rhba-0ad6762cc85bcef5745bb684498c2436-0000.us-south.containers.appdomain.cloud' | ||
|
||
KOGITO_TASK_CONSOLE__registry = 'docker.io' | ||
KOGITO_TASK_CONSOLE__account = 'apache' | ||
KOGITO_TASK_CONSOLE__name = 'incubator-kie-kogito-task-console' | ||
KOGITO_TASK_CONSOLE__buildTag = "${params.BRANCH_NAME}" | ||
|
||
KOGITO_MANAGEMENT_CONSOLE__registry = 'docker.io' | ||
KOGITO_MANAGEMENT_CONSOLE__account = 'apache' | ||
KOGITO_MANAGEMENT_CONSOLE__name = 'incubator-kie-kogito-management-console' | ||
|
@@ -158,6 +153,8 @@ pipeline { | |
BUILD_DATE = sh(script: "echo `date +'%Y-%m-%d %T'`", returnStdout: true).trim() | ||
|
||
DOCKER_CONFIG = "${WORKSPACE}/.docker" | ||
|
||
MAVEN_ARGS = "-Dmaven.repo.local=${WORKSPACE}/.maven -Dstyle.color=never" | ||
} | ||
|
||
stages { | ||
|
@@ -220,7 +217,7 @@ pipeline { | |
steps { | ||
dir('kie-tools') { | ||
script { | ||
buildUtils.pnpmBootstrap() | ||
buildUtils.pnpmBootstrap('', '${MAVEN_ARGS}') | ||
} | ||
} | ||
} | ||
|
@@ -230,6 +227,9 @@ pipeline { | |
steps { | ||
dir('kie-tools') { | ||
sh """#!/bin/bash -el | ||
echo "Initializing git email and name with:" | ||
echo "git config user.email [email protected]" | ||
echo "git config user.name asf-ci-kie" | ||
git config user.email [email protected] | ||
git config user.name asf-ci-kie | ||
export WEBPACK__minimize=true | ||
|
@@ -244,6 +244,8 @@ pipeline { | |
export ONLINE_EDITOR__extendedServicesCompatibleVersion=${env.KIE_SANDBOX_EXTENDED_SERVICES_VERSION} | ||
export ONLINE_EDITOR__buildInfo="${env.VERSION} (daily-dev) @ ${env.GIT_COMMIT} (${env.BUILD_DATE})" | ||
export SERVERLESS_LOGIC_WEB_TOOLS__buildInfo="${env.VERSION} (daily-dev) @ ${env.GIT_COMMIT} (${env.BUILD_DATE})" | ||
export MAVEN_ARGS=\"${MAVEN_ARGS}\" | ||
echo "Running: pnpm -r --workspace-concurrency=1 build:prod" | ||
pnpm -r --workspace-concurrency=1 build:prod | ||
""".trim() | ||
} | ||
|
@@ -522,21 +524,6 @@ pipeline { | |
} | ||
} | ||
|
||
stage('Push kogito-task-console to Docker Hub') { | ||
steps { | ||
script { | ||
dockerUtils.pushImageToRegistry( | ||
"${env.KOGITO_TASK_CONSOLE__registry}", | ||
"${env.KOGITO_TASK_CONSOLE__account}", | ||
"${env.KOGITO_TASK_CONSOLE__name}", | ||
"${env.KOGITO_TASK_CONSOLE__buildTag}", | ||
"${pipelineVars.dockerHubUserCredentialsId}", | ||
"${pipelineVars.dockerHubTokenCredentialsId}" | ||
) | ||
} | ||
} | ||
} | ||
|
||
stage('Push kogito-management-console to Docker Hub') { | ||
steps { | ||
script { | ||
|
@@ -621,8 +608,7 @@ pipeline { | |
configFileProvider([configFile(fileId: "${pipelineVars.mavenSettingsNightlyConfigFileId}", variable: 'MAVEN_SETTINGS_FILE')]) { | ||
sh """#!/bin/bash -el | ||
export KIE_TOOLS_BUILD__mavenDeploySkip=false | ||
pnpm -F jbpm-quarkus-devui... -F sonataflow-quarkus-devui... exec 'bash' '-c' 'echo -e "\n--settings=${MAVEN_SETTINGS_FILE}" >> .mvn/maven.config' | ||
pnpm -F jbpm-quarkus-devui... -F sonataflow-quarkus-devui... exec 'bash' '-c' 'echo -Drevision=999-SNAPSHOT >> .mvn/maven.config' | ||
export MAVEN_ARGS=\"${MAVEN_ARGS} --settings=${MAVEN_SETTINGS_FILE} -Drevision=999-SNAPSHOT\" | ||
pnpm -F jbpm-quarkus-devui... -F sonataflow-quarkus-devui... build:prod | ||
""".trim() | ||
} | ||
|
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
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
Oops, something went wrong.