Skip to content

Commit 9165d5f

Browse files
committed
Jenkinsfile: refactor destination and DESTINATION
1 parent b872526 commit 9165d5f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Jenkinsfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pipeline {
66
booleanParam(name: 'store', defaultValue: false, description: 'Store build')
77
booleanParam(name: 'release', defaultValue: false, description: 'Release build')
88
password(name: 'GH_TOKEN', defaultValue: '', description: 'Github user token. Note: don\'t use a password, will be logged to console on error.')
9-
choice(name: 'destination', description: 'Destination folder', choices: ['asterics-web-devlinux/docs', 'asterics-web-devwindows/docs', 'asterics-web-production/docs' ])
9+
choice(name: 'dest', description: 'Destination folder', choices: ['asterics-web-devlinux/docs', 'asterics-web-devwindows/docs', 'asterics-web-production/docs' ])
1010
choice(name: 'agent', description: 'Agent', choices: ['Linux', 'Win'])
1111
choice(name: 'image', description: 'Docker Image', choices: ['node:10', 'node:11'])
1212
gitParameter(name: 'BRANCH', branchFilter: 'origin.*?/(.*)', defaultValue: 'master', type: 'PT_BRANCH_TAG', useRepository: 'asterics-docs')
@@ -137,8 +137,8 @@ pipeline {
137137
'''
138138
script {
139139
def remote = [ name: 'studyathome', host: 'studyathome.technikum-wien.at', user: env.SERVER_USR, password: env.SERVER_PSW, allowAnyHosts: true ]
140-
sshRemove remote: remote, path: "/var/www/html/${params.destination}", failOnError: false
141-
sshPut remote: remote, from: 'build/docs', into: "/var/www/html/${params.destination.replace("/docs", "")}"
140+
sshRemove remote: remote, path: "/var/www/html/${params.dest}", failOnError: false
141+
sshPut remote: remote, from: 'build/docs', into: "/var/www/html/${params.dest.replace("/docs", "")}"
142142
}
143143
}
144144
}

0 commit comments

Comments
 (0)