-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
57 lines (48 loc) · 1.44 KB
/
Jenkinsfile
File metadata and controls
57 lines (48 loc) · 1.44 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
pipeline {
agent any
environment{
env = "UAT"
}
triggers{
pollSCM('* * * * *')
}
// options {
// disableConcurrentBuilds()
// timestamps()
// }
parameters{
string(name: 'PERSON', defaultValue: 'Mr Jenkins', description: 'Who should I say hello to?')
text(name: 'BIOGRAPHY', defaultValue: '', description: 'Enter some information about the person')
booleanParam(name: 'TOGGLE', defaultValue: true, description: 'Toggle this value')
choice(name: 'CHOICE', choices: ['One', 'Two', 'Three', 'four'], description: 'Pick something')
}
options {
buildDiscarder(
logRotator(
// number of build logs to keep
numToKeepStr:'5',
// history to keep in days
daysToKeepStr: '15',
// artifacts are kept for days
artifactDaysToKeepStr: '15',
// number of builds have their artifacts kept
artifactNumToKeepStr: '5'
)
)
disableConcurrentBuilds()
timestamps()
}
stages {
stage('ProjectNG'){
steps{
cleanWs()
sh 'mkdir Slack'
sh 'mkdir TEST'
sh 'mkdir Deploy'
sh "echo tool name is $PERSON"
echo 'The assinged task completed on jenkins'
print BUILD_URL
}
}
}
}