diff options
author | Cody Hiar <codyfh@gmail.com> | 2019-01-03 09:19:52 -0700 |
---|---|---|
committer | Cody Hiar <codyfh@gmail.com> | 2019-01-03 09:19:52 -0700 |
commit | b6e3dbce6563c48d5aee8f5890db26160f19a3c1 (patch) | |
tree | 174a02563e8221699ad3d33ffb9f957755ec575b /sample_pipeline | |
parent | d3f27ddadd70c0c37b80c22ca4e808495e129d90 (diff) |
Adding sample pipeline
Diffstat (limited to 'sample_pipeline')
-rw-r--r-- | sample_pipeline | 30 |
1 files changed, 30 insertions, 0 deletions
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' + } + } + + } + } + } +} |