Skip to content

Instantly share code, notes, and snippets.

View stanleyeze's full-sized avatar

Stanley Eze stanleyeze

  • Canada
View GitHub Profile
@stanleyeze
stanleyeze / Jenkinsfile
Created August 17, 2020 20:44 — forked from bvis/Jenkinsfile
Jenkin pipeline definition example to be integrated with Docker Swarm cluster in our CI/CD environment
pipeline {
agent { node { label 'swarm-ci' } }
environment {
TEST_PREFIX = "test-IMAGE"
TEST_IMAGE = "${env.TEST_PREFIX}:${env.BUILD_NUMBER}"
TEST_CONTAINER = "${env.TEST_PREFIX}-${env.BUILD_NUMBER}"
REGISTRY_ADDRESS = "my.registry.address.com"
SLACK_CHANNEL = "#deployment-notifications"