Skip to content

Commit

Permalink
Merge pull request #487 from mbiarnes/serverNameChange
Browse files Browse the repository at this point in the history
changed server name for publishing website
  • Loading branch information
mbiarnes authored Apr 6, 2022
2 parents 5b0f708 + d00b2b7 commit d673120
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .ci/jenkins/Jenkinsfile.publish
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ pipeline {
}
}
}
stage('publish website to filemgmt.jboss.org') {
stage('publish website to filemgmt-prod-sync.jboss.org') {
steps {
dir("${REPO}") {
sshagent(["optaplanner-filemgmt"]) {
Expand Down
4 changes: 2 additions & 2 deletions build/rsync_website.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
# 2. create a optaplanner directory underneath $HOME/.ssh to store the needed keys ($HOME/.ssh/optaplanner)
# 3. copy known_hosts and id_rsa (the same as on Jenkins) to $HOME/.ssh/optaplanner
# Then you should use:
# rsync --dry-run -Pavqr -e "ssh -i $HOME/.ssh/optaplanner/id_rsa" --protocol=28 --delete-after target/website/* [email protected]:www_htdocs/optaplanner
# rsync --dry-run -Pavqr -e "ssh -p 2222 -i $HOME/.ssh/optaplanner/id_rsa" --protocol=28 --delete-after target/website/* optaplanner@filemgmt-prod-sync.jboss.org:www_htdocs/optaplanner
# the --dry-run is for testing so you can see if anything is missing. The files are not synced! If you want to execute a "real" rsync please remove --dry-run
#
#############################################################################################################################################################################

rsync -Pavqr --protocol=28 --delete-after optaplanner-website-assembly/target/website-complete/* [email protected]:www_htdocs/optaplanner
rsync -Pavqr -e 'ssh -p 2222' --protocol=28 --delete-after optaplanner-website-assembly/target/website-complete/* optaplanner@filemgmt-prod-sync.jboss.org:www_htdocs/optaplanner

0 comments on commit d673120

Please sign in to comment.