diff options
author | Cody Hiar <codyfh@gmail.com> | 2019-01-08 04:00:23 +0000 |
---|---|---|
committer | Cody Hiar <codyfh@gmail.com> | 2019-01-08 04:00:23 +0000 |
commit | beb17794a1f9cbc37b198c4f84e4552b92011626 (patch) | |
tree | 5b6f15af85fedb793c55c40652faf354ff27198a | |
parent | e8427102cd09d48ada32f3c54e6de5f7fce3e5d0 (diff) |
Adding Jenkinsfile
-rw-r--r-- | Jenkinsfile | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..8c400ce --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,33 @@ +pipeline { + triggers { + pollSCM('H/15 * * * *') + } + 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' + } + } + + } + } + } +} |