add default pipeline template yaml

pull/40/MERGE
kailing 2 years ago committed by Gitee
parent 82f6d3565f
commit 584e6b2c77
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

@ -0,0 +1,53 @@
version: '1.0'
name: branch-pipeline
displayName: BranchPipeline
stages:
- stage:
name: compile
displayName:
steps:
- step: build@maven
name: build_maven
displayName: Maven
# 67891011
jdkVersion: 8
# 2.2.13.2.53.3.93.5.23.5.33.5.43.6.13.6.3
mavenVersion: 3.3.9
#
commands:
- mvn -B clean package -Dmaven.test.skip=true
# 7
artifacts:
# BUILD_ARTIFACT${BUILD_ARTIFACT}
- name: BUILD_ARTIFACT
# jartarget
path:
- ./target
- step: publish@general_artifacts
name: publish_general_artifacts
displayName:
# BUILD_ARTIFACT
dependArtifact: BUILD_ARTIFACT
# output
artifactName: output
dependsOn: build_maven
- stage:
name: release
displayName:
steps:
- step: publish@release_artifacts
name: publish_release_artifacts
displayName: ''
#
dependArtifact: output
#
version: '1.0.0.0'
#
autoIncrement: true
triggers:
push:
branches:
exclude:
- master
include:
- .*

@ -0,0 +1,51 @@
version: '1.0'
name: master-pipeline
displayName: MasterPipeline
stages:
- stage:
name: compile
displayName:
steps:
- step: build@maven
name: build_maven
displayName: Maven
# 67891011
jdkVersion: 8
# 2.2.13.2.53.3.93.5.23.5.33.5.43.6.13.6.3
mavenVersion: 3.3.9
#
commands:
- mvn -B clean package -Dmaven.test.skip=true
# 7
artifacts:
# BUILD_ARTIFACT${BUILD_ARTIFACT}
- name: BUILD_ARTIFACT
# jartarget
path:
- ./target
- step: publish@general_artifacts
name: publish_general_artifacts
displayName:
# BUILD_ARTIFACT
dependArtifact: BUILD_ARTIFACT
# output
artifactName: output
dependsOn: build_maven
- stage:
name: release
displayName:
steps:
- step: publish@release_artifacts
name: publish_release_artifacts
displayName: ''
#
dependArtifact: output
#
version: '1.0.0.0'
#
autoIncrement: true
triggers:
push:
branches:
include:
- master

@ -0,0 +1,40 @@
version: '1.0'
name: pr-pipeline
displayName: PRPipeline
stages:
- stage:
name: compile
displayName:
steps:
- step: build@maven
name: build_maven
displayName: Maven
# 67891011
jdkVersion: 8
# 2.2.13.2.53.3.93.5.23.5.33.5.43.6.13.6.3
mavenVersion: 3.3.9
#
commands:
- mvn -B clean package -Dmaven.test.skip=true
# 7
artifacts:
# BUILD_ARTIFACT${BUILD_ARTIFACT}
- name: BUILD_ARTIFACT
# jartarget
path:
- ./target
- step: publish@general_artifacts
name: publish_general_artifacts
displayName:
# BUILD_ARTIFACT
dependArtifact: BUILD_ARTIFACT
# default
artifactRepository: default
# output
artifactName: output
dependsOn: build_maven
triggers:
pr:
branches:
include:
- master
Loading…
Cancel
Save