From b6e3dbce6563c48d5aee8f5890db26160f19a3c1 Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Thu, 3 Jan 2019 09:19:52 -0700 Subject: Adding sample pipeline --- sample_pipeline | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 sample_pipeline diff --git a/sample_pipeline b/sample_pipeline new file mode 100644 index 0000000..8fadd26 --- /dev/null +++ b/sample_pipeline @@ -0,0 +1,30 @@ +pipeline { + environment { + registry = "thornycrackers/neovim" + registryCredential = 'dockerhub' + } + agent any + stages { + stage('Cloning Git') { + steps { + git 'https://github.com/thornycrackers/docker-neovim' + } + } + stage('Build') { + steps { + sh 'make setup' + sh 'make build' + } + } + stage('Push Image'){ + steps { + script { + docker.withRegistry( '', registryCredential ) { + sh 'make push' + } + } + + } + } + } +} -- cgit v1.2.3