From eb44a3888b55fe025858c67b4a17d95940c8a4e8 Mon Sep 17 00:00:00 2001 From: liyang Date: Wed, 15 Mar 2023 10:07:21 +0800 Subject: [PATCH] * Fix xuanim git pwd. --- Jenkinsfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index c9e9fa8873..7a8b2aa50d 100755 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -47,13 +47,13 @@ pipeline { post { success { container('xuanimbot') { - sh 'git config --global --add safe.directory /home/jenkins/agent/workspace/pangu_pangu_xuanimbot_master' + sh 'git config --global --add safe.directory $(pwd)' sh '/usr/local/bin/xuanimbot --users "$(git show -s --format=%cn)" --title "sonar scanner" --url "${RUN_DISPLAY_URL}" --content "sonar静态扫描通过" --debug --custom' } } failure { container('xuanimbot') { - sh 'git config --global --add safe.directory /home/jenkins/agent/workspace/pangu_pangu_xuanimbot_master' + sh 'git config --global --add safe.directory $(pwd)' sh '/usr/local/bin/xuanimbot --users "$(git show -s --format=%cn)" --title "sonar scanner" --url "${RUN_DISPLAY_URL}" --content "sonar静态扫描失败" --debug --custom' } } @@ -72,7 +72,7 @@ pipeline { } failure { container('xuanimbot') { - sh 'git config --global --add safe.directory /home/jenkins/agent/workspace/pangu_pangu_xuanimbot_master' + sh 'git config --global --add safe.directory $(pwd)' sh '/usr/local/bin/xuanimbot --users "$(git show -s --format=%cn)" --title "build image" --url "${RUN_DISPLAY_URL}" --content "构建禅道单元测试镜像失败" --debug --custom' } } @@ -108,7 +108,7 @@ pipeline { } failure { container('xuanimbot') { - sh 'git config --global --add safe.directory /home/jenkins/agent/workspace/pangu_pangu_xuanimbot_master' + sh 'git config --global --add safe.directory $(pwd)' sh '/usr/local/bin/xuanimbot --users "$(git show -s --format=%cn)" --title "unittest init" --url "${RUN_DISPLAY_URL}" --content "初始化单元测试数据库失败" --debug --custom' } } @@ -286,7 +286,7 @@ pipeline { } failure{ container('xuanimbot') { - sh 'git config --global --add safe.directory /home/jenkins/agent/workspace/pangu_pangu_xuanimbot_master' + sh 'git config --global --add safe.directory $(pwd)' sh '/usr/local/bin/xuanimbot --users "$(git show -s --format=%cn)" --title "unittest" --url "${RUN_DISPLAY_URL}" --content "单元测试通过" --debug --custom' } }