From 413465ee005d6ad02aef23c6d05d7fadb1bab353 Mon Sep 17 00:00:00 2001
From: wangzilun <964606955@qq.com>
Date: Tue, 08 Mar 2022 16:52:29 +0800
Subject: [PATCH] test234q432

---
 Jenkinsfile |   26 +++++++++++++++++---------
 1 files changed, 17 insertions(+), 9 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 5fbfd58..aae900a 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -20,14 +20,16 @@
     stages {
         stage('source') {
             steps {
-                checkout([$class: 'GitSCM'
-                , branches: [[name: "${GIT_BRANCH}"]]
-                , doGenerateSubmoduleConfigurations: false
-                , extensions: []
-                , submoduleCfg: []
-                , userRemoteConfigs: [[credentialsId: "${GIT_CREDENTIALS_ID}", url: "${url}"]]
-                ])
-
+                script{
+                    def changeLogSets = checkout([$class: 'GitSCM'
+                                    , branches: [[name: "${GIT_BRANCH}"]]
+                                    , doGenerateSubmoduleConfigurations: false
+                                    , extensions: []
+                                    , submoduleCfg: []
+                                    , userRemoteConfigs: [[credentialsId: "${GIT_CREDENTIALS_ID}", url: "${url}"]]
+                                    ])
+                     println "changeLogSets ${changeLogSets}"
+                }
             }
         }
         //stage('testMaven') {
@@ -40,7 +42,13 @@
         //}
         stage('testFunction') {
             steps {
-                sh 'echo test'
+                sh '''
+                    commit_name="\$(git show -s --pretty=%an)"
+                    commit_message="\$(git show -s --pretty=%s)"
+                    echo "\$commit_name"
+                    echo "\$commit_message"
+                    printenv
+                '''
             }
         }
 

--
Gitblit v1.9.1