properties([
parameters([
gitParameter(branch: ‘’,
branchFilter: ‘origin/(.)’,
defaultValue: ‘master’,
description: ‘’,
name: ‘BRANCH’,
quickFilterEnabled: false,
selectedValue: ‘NONE’,
sortMode: ‘NONE’,
tagFilter: '’,
type: ‘PT_BRANCH’),
])
])
def pullCode(Path, Proj,GitRemote) {
stage(‘Code pull’) {
ws("${Path}/${Proj}") {
git branch: “${params.BRANCH}”, url: “${GitRemote}”
}
}
}
def createBranchName() {
addShortText(params.BRANCH)
}
def prepareDockerSources(Path, Project) {
stage(‘Yarn Install’) {
withDockerContainer(‘node:8.16.0-stretch’) {
sh “cd ${Path}/${Project} && cd track-client && yarn install && yarn build && cp -r build ${Path}”
}
}
}
def buildDocker(Path) {