forked from Valuya/docker-volume-curlftpfs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
29 lines (29 loc) · 797 Bytes
/
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
pipeline {
agent any
parameters {
string(name:'PLUGIN_NAME', defaultValue: 'sephrat/curlftpfs', description: '')
string(name:'PLUGIN_TAG', defaultValue:'next', description: '')
}
options {
disableConcurrentBuilds()
buildDiscarder(logRotator(numToKeepStr: '10'))
}
environment {
PLUGIN_NAME="${params.PLUGIN_NAME}"
PLUGIN_TAG="${params.PLUGIN_TAG}"
}
stages {
stage ('Build') {
steps {
sh '''
sudo make all PLUGIN_NAME=${PLUGIN_NAME} PLUGIN_TAG=${PLUGIN_TAG}
'''
}
}
stage ('Publish') {
steps {
sh 'sudo make push PLUGIN_NAME=${PLUGIN_NAME} PLUGIN_TAG=${PLUGIN_TAG}'
}
}
}
}