| | |
| | | |
| | | } |
| | | } |
| | | stage('testMaven') { |
| | | steps { |
| | | //stage('testMaven') { |
| | | //steps { |
| | | |
| | | //sh 'mvn clean test -U' |
| | | junit allowEmptyResults: true, keepLongStdio: true, skipPublishingChecks: true, testResults: 'target/surefire-reports/*.xml' |
| | | //junit allowEmptyResults: true, keepLongStdio: true, skipPublishingChecks: true, testResults: 'target/surefire-reports/*.xml' |
| | | |
| | | } |
| | | } |
| | | //} |
| | | //} |
| | | stage('testFunction') { |
| | | steps { |
| | | sh 'echo test' |
| | |
| | | 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}" =~ "\$str"]];then |
| | | if [[ "\${old_version_all}" =~ "\$str" ]];then |
| | | echo "包含" |
| | | else |
| | | echo "不包含" |