wangzilun
2022-02-21 fc3c3597f1dc42acaaf379a00e55804d924afb16
测试
2 files modified
27 ■■■■■ changed files
Jenkinsfile 25 ●●●●● patch | view | raw | blame | history
test.js 2 ●●● patch | view | raw | blame | history
Jenkinsfile
@@ -68,31 +68,6 @@
                '''
            }
        }
        stage('version add master') {
            when {
                //版本号自动添加逻辑需同时符合下列触发条件:
                //1. 不能在master分支触发
                //2. 有任意浏览器页面资源文件修改
                //3. 不包含[项目名.java]文件的修改
                allOf {
                    anyOf {
                        changeset "**/*.js"
                        changeset "**/*.css"
                        changeset "**/*.html"
                        changeset "**/*.xhtml"
                        changeset "**/*.jpg"
                        changeset "**/*.png"
                    }
                    not {
                        changeset "**/${project_name}.java"
                    }
                    branch 'master'
                }
            }
            steps {
                versionAddDevelop("${project_name}","${GIT_CREDENTIALS_ID}","${url}","${GIT_BRANCH}")
            }
        }
        stage('master version add') {
            when {
test.js
@@ -1 +1 @@
11111111111111111111111
1111111111111111111111111