update Jenkinsfile
This commit is contained in:
24
Jenkinsfile
vendored
24
Jenkinsfile
vendored
@@ -6,17 +6,21 @@ pipeline {
|
|||||||
stages {
|
stages {
|
||||||
stage('Install Dependencies') {
|
stage('Install Dependencies') {
|
||||||
steps {
|
steps {
|
||||||
sh '''
|
sh '''
|
||||||
apt-get update -qq && apt-get install -y -qq rsync
|
# 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
|
tar -xzf hugo.tar.gz hugo
|
||||||
tar -xzf hugo.tar.gz hugo
|
|
||||||
|
|
||||||
# Install Go
|
# Install Go
|
||||||
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
|
||||||
|
curl -sL https://github.com/raboof/rsync-static/releases/download/v3.4.1/rsync-amd64 \
|
||||||
|
-o rsync
|
||||||
|
chmod +x rsync
|
||||||
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
|
|||||||
Reference in New Issue
Block a user