blob: 166567c8c19d204a193128055eff0e01021a3b7b (
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'
}
}
}
}
}
}
|