view Jenkinsfile @ 25256:c6fb4943e10c

[illumos-gate merge] commit 84b52440bb17285d25cdba822f4ed46754e76f37 12997 clean up stale vdev driver in bhyve commit e2c85a726855856e110e09116d4f188c31949528 12995 update console fonts to terminus-4.48 commit 731058ff81c06fefc6b8786de93f31bd2e8d9986 12993 build default bold and vga fonts commit 2590fb56d329661927485eb826679e9f44e9c3dc 12985 fix wpi ddi_dma_nextcookie misuse
author Jerry Jelinek <jerry.jelinek@joyent.com>
date Thu, 30 Jul 2020 11:33:29 +0000
parents 45b62304f8a0
children
line wrap: on
line source

/*
 * 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')
        }
    }
}