update Jenkinsfile
This commit is contained in:
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
@@ -4,6 +4,15 @@ pipeline {
|
||||
DEPLOY_PATH = '/var/www/codejava.tech'
|
||||
}
|
||||
stages {
|
||||
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
|
||||
'''
|
||||
}
|
||||
}
|
||||
stage('Build') {
|
||||
steps {
|
||||
sh 'hugo --minify'
|
||||
|
||||
Reference in New Issue
Block a user