Skip to content

Commit 0a9be22

Browse files
author
Tobias Richter
committed
Add Jenkinsfile
1 parent 350cfb3 commit 0a9be22

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

Jenkinsfile

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

0 commit comments

Comments
 (0)