-
Notifications
You must be signed in to change notification settings - Fork 45
/
build.jenkinsfile
28 lines (25 loc) · 1.17 KB
/
build.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
@Library('lifecycle-utils@main') _
//Library code can be found at https://github.com/mulesoft/lifecycle-pipeline-utils
properties([
parameters([
string(name: 'JDK', defaultValue: "JDK8", description: 'JDK Version to be used'),
string(name: 'releaseCandidate', defaultValue: "3.1.0-rc0", description: 'Used when deployReleaseCandidate is set to true'),
booleanParam(name: 'deployRelesaseCandidate', defaultValue: false, description: ""),
string(name: 'maven', defaultValue: "Maven-3.9.4", description: 'Maven version to be used'),
booleanParam(name: 'binariesScan', defaultValue: true, description: ""),
booleanParam(name: 'deployArtifacts', defaultValue: true, description: "Used when we want to deploy the artifact")
]),
])
def pipelineParams = [
"agent": "ubuntu-14.04",
"jdk": params.JDK,
"maven": params.maven,
"releaseCandidate": params.releaseCandidate,
"deployReleaseCandidate": params.deployReleaseCandidate,
"sonarFolder": "mmp-sonar",
"projectKey": "mule-maven-plugin",
"binariesScan": params.binariesScan,
"protectedBranches" : ["main"],
"deployArtifacts": params.deployArtifacts
]
buildMMP(pipelineParams)