aboutsummaryrefslogtreecommitdiffstats
path: root/Jenkinsfile.nodes
blob: 649a4805189973ac8c863d65ed8b7de7f929db1a (plain)
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
46
47
48
49
50
51
52
53
54
55
56
pipeline {
    agent none

    options {
        buildDiscarder(logRotator(numToKeepStr: '5'))
        disableConcurrentBuilds()
    }

    triggers {
        pollSCM('H * * * *')
    }

    stages {
        stage('nodes') {
            parallel {

                stage('fedora k8s-x64-1') {
                    agent {
                        kubernetes {
                            yamlFile 'fedora.yaml'
                            defaultContainer 'fedora'
                            slaveConnectTimeout '3600'
                            nodeSelector 'kubernetes.io/hostname=k8s-x64-1.home.kraxel.org'
                        }
                   }
                   steps {
                        sh '''
                            uname -a
                            printenv | sort
                            cat /etc/os-release
                        '''
                    }
                }    

                stage('fedora k8s-x64-2') {
                    agent {
                        kubernetes {
                            yamlFile 'fedora.yaml'
                            defaultContainer 'fedora'
                            slaveConnectTimeout '3600'
                            nodeSelector 'kubernetes.io/hostname=k8s-x64-2.home.kraxel.org'
                        }
                   }
                   steps {
                        sh '''
                            uname -a
                            printenv | sort
                            cat /etc/os-release
                        '''
                    }
                }

            }
        }
    }
}