-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathJenkinsfile
More file actions
34 lines (34 loc) · 873 Bytes
/
Jenkinsfile
File metadata and controls
34 lines (34 loc) · 873 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
pipeline{
agent any
options {
buildDiscarder logRotator(artifactDaysToKeepStr: '30', artifactNumToKeepStr: '2', daysToKeepStr: '30', numToKeepStr: '10')
}
stages{
stage("checkout"){
steps{
git 'https://github.com/mikemadden42/github_status.git'
}
}
stage("build"){
steps{
sh label: '', script: 'go build -ldflags="-s -w" -v -o github_status'
}
}
stage("archive"){
steps{
archiveArtifacts 'github_status'
}
}
}
post{
always{
echo "========always========"
}
success{
echo "========pipeline executed successfully ========"
}
failure{
echo "========pipeline execution failed========"
}
}
}