Answers for "Jenkinsfile (Declarative Pipeline)"

0

jenkins declarative pipeline functions

Map modules = [:]
pipeline {
    agent any
    stages {
        stage('test') {
            steps {
                script{
                    modules.first = load "first.groovy"
                    modules.first.test1()
                    modules.first.test2()
                }
            }
        }
    }
}
Posted by: Guest on January-09-2020
0

Jenkinsfile (Declarative Pipeline)

pipeline {
    agent any

    stages {
        stage('Build') {
            steps {
                echo 'Building..'
            }
        }
        stage('Test') {
            steps {
                echo 'Testing..'
            }
        }
        stage('Deploy') {
            steps {
                echo 'Deploying....'
            }
        }
    }
}
Posted by: Guest on April-27-2022

Code answers related to "Jenkinsfile (Declarative Pipeline)"

Browse Popular Code Answers by Language