This is an automated email from the ASF dual-hosted git repository.
tiagobento pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-kogito-apps.git
The following commit(s) were added to refs/heads/main by this push:
new e0701e8a0 NO-ISSUE: Trigger jitexecutor-native GitHub workflow as part
of the Kogito Apps weekly job (#2052)
e0701e8a0 is described below
commit e0701e8a0810f6a1914421f68cfdf620dddcf8e4
Author: Rodrigo Antunes <[email protected]>
AuthorDate: Tue May 21 12:00:38 2024 -0300
NO-ISSUE: Trigger jitexecutor-native GitHub workflow as part of the Kogito
Apps weekly job (#2052)
---
.ci/jenkins/Jenkinsfile.weekly.deploy | 24 ++++++++++++++++++++----
1 file changed, 20 insertions(+), 4 deletions(-)
diff --git a/.ci/jenkins/Jenkinsfile.weekly.deploy
b/.ci/jenkins/Jenkinsfile.weekly.deploy
index 05bda6c86..7d346053a 100644
--- a/.ci/jenkins/Jenkinsfile.weekly.deploy
+++ b/.ci/jenkins/Jenkinsfile.weekly.deploy
@@ -29,7 +29,7 @@ pipeline {
KOGITO_CI_EMAIL_TO = credentials("${JENKINS_EMAIL_CREDS_ID}")
- MAVEN_DEPLOY_LOCAL_DIR = "/tmp/maven_deploy_dir"
+ MAVEN_DEPLOY_LOCAL_DIR = '/tmp/maven_deploy_dir'
}
stages {
@@ -114,6 +114,22 @@ pipeline {
}
}
}
+
+ stage('Trigger JIT Executor Native GH workflow') {
+ steps {
+ script {
+ checkoutTag = getProjectVersion(false)
+ kogitoVersion = getProjectVersion()
+ withCredentials([usernamePassword(credentialsId:
"${getGitAuthorPushCredsId()}", usernameVariable: 'GITHUB_USER',
passwordVariable: 'GITHUB_TOKEN')]) {
+ sh """
+ git config user.email
${GITHUB_USER}@jenkins.kie.apache.org
+ git config user.name ${GITHUB_USER}
+ gh workflow run "publish-jitexecutor-native.yml" --ref
"${checkoutTag}" -f kogito_runtime_version="${kogitoVersion}"
--repo="https://github.com/${getGitAuthor()}/${getRepoName()}"
+ """
+ }
+ }
+ }
+ }
}
post {
always {
@@ -209,7 +225,7 @@ void runMavenLocalDeploy(boolean skipTests = true) {
mvnCmd = getMavenCommand()
mvnCmd.withLocalDeployFolder(getLocalDeploymentFolder())
- 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')]) {
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 ] : [])
@@ -235,7 +251,7 @@ String getProjectVersionDate() {
String getProjectVersion(boolean keepSnapshotSuffix = true) {
def projectVersion = env.PROJECT_VERSION
if (keepSnapshotSuffix) {
- return projectVersion.replace("-SNAPSHOT",
"-${getProjectVersionDate()}-SNAPSHOT")
+ return projectVersion.replace('-SNAPSHOT',
"-${getProjectVersionDate()}-SNAPSHOT")
}
- return projectVersion.replace("-SNAPSHOT", "-${getProjectVersionDate()}")
+ return projectVersion.replace('-SNAPSHOT', "-${getProjectVersionDate()}")
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]