Marcel Telka
2024-04-08 e44703e81887ee34cdaa681246ff7cb2065cc027
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
@Library("BuildLib") _
pipeline {
    agent {
        node {
            label 'illumos-gate'
        }
    }
    stages {
        stage('Ensure is ready to build') {
            steps {
                sh 'pfexec /usr/sbin/mountall -F nfs || exit 0'
            }
        }
        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', 'incremental') {
                    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()
            }
        }
    }
}