forked from poanetwork/poa-faucet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
28 lines (27 loc) · 848 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
pipeline {
agent any
tools { nodejs "node9.4" }
stages {
stage('Build') {
steps {
echo 'build step'
sh 'npm install'
}
}
stage('Deploy') {
steps {
sshPublisher(
publishers: [sshPublisherDesc(
configName: 'aletheia-infrastructure',
verbose: true,
transfers: [ sshTransfer (
sourceFiles: '**/*.*',
remoteDirectory: '/var/www/nodejs-testnet-faucet/faucet',
execCommand: 'sudo /var/www/nodejs-testnet-faucet/restart-faucet.sh'
)]
)]
)
}
}
}
}