Skip to content

Commit

Permalink
🔧 先删除docker-compose-template,再add
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonchen committed Jun 22, 2020
1 parent afd0efc commit f4473ad
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,11 @@ pipeline {
sh "sed -i 's/#{BOATHOUSE_ORG_NAME}#/${BOATHOUSE_ORG_NAME}/g' src/docker-compose-template.yaml"
script {
server = getHost()
/*
echo "copy docker-compose file to remote server...."

echo "copy docker-compose file to remote server...."
sshRemove remote: server, path: "./docker-compose-template.yaml" // 先删除
sshPut remote: server, from: 'src/docker-compose-template.yaml', into: '.'
sshCommand remote: server, command: "mkdir -p src/product-service/api/scripts"
/* sshCommand remote: server, command: "mkdir -p src/product-service/api/scripts"
sshPut remote: server, from: 'src/product-service/api/scripts/init.sql', into: './src/product-service/api/scripts/init.sql'
*/

Expand Down

0 comments on commit f4473ad

Please sign in to comment.