update Jenkinsfile

This commit is contained in:
2026-02-18 11:38:50 +03:00
parent 4dbb48cb00
commit 6faf05b327

25
Jenkinsfile vendored
View File

@@ -4,18 +4,15 @@ pipeline {
DEPLOY_PATH = '/var/www/codejava.tech'
}
stages {
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
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('Install Dependencies') {
steps {
sh '''
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
tar -xzf hugo.tar.gz hugo
curl -sL https://go.dev/dl/go1.24.1.linux-amd64.tar.gz -o go.tar.gz
tar -xzf go.tar.gz
'''
}
}
stage('Build') {
@@ -24,9 +21,9 @@ pipeline {
}
}
stage('Deploy') {
steps:
steps {
sh '''
scp -o StrictHostKeyChecking=no -r public/* root@172.17.0.1:${DEPLOY_PATH}/
scp -o StrictHostKeyChecking=no -r public/* root@172.17.0.1:${DEPLOY_PATH}/
'''
}
}