This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Created by: Marcos Cano | |
Team: DevOps | |
Date: 7/7/17 | |
*/ | |
stage("Run cmd on each node") { | |
def node_names=nodeNames() | |
for (String item:node_names) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node { | |
wrap([$class: 'AnsiColorBuildWrapper', 'colorMapName': 'gnome-terminal']) { | |
stage ("Clone"){ | |
git '[email protected]:jmarcos-cano/go-demo.git' | |
} | |
stage ("Clean" ){ | |
sh "make clean" | |
} | |
stage ("Unit Tests & Build Build Docker image"){ | |
sh "make docker" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
web-app: | |
build: ./app/ | |
image: dockerguatemala/giphy-nodejs | |
restart: unless-stopped | |
volumes: | |
- "./app/:/app" | |
ports: | |
- "127.0.0.1:3000:3000" |
NewerOlder