forked from vmangos/core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
41 lines (41 loc) · 1.09 KB
/
Jenkinsfile
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
34
35
36
37
38
39
40
41
pipeline {
agent any
options {
skipStagesAfterUnstable()
}
stages {
stage('Clone repository') {
steps {
script {
checkout scm
}
}
}
stage('Build') {
steps {
script {
def app = docker.build("registry.benjaminmnoer.dk/vmangos")
}
}
}
stage('Test') {
steps {
echo 'Empty'
}
}
stage('Publish image') {
steps {
script {
docker.withRegistry('https://registry.benjaminmnoer.dk', 'registry.benjaminmnoer.dk-credentials') {
def image = docker.image("registry.benjaminmnoer.dk/vmangos")
if (env.BRANCH_NAME == 'master') {
image.push("latest")
} else {
image.push(env.BRANCH_NAME)
}
}
}
}
}
}
}