update Jenkinsfile

This commit is contained in:
2026-02-18 11:34:43 +03:00
parent d8ce8718be
commit 49727e356e

17
Jenkinsfile vendored
View File

@@ -4,9 +4,9 @@ pipeline {
DEPLOY_PATH = '/var/www/codejava.tech' DEPLOY_PATH = '/var/www/codejava.tech'
} }
stages { stages {
stage('Install Dependencies') { stage('Install Dependencies') {
steps { steps {
sh ''' sh '''
# Install Hugo # Install Hugo
curl -sL https://github.com/gohugoio/hugo/releases/download/v0.146.0/hugo_extended_0.146.0_linux-amd64.tar.gz \ 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 -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 curl -sL https://go.dev/dl/go1.24.1.linux-amd64.tar.gz -o go.tar.gz
tar -xzf go.tar.gz tar -xzf go.tar.gz
# Install rsync # Install rsync via static binary from pkgs.tailscale.com
curl -sL https://github.com/raboof/rsync-static/releases/download/v3.4.1/rsync-amd64 \ 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 -o rsync
chmod +x rsync chmod +x rsync
file ./rsync
''' '''
} }
} }
stage('Build') { stage('Build') {
steps { steps {
sh 'PATH=$PATH:$WORKSPACE/go/bin ./hugo --minify' sh 'PATH=$PATH:$WORKSPACE/go/bin ./hugo --minify'