aboutsummaryrefslogtreecommitdiff
path: root/sample_pipeline
blob: 8fadd265d5a18a69a70107273192e21dd4729213 (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
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'
                    }
                }
            
            }
        }
    }
}