wangzilun
2022-02-28 f5d336033c4bb7d3647ab9fed65ddfa8be09b95e
Jenkinsfile
@@ -30,14 +30,14 @@
            }
        }
        stage('testMaven') {
            steps {
        //stage('testMaven') {
            //steps {
                //sh 'mvn clean test -U'
                //junit allowEmptyResults: true, keepLongStdio: true, skipPublishingChecks: true, testResults: 'target/surefire-reports/*.xml'
            }
        }
            //}
        //}
        stage('testFunction') {
            steps {
                sh 'echo test'
@@ -56,7 +56,7 @@
                    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 "不包含"