Jenkins Shared Library for common nclazz tasks
Go to file
Niclas Thobaben b2a0359a43 fix deployToSwarm 2022-02-15 00:46:23 +01:00
vars fix deployToSwarm 2022-02-15 00:46:23 +01:00
.gitignore initial commit 2022-02-09 09:24:49 +01:00
README.md updated README.md 2022-02-14 09:40:37 +01:00

README.md

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
        )
    }
}