summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleg Pykhalov <go.wigust@gmail.com>2020-02-01 20:46:10 +0300
committerOleg Pykhalov <go.wigust@gmail.com>2020-02-01 20:46:10 +0300
commitc4692db9ff88c407e8f43036905306be9fe203d3 (patch)
treed106d96299ea51267d3fdc00d87728464cf2ccf8
parentcernlib: add src mirror url (diff)
downloadnixpkgs-local/nixos-19.09-pxe.tar.gz
Add Jenkinsfile.local/nixos-19.09-pxe
-rw-r--r--Jenkinsfile31
1 files changed, 31 insertions, 0 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
new file mode 100644
index 000000000000..41699452e3fd
--- /dev/null
+++ b/Jenkinsfile
@@ -0,0 +1,31 @@
+@Library('mj-shared-library') _
+
+def dockerImage = null
+
+pipeline {
+ agent { label 'nixbld' }
+ options {
+ gitLabConnection(Constants.gitLabConnection)
+ gitlabBuilds(builds: ['Build Docker image', 'Push Docker image'])
+ buildDiscarder(logRotator(numToKeepStr: '10', artifactNumToKeepStr: '10'))
+ }
+ environment {
+ PROJECT_NAME = gitRemoteOrigin.getProject()
+ GROUP_NAME = gitRemoteOrigin.getGroup()
+ }
+ stages {
+ stage('Build Docker image') {
+ steps {
+ gitlabCommitStatus(STAGE_NAME) {
+ script {
+ nixSh cmd: "nix-build -A netboot nixos/release.nix"
+ }
+ }
+ }
+ }
+ }
+ post {
+ success { cleanWs() }
+ failure { notifySlack "Build failled: ${JOB_NAME} [<${RUN_DISPLAY_URL}|${BUILD_NUMBER}>]", "red" }
+ }
+}