-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
37 lines (30 loc) · 1.07 KB
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
@Library('pipeline-library') pipelineLibrary
@Library('pv-pipeline-library') pvPipelineLibrary
import io.wcm.devops.jenkins.pipeline.ssh.SSHTarget
import static de.provision.devops.jenkins.pipeline.utils.ConfigConstants.*
import static io.wcm.devops.jenkins.pipeline.utils.ConfigConstants.*
// See:
// https://github.com/pro-vision/jenkins-pv-pipeline-library
// https://github.com/pro-vision/jenkins-pv-pipeline-library/blob/master/docs/config-structure.md
// Also have a look at https://github.com/wcm-io-devops/jenkins-pipeline-library for further configuration options
List triggers = defaults.getTriggers()
triggers.push(githubPush())
Map config = [
(BUILD_WRAPPER): [
(BUILD_WRAPPER_SSH_TARGETS): [new SSHTarget("ssh-wcm.io")]
],
(PROPERTIES) : [
(PROPERTIES_PIPELINE_TRIGGERS): triggers
],
(STAGE_COMPILE): [
(MAVEN): [
(MAVEN_GOALS): ["clean", "deploy", "site-deploy"],
]
],
(STAGE_FEATURE_PREPARATION): [
(STAGE_FEATURE_PREPARATION_MERGE): [
(STAGE_FEATURE_PREPARATION_MERGE_ENABLED): false
]
]
]
routeDefaultJenkinsFile(config)