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') {