4. Deploy

4.1. Example

Listing 40. Deploy
pipeline {
    agent any

    stages {
        stage('Deploy') {
            when { currentBuild.result == 'SUCCESS' }
            steps {
                sh '/usr/bin/make publish'
            }
        }
    }
}