Olaf Bohlen
2023-02-08 caa83b19db0fb227f19b948249c7264d2fe1eb53
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
pipeline {
    agent any
    parameters {
    string(
        name: 'PERSON',
        defaultValue: 'Fritz'
    )
    }
    stages {
    stage('first stage') {
        when {
        expression { params.PERSON == 'Franz' }
        }
        steps {
            echo "Moin ${params.PERSON}"
            sh 'uname -a'
        }
    }
    stage('other stage') {
        steps {
        echo "Stage 2"
        }
    }
    }
}