summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Foster <tim.foster@joyent.com>2020-03-10 16:12:42 +0000
committerGitHub <noreply@github.com>2020-03-10 16:12:42 +0000
commit7ff6d3a0af49da6680bd066858211c22a894a71c (patch)
tree78b970fb0ed31fe1c83584e354097f532c74977c
parent3f9f29b906943320199b9229c24a5fe59dc340d0 (diff)
downloadillumos-joyent-7ff6d3a0af49da6680bd066858211c22a894a71c.tar.gz
OS-8046 add Jenkinsfiles to smartos repos (#260)
Reviewed by: John Levon <john.levon@joyent.com> Approved by: John Levon <john.levon@joyent.com>
-rw-r--r--Jenkinsfile62
1 files changed, 62 insertions, 0 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
new file mode 100644
index 0000000000..f318090a88
--- /dev/null
+++ b/Jenkinsfile
@@ -0,0 +1,62 @@
+/*
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+/*
+ * Copyright 2020 Joyent, Inc.
+ */
+
+@Library('jenkins-joylib@v1.0.4') _
+
+pipeline {
+
+ agent {
+ label 'platform:true && image_ver:18.4.0 && pkgsrc_arch:x86_64 && ' +
+ 'dram:8gb && !virt:kvm && fs:pcfs && fs:ufs && jenkins_agent:2'
+ }
+
+ options {
+ buildDiscarder(logRotator(numToKeepStr: '30'))
+ timestamps()
+ parallelsAlwaysFailFast()
+ }
+
+ stages {
+ stage('trigger smartos-live') {
+ when {
+ anyOf {
+ branch 'master'
+ triggeredBy cause: 'UserIdCause'
+ }
+ // Prevent a user from starting a UserIdCause build on a
+ // release branch, since that would trigger the smartos-live
+ // 'master' branch build below, which is not what we want.
+ not {
+ branch pattern: 'release-\\d+', comparator: 'REGEXP'
+ }
+ }
+ steps {
+ build(job:'joyent-org/smartos-live/master',
+ wait: false,
+ parameters: [
+ text(name: 'CONFIGURE_PROJECTS',
+ value:
+ "illumos-extra: master: origin\n" +
+ 'illumos: $BRANCH_NAME: origin\n' +
+ 'local/kbmd: master: origin\n' +
+ 'local/kvm-cmd: master: origin\n' +
+ 'local/kvm: master: origin\n' +
+ 'local/mdata-client: master: origin\n' +
+ 'local/ur-agent: master: origin')
+ ])
+ }
+ }
+ }
+ post {
+ always {
+ joyMattermostNotification(channel: 'jenkins')
+ }
+ }
+}