updated README.md
parent
fa7a8be713
commit
bc8586bbc3
|
@ -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
|
||||
------------------------------------
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue