This is an automated email from the ASF dual-hosted git repository. rantunes pushed a commit to branch kie-issues_821 in repository https://gitbox.apache.org/repos/asf/incubator-kie-kogito-apps.git
commit 2851805219fffc52d95d89ea3634ab910b6242e9 Author: Rodrigo Antunes <[email protected]> AuthorDate: Tue Jan 16 13:40:30 2024 -0300 Debug --- .ci/jenkins/Jenkinsfile.weekly-deploy | 36 +++++++++++++++++++++++++---------- 1 file changed, 26 insertions(+), 10 deletions(-) diff --git a/.ci/jenkins/Jenkinsfile.weekly-deploy b/.ci/jenkins/Jenkinsfile.weekly-deploy index b93538528..538c6dd0c 100644 --- a/.ci/jenkins/Jenkinsfile.weekly-deploy +++ b/.ci/jenkins/Jenkinsfile.weekly-deploy @@ -64,21 +64,29 @@ pipeline { steps { script { dir(getRepoName()) { - configFileProvider([configFile(fileId: env.MAVEN_SETTINGS_CONFIG_FILE_ID, variable: 'MAVEN_SETTINGS_FILE')]){ - maven.mvnVersionsUpdateParentAndChildModules( - getMavenCommand().withSettingsXmlFile(MAVEN_SETTINGS_FILE), - getProjectVersion(), - true - ) + withCredentials([usernamePassword(credentialsId: mavenDeployRepositoryCredsId, usernameVariable: 'REPOSITORY_USER', passwordVariable: 'REPOSITORY_TOKEN')]) { + configFileProvider([configFile(fileId: env.MAVEN_SETTINGS_CONFIG_FILE_ID, variable: 'MAVEN_SETTINGS_FILE')]){ + maven.mvnVersionsUpdateParentAndChildModules( + getMavenCommand().withSettingsXmlFile(MAVEN_SETTINGS_FILE).withProperty('apache.snapshot.repository.username', REPOSITORY_USER).withProperty('apache.snapshot.repository.password', REPOSITORY_TOKEN), + getProjectVersion(), + true + ) + } } } } } } - stage('sleep') { + stage('debug') { steps { - sh 'sleep 6000' + script { + dir(getRepoName()) { + sh 'git status' + sh 'cat pom.xml' + sh 'sleep 6000' + } + } } } @@ -86,7 +94,16 @@ pipeline { steps { script { dir(getRepoName()){ - runMavenDeploy(params.SKIP_TESTS, true) + mvnCmd = getMavenCommand() + mvnCmd.withLocalDeployFolder(getLocalDeploymentFolder()) + configFileProvider([configFile(fileId: env.MAVEN_SETTINGS_CONFIG_FILE_ID, variable: 'MAVEN_SETTINGS_FILE')]){ + mvnCmd.withProperty('maven.test.failure.ignore', true) + .withOptions(env.BUILD_MVN_OPTS_CURRENT ? [ env.BUILD_MVN_OPTS_CURRENT ] : []) + .withOptions(env.KOGITO_APPS_BUILD_MVN_OPTS ? [ env.KOGITO_APPS_BUILD_MVN_OPTS ] : []) + .skipTests(skipTests) + .withSettingsXmlFile(MAVEN_SETTINGS_FILE) + .run('clean deploy') + } } } } @@ -123,7 +140,6 @@ pipeline { } } } - } post { always { --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
