-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
24 lines (24 loc) · 787 Bytes
/
Jenkinsfile
File metadata and controls
24 lines (24 loc) · 787 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
pipeline {
agent { label 'nixbld' }
stages {
stage('Build Docker image') {
steps {
script {
dockerImage = nixBuildDocker (nixFile: "docker.nix",
namespace: "utils",
name: "nix-ipmi",
currentProjectBranch: GIT_BRANCH)
}
}
}
stage('Push Docker image') {
steps {
pushDocker image: dockerImage, pushToBranchName: false
}
}
}
post {
success { cleanWs() }
failure { notifySlack "Build failled: ${JOB_NAME} [<${RUN_DISPLAY_URL}|${BUILD_NUMBER}>]", "red" }
}
}