File tree Expand file tree Collapse file tree 3 files changed +144
-0
lines changed
Expand file tree Collapse file tree 3 files changed +144
-0
lines changed Original file line number Diff line number Diff line change 1+ version : ' 1.0'
2+ name : branch-pipeline
3+ displayName : BranchPipeline
4+ stages :
5+ - stage :
6+ name : compile
7+ displayName : 编译
8+ steps :
9+ - step : build@maven
10+ name : build_maven
11+ displayName : Maven 构建
12+ # 支持6、7、8、9、10、11六个版本
13+ jdkVersion : 8
14+ # 支持2.2.1、3.2.5、3.3.9、3.5.2、3.5.3、3.5.4、3.6.1、3.6.3八个版本
15+ mavenVersion : 3.3.9
16+ # 构建命令
17+ commands :
18+ - mvn -B clean package -Dmaven.test.skip=true
19+ # 非必填字段,开启后表示将构建产物暂存,但不会上传到制品库中,7天后自动清除
20+ artifacts :
21+ # 构建产物名字,作为产物的唯一标识可向下传递,支持自定义,默认为BUILD_ARTIFACT。在下游可以通过${BUILD_ARTIFACT}方式引用来获取构建物地址
22+ - name : BUILD_ARTIFACT
23+ # 构建产物获取路径,是指代码编译完毕之后构建物的所在路径,如通常jar包在target目录下。当前目录为代码库根目录
24+ path :
25+ - ./target
26+ - step : publish@general_artifacts
27+ name : publish_general_artifacts
28+ displayName : 上传制品
29+ # 上游构建任务定义的产物名,默认BUILD_ARTIFACT
30+ dependArtifact : BUILD_ARTIFACT
31+ # 上传到制品库时的制品命名,默认output
32+ artifactName : output
33+ dependsOn : build_maven
34+ - stage :
35+ name : release
36+ displayName : 发布
37+ steps :
38+ - step : publish@release_artifacts
39+ name : publish_release_artifacts
40+ displayName : ' 发布'
41+ # 上游上传制品任务的产出
42+ dependArtifact : output
43+ # 发布制品版本号
44+ version : ' 1.0.0.0'
45+ # 是否开启版本号自增,默认开启
46+ autoIncrement : true
47+ triggers :
48+ push :
49+ branches :
50+ exclude :
51+ - master
52+ include :
53+ - .*
Original file line number Diff line number Diff line change 1+ version : ' 1.0'
2+ name : master-pipeline
3+ displayName : MasterPipeline
4+ stages :
5+ - stage :
6+ name : compile
7+ displayName : 编译
8+ steps :
9+ - step : build@maven
10+ name : build_maven
11+ displayName : Maven 构建
12+ # 支持6、7、8、9、10、11六个版本
13+ jdkVersion : 8
14+ # 支持2.2.1、3.2.5、3.3.9、3.5.2、3.5.3、3.5.4、3.6.1、3.6.3八个版本
15+ mavenVersion : 3.3.9
16+ # 构建命令
17+ commands :
18+ - mvn -B clean package -Dmaven.test.skip=true
19+ # 非必填字段,开启后表示将构建产物暂存,但不会上传到制品库中,7天后自动清除
20+ artifacts :
21+ # 构建产物名字,作为产物的唯一标识可向下传递,支持自定义,默认为BUILD_ARTIFACT。在下游可以通过${BUILD_ARTIFACT}方式引用来获取构建物地址
22+ - name : BUILD_ARTIFACT
23+ # 构建产物获取路径,是指代码编译完毕之后构建物的所在路径,如通常jar包在target目录下。当前目录为代码库根目录
24+ path :
25+ - ./target
26+ - step : publish@general_artifacts
27+ name : publish_general_artifacts
28+ displayName : 上传制品
29+ # 上游构建任务定义的产物名,默认BUILD_ARTIFACT
30+ dependArtifact : BUILD_ARTIFACT
31+ # 上传到制品库时的制品命名,默认output
32+ artifactName : output
33+ dependsOn : build_maven
34+ - stage :
35+ name : release
36+ displayName : 发布
37+ steps :
38+ - step : publish@release_artifacts
39+ name : publish_release_artifacts
40+ displayName : ' 发布'
41+ # 上游上传制品任务的产出
42+ dependArtifact : output
43+ # 发布制品版本号
44+ version : ' 1.0.0.0'
45+ # 是否开启版本号自增,默认开启
46+ autoIncrement : true
47+ triggers :
48+ push :
49+ branches :
50+ include :
51+ - master
Original file line number Diff line number Diff line change 1+ version : ' 1.0'
2+ name : pr-pipeline
3+ displayName : PRPipeline
4+ stages :
5+ - stage :
6+ name : compile
7+ displayName : 编译
8+ steps :
9+ - step : build@maven
10+ name : build_maven
11+ displayName : Maven 构建
12+ # 支持6、7、8、9、10、11六个版本
13+ jdkVersion : 8
14+ # 支持2.2.1、3.2.5、3.3.9、3.5.2、3.5.3、3.5.4、3.6.1、3.6.3八个版本
15+ mavenVersion : 3.3.9
16+ # 构建命令
17+ commands :
18+ - mvn -B clean package -Dmaven.test.skip=true
19+ # 非必填字段,开启后表示将构建产物暂存,但不会上传到制品库中,7天后自动清除
20+ artifacts :
21+ # 构建产物名字,作为产物的唯一标识可向下传递,支持自定义,默认为BUILD_ARTIFACT。在下游可以通过${BUILD_ARTIFACT}方式引用来获取构建物地址
22+ - name : BUILD_ARTIFACT
23+ # 构建产物获取路径,是指代码编译完毕之后构建物的所在路径,如通常jar包在target目录下。当前目录为代码库根目录
24+ path :
25+ - ./target
26+ - step : publish@general_artifacts
27+ name : publish_general_artifacts
28+ displayName : 上传制品
29+ # 上游构建任务定义的产物名,默认BUILD_ARTIFACT
30+ dependArtifact : BUILD_ARTIFACT
31+ # 构建产物制品库,默认default,系统默认创建
32+ artifactRepository : default
33+ # 上传到制品库时的制品命名,默认output
34+ artifactName : output
35+ dependsOn : build_maven
36+ triggers :
37+ pr :
38+ branches :
39+ include :
40+ - master
You can’t perform that action at this time.
0 commit comments