Till Wegmüller
2023-07-15 6bbc193e280e1aec597eeecaca35b2106da6b851
Update CI config with pipelines from second server

* Move CI configuration into own sub folder
* Add other project configs from build server testing

Signed-off-by: Till Wegmueller <toasterson@gmail.com>
3 files added
1 files renamed
120 ■■■■■ changed files
ci/encumbered-build.groovy 45 ●●●●● patch | view | raw | blame | history
ci/illumos-gate-build.groovy 41 ●●●●● patch | view | raw | blame | history
ci/pr-builder.groovy patch | view | raw | blame | history
ci/user-build.groovy 34 ●●●●● patch | view | raw | blame | history
ci/encumbered-build.groovy
New file
@@ -0,0 +1,45 @@
@Library("BuildLib") _
pipeline {
    agent {
        node {
            label 'encumbered'
        }
    }
    stages {
        stage('Git Checkout') {
            steps {
                withSharedWs() {
                    git branch: 'oi/hipster', url: 'https://github.com/OpenIndiana/oi-userland.git'
                }
            }
        }
        stage('Gmake Setup') {
            steps {
                withPublisher('hipster-encumbered', 'full') {
                    ignoreEncumberedComponents(['audacity', 'gsm', 'gst-plugins-bad', 'rtmpdump'])
                    sh 'rm -f components/encumbered/components.mk'
                    sh 'rm -f components/encumbered/depends.mk'
                    sh 'gmake -C components/encumbered setup'
                }
            }
        }
        stage('build encumbered packages') {
            steps {
                withPublisher('hipster-encumbered', 'incremental') {
                    sh 'gmake -C components/encumbered publish -k'
                }
            }
        }
        stage('copy packages') {
            steps {
                pkgcopyEncumbered()
            }
        }
        stage('update system') {
            steps {
                update()
            }
        }
    }
}
ci/illumos-gate-build.groovy
New file
@@ -0,0 +1,41 @@
@Library("BuildLib") _
pipeline {
    agent {
        node {
            label 'illumos-gate'
        }
    }
    stages {
        stage('Git Checkout') {
            steps {
                withSharedWs() {
                    git branch: 'oi/hipster', url: 'https://github.com/OpenIndiana/oi-userland.git'
                }
            }
        }
        stage('Gmake Setup') {
            steps {
                sh 'rm -f components/components.mk'
                sh 'rm -f components/depends.mk'
                withPublisher('openindiana.org', 'full') {
                    sh 'gmake setup'
                }
            }
        }
        stage('build illumos-gate') {
            steps {
                withPublisher('openindiana.org', 'incremental') {
                    dir('components/openindiana/illumos-gate') {
                        sh 'gmake publish'
                    }
                }
            }
        }
        stage('update system') {
            steps {
                update()
            }
        }
    }
}
ci/pr-builder.groovy
ci/user-build.groovy
New file
@@ -0,0 +1,34 @@
@Library("BuildLib") _
pipeline {
    agent {
        node {
            label 'userland'
        }
    }
    stages {
        stage('Git Checkout') {
            steps {
                withSharedWs() {
                    git branch: 'oi/hipster', url: 'https://github.com/OpenIndiana/oi-userland.git'
                }
            }
        }
        stage('Gmake Setup') {
            steps {
                sh 'rm -f components/components.mk'
                sh 'rm -f components/depends.mk'
                withPublisher('openindiana.org', 'full') {
                    sh 'gmake setup'
                }
            }
        }
        stage('Gmake Publish') {
            steps {
                withPublisher('openindiana.org', 'incremental') {
                    sh 'gmake publish -k'
                }
            }
        }
    }
}