blob: 22e4de5bd5e1a162bce0828f528ca37ab4e1695f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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'
}
}
}
}
}
}
|