-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPipelienCreation.txt
More file actions
35 lines (28 loc) · 871 Bytes
/
PipelienCreation.txt
File metadata and controls
35 lines (28 loc) · 871 Bytes
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
folder('Stage-pipeline') {
description('Folder containing all jobs for Stage-pipeline')
}
job('Stage-pipeline/SCM-checkout'){
scm {
git{
remote{
name('origin')
url('https://github.com/skeeto/sample-java-project.git')
credentials('2aa6dd9f-7455-4113-9780-870df0ff01b4')
}
}
}
}
job('Stage-pipeline/Build'){
steps {
batchFile('echo Hello World!') //batch command for build job excution
msBuild {
msBuildInstallation('Default')
buildFile('dir1/build.proj') // Msbuild file path, path of solution file
args('/P:DeployOnBuild=true')
continueOnBuildFailure(false)
}
sonarRunnerBuilder {
properties('sonar.host.url=http:// \n sonar.projectKey=abc \n sonar.projectName=abc \n sonar.projectVersion=1.0 \n sonar.sources=.')
}
}
}