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

olamy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-dist-tool.git


The following commit(s) were added to refs/heads/master by this push:
     new 1aaf2b1  Ensure API_TOKEN is passed
1aaf2b1 is described below

commit 1aaf2b1dd763a3844a8d5ebe1312d57ba57ff7de
Author: Olivier Lamy <[email protected]>
AuthorDate: Sat Mar 14 19:17:52 2026 +1000

    Ensure API_TOKEN is passed
    
    Signed-off-by: Olivier Lamy <[email protected]>
---
 Jenkinsfile | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 4f9d2f5..a57cb21 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -36,8 +36,10 @@ pipeline {
 
         stage('Build') {
             steps {
-                withMaven(jdk:'jdk_21_latest', maven:'maven_3_latest', 
publisherStrategy: 'EXPLICIT', mavenLocalRepo:'.repository') {
-                    sh "mvn -ntp -V -e -Preporting -Dscreenshot=false clean 
install site"
+                withCredentials([string(credentialsId: 'API_TOKEN', variable: 
'API_TOKEN')]) {
+                    withMaven(jdk:'jdk_21_latest', maven:'maven_3_latest', 
publisherStrategy: 'EXPLICIT', mavenLocalRepo:'.repository') {
+                        sh "mvn -ntp -V -e -Preporting -Dscreenshot=false 
clean install site"
+                    }
                 }
                 archiveArtifacts artifacts: 
"**/target/site/**/*",allowEmptyArchive: true
             }

Reply via email to