This repository has been archived by the owner on Dec 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathJenkinsfile
48 lines (44 loc) · 1.53 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
42
43
44
45
46
47
48
pipeline {
agent any
stages {
stage('Remote Deploy Repository') {
steps {
dir("frontend") {
sshPublisher(publishers: [
sshPublisherDesc(configName: "${SSH_SERVER}", transfers: [
sshTransfer(
cleanRemote: true, excludes: '', execCommand: '''
cd ~/frontend
chmod +x ./build.sh
./build.sh USE_LOG_FILE
chmod +x ./deploy.sh
./deploy.sh USE_LOG_FILE
''',
execTimeout: 300000, flatten: false,
makeEmptyDirs: true, noDefaultExcludes: false, patternSeparator: '[, ]+',
remoteDirectory: 'frontend', remoteDirectorySDF: false, removePrefix: '', sourceFiles: '**/*'
)
],
usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false)
])
}
}
}
}
post {
always {
discordSend(
description: currentBuild.result,
enableArtifactsList: false,
footer: '',
image: '',
link: '',
result: currentBuild.result,
scmWebUrl: '',
thumbnail: '',
title: env.JOB_BASE_NAME,
webhookURL: "${DISCORD_WEBHOOK_1}"
)
}
}
}