From 66f4b31d4bc0bb442d26526aa6de1a9ea50cef86 Mon Sep 17 00:00:00 2001 From: me Date: Wed, 18 Feb 2026 11:27:54 +0300 Subject: [PATCH] update Jenkinsfile --- Jenkinsfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 10aafee..0ab93af 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,18 +4,23 @@ pipeline { DEPLOY_PATH = '/var/www/codejava.tech' } stages { - stage('Install Hugo') { + stage('Install Dependencies') { steps { sh ''' + # Install Hugo curl -sL https://github.com/gohugoio/hugo/releases/download/v0.145.0/hugo_extended_0.145.0_linux-amd64.tar.gz \ -o hugo.tar.gz tar -xzf hugo.tar.gz hugo + + # Install Go + curl -sL https://go.dev/dl/go1.24.1.linux-amd64.tar.gz -o go.tar.gz + tar -xzf go.tar.gz ''' } } stage('Build') { steps { - sh './hugo --minify' + sh 'PATH=$PATH:$WORKSPACE/go/bin ./hugo --minify' } } stage('Deploy') {