This is an automated email from the ASF dual-hosted git repository.

ricardozanini pushed a commit to branch radtriste-fix-pipelines
in repository 
https://gitbox.apache.org/repos/asf/incubator-kie-kogito-images.git

commit e5f098b8718d0a6a9248ada29fb0625bf3d69bd1
Author: jstastny-cz <[email protected]>
AuthorDate: Thu Nov 9 08:45:39 2023 +0100

    provide correct creds
---
 .ci/jenkins/Jenkinsfile.build-and-test | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/.ci/jenkins/Jenkinsfile.build-and-test 
b/.ci/jenkins/Jenkinsfile.build-and-test
index a6c91e4b..c17be2b1 100644
--- a/.ci/jenkins/Jenkinsfile.build-and-test
+++ b/.ci/jenkins/Jenkinsfile.build-and-test
@@ -20,7 +20,7 @@ pipeline {
                     dir(getRepoName()) {
                         // TODO Test pupose
                         deleteDir()
-                        githubscm.checkoutIfExists(getRepoName(), 
getChangeAuthor(), getChangeBranch(), 'apache', getChangeTarget(), true, 
credentials = [token: getGitAuthorCredentialsId(), usernamePassword: 'kie-ci'])
+                        githubscm.checkoutIfExists(getRepoName(), 
getChangeAuthor(), getChangeBranch(), 'apache', getChangeTarget(), true, 
credentials = [token: getGitAuthorCredentialsTokenId(), usernamePassword: 
getGitAuthorCredentialsId()])
                     }
                 }
             }
@@ -124,3 +124,7 @@ String getRepoName() {
 String getGitAuthorCredentialsId() {
     return env.AUTHOR_CREDS_ID
 }
+
+String getGitAuthorTokenCredentialsId() {
+    return env.AUTHOR_TOKEN_CREDS_ID
+}


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to