Updated build system.

This commit is contained in:
Bokuan Li
2026-01-05 20:11:28 -05:00
parent abbed78434
commit a807369ab0
12 changed files with 438 additions and 47 deletions

11
upload.sh Normal file
View File

@@ -0,0 +1,11 @@
ssh gerby@178.156.199.217 "rm /home/gerby/gerby/document.tex"
ssh gerby@178.156.199.217 "rm /home/gerby/gerby/preamble.sty"
ssh gerby@178.156.199.217 "rm -r /home/gerby/gerby/src"
rsync -avz preamble.sty document.tex src gerby@178.156.199.217:/home/gerby/gerby
USER="jerrylicious"
API_TOKEN="1199813d21c0022313bd9e7c8fa98d47b0"
BUILD_TOKEN="AAAAC3NzaC1lZDI1NTE5AAAAIBlYjedLVBgIxxutWbnFm0bgs87jswTfhgOfGaPzzqTZ"
CRUMB=$(curl -s "https://$USER:$API_TOKEN@jenkins.jerrylicious.me/crumbIssuer/api/xml?xpath=concat(//crumbRequestField,\":\" ,//crumb)")
curl -X POST -H "$CRUMB" "https://$USER:$API_TOKEN@jenkins.jerrylicious.me/job/Gerby/job/Build%20Project/buildWithParameters?token=$BUILD_TOKEN&Redo%20Tags=false"