update Jenkinsfile
This commit is contained in:
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@@ -7,15 +7,15 @@ pipeline {
|
||||
stage('Install Hugo') {
|
||||
steps {
|
||||
sh '''
|
||||
wget -q https://github.com/gohugoio/hugo/releases/download/v0.145.0/hugo_extended_0.145.0_linux-amd64.tar.gz
|
||||
tar -xzf hugo_extended_0.145.0_linux-amd64.tar.gz
|
||||
mv hugo /usr/local/bin/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
|
||||
'''
|
||||
}
|
||||
}
|
||||
stage('Build') {
|
||||
steps {
|
||||
sh 'hugo --minify'
|
||||
sh './hugo --minify'
|
||||
}
|
||||
}
|
||||
stage('Deploy') {
|
||||
|
||||
Reference in New Issue
Block a user