From 49727e356ec592168b1bae60f89f4521c36f47f6 Mon Sep 17 00:00:00 2001 From: me Date: Wed, 18 Feb 2026 11:34:43 +0300 Subject: [PATCH] update Jenkinsfile --- Jenkinsfile | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 0b136db..bc9553e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,9 +4,9 @@ pipeline { DEPLOY_PATH = '/var/www/codejava.tech' } stages { - stage('Install Dependencies') { - steps { - sh ''' + stage('Install Dependencies') { + steps { + sh ''' # Install Hugo curl -sL https://github.com/gohugoio/hugo/releases/download/v0.146.0/hugo_extended_0.146.0_linux-amd64.tar.gz \ -o hugo.tar.gz @@ -16,13 +16,16 @@ pipeline { curl -sL https://go.dev/dl/go1.24.1.linux-amd64.tar.gz -o go.tar.gz tar -xzf go.tar.gz - # Install rsync - curl -sL https://github.com/raboof/rsync-static/releases/download/v3.4.1/rsync-amd64 \ + # Install rsync via static binary from pkgs.tailscale.com + curl -sL https://pkgs.tailscale.com/static/rsync/rsync-3.2.7-linux-amd64 \ + -o rsync || \ + curl -sL https://github.com/JBBgameich/rsync-static/releases/download/continuous/rsync-x86_64 \ -o rsync chmod +x rsync + file ./rsync ''' - } - } + } +} stage('Build') { steps { sh 'PATH=$PATH:$WORKSPACE/go/bin ./hugo --minify'