From 3fe9a4af65343c6150a505e7d55626e3de12186a Mon Sep 17 00:00:00 2001
From: wangzilun <964606955@qq.com>
Date: Wed, 23 Feb 2022 15:45:14 +0800
Subject: [PATCH] 测试
---
Jenkinsfile | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index 2610ccc..ca4a9ba 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -33,8 +33,8 @@
stage('testMaven') {
steps {
- sh 'mvn clean test -U'
- junit allowEmptyResults: true, keepLongStdio: true, skipPublishingChecks: true, testResults: 'target/surefire-reports/*.xml'
+ //sh 'mvn clean test -U'
+ //junit allowEmptyResults: true, keepLongStdio: true, skipPublishingChecks: true, testResults: 'target/surefire-reports/*.xml'
}
}
@@ -52,10 +52,11 @@
##mvn clean package -U
##处理结果包
versionFile=\$(find . -iname "${project_name}.java")
+ str="-"
old_version_all=\$(cat \$versionFile | sed -nr \'s/^[^0-9]*"([^"]+)".*;/\\1/p\')
echo "old_version_all \$old_version_all"
echo "project_name \$project_name"
- if [ ["\$old_version_all" =~ \'-\'] ];then
+ if [["\${old_version_all}" =~ "\$str"]];then
echo "包含"
else
echo "不包含"
@@ -82,7 +83,7 @@
steps {
//http(s)的git链接使用帐号密码,ssh使用 keyFileVariable: 'SSH_KEY'
echo "todo version add"
- versionAddDevelop("${project_name}","${GIT_CREDENTIALS_ID}","${url}","${GIT_BRANCH}")
+ //versionAddDevelop("${project_name}","${GIT_CREDENTIALS_ID}","${url}","${GIT_BRANCH}")
}
}
--
Gitblit v1.9.1