nclazz-jenkins-commons/README.md

547 B

Jenkins Commons

A shared library for common jenkins tasks.

Declarative Pipeline Integration

Make sure the step is run inside a provision node, as the step uses ansible.

i.e.


stage('Run Deployment') {
    agent { label "provision" }
    steps {
        deployToSwarm(
            name: 'my-swarm-stack',
            stackFile: "${env.WORKSPACE}/docker-compose.yml" 
            forceUpdate: true, 
            askApproval: true
        )
    }
}