updated README.md

master
Niclas Thobaben 2022-02-14 09:40:37 +01:00
parent fa7a8be713
commit bc8586bbc3
2 changed files with 15 additions and 9 deletions

View File

@ -1,7 +1,9 @@
Swarm Deploy Jenkins Shared Library
Jenkins Commons
=======================================
A shared Library to deploy services/stacks to nclazz docker swarm from Jenkins pipeline.
A shared library for common jenkins tasks.
Declarative Pipeline Integration
------------------------------------

View File

@ -1,9 +1,4 @@
def call(Map config) {
def stackFile = config.file != null ? config.file : '../docker-compose.yml'
def slackChannel = config.slackChannel != null ? config.slackChannel : 'notifications'
def sendSuccess = config.sendSuccess != null ? config.sendSuccess : true
if(config.askApproval) {
askForApproval(String channel, String serviceName) {
slackSend(
channel: slackChannel,
message: """
@ -13,6 +8,15 @@ def call(Map config) {
input(message: "Continue deployment of ${config.name}?", ok: "Yes")
}
def call(Map config) {
def stackFile = config.file != null ? config.file : '../docker-compose.yml'
def slackChannel = config.slackChannel != null ? config.slackChannel : 'notifications'
def sendSuccess = config.sendSuccess != null ? config.sendSuccess : true
if(config.askApproval) {
}
dir('ansible-deploy') {
try {
// create .env file