Andreas Wacknitz
2024-03-31 11913f259bd613261d3ccc0301874e26a4dcdbab
commit | author | age
6bbc19 1 @Library("BuildLib") _
TW 2 pipeline {
3     agent {
4         node {
5             label 'illumos-gate'
6         }
7     }
8     stages {
33a37d 9         stage('Ensure is ready to build') {
TW 10             steps {
332bc2 11                 sh 'pfexec /usr/sbin/mountall -F nfs || exit 0'
33a37d 12             }
TW 13         }
6bbc19 14         stage('Git Checkout') {
TW 15             steps {
16                 withSharedWs() {
17                     git branch: 'oi/hipster', url: 'https://github.com/OpenIndiana/oi-userland.git'
18                 }
19             }
20         }
21         stage('Gmake Setup') {
22             steps {
23                 sh 'rm -f components/components.mk'
24                 sh 'rm -f components/depends.mk'
1c7025 25                 withPublisher('openindiana.org', 'incremental') {
6bbc19 26                     sh 'gmake setup'
TW 27                 }
28             }
29         }
30         stage('build illumos-gate') {
31             steps {
32                 withPublisher('openindiana.org', 'incremental') {
33                     dir('components/openindiana/illumos-gate') {
34                         sh 'gmake publish'
35                     }
36                 }
37             }
38         }
39         stage('update system') {
40             steps {
41                 update()
42             }
43         }
44     }
45 }
46