Pipeline support - fix
Ορισμένοι έλεγχοι ανέφεραν σφάλματα
Hellug/www/pipeline/head Something is wrong with the build of this commit

Αυτό το commit περιλαμβάνεται σε:
infl00p 2021-09-14 16:08:32 +03:00
γονέας 78d12b0d12
commit 7dca2b7d4d

10
Jenkinsfile εξωτερικό

@ -33,35 +33,34 @@ spec:
stages { stages {
stage('Grab Code') { stage('Grab Code') {
container('hugo')
steps { steps {
container('hugo')
checkout scm checkout scm
} }
} }
stage('Test Hugo syntax') { stage('Test Hugo syntax') {
container('hugo')
steps { steps {
container('hugo')
sh 'hugo --quiet' sh 'hugo --quiet'
} }
} }
stage('Build the Site') { stage('Build the Site') {
container('hugo')
steps { steps {
container('hugo')
sh 'hugo' sh 'hugo'
} }
} }
stage('Create Package') { stage('Create Package') {
container('hugo')
steps { steps {
container('hugo')
sh "tar zcvf site.tar.gz ./public/" sh "tar zcvf site.tar.gz ./public/"
} }
} }
stage('Upload Release') { stage('Upload Release') {
container('tea')
environment { environment {
GITEA_LOGIN = 'js-hellug-bot' GITEA_LOGIN = 'js-hellug-bot'
GITEA_SERVER_URL = 'https://dev.hellug.gr' GITEA_SERVER_URL = 'https://dev.hellug.gr'
@ -69,6 +68,7 @@ spec:
} }
steps { steps {
container('tea')
sh 'go get code.gitea.io/tea && go install code.gitea.io/tea' sh 'go get code.gitea.io/tea && go install code.gitea.io/tea'
sh "tea login add -n ${GITEA_LOGIN}" sh "tea login add -n ${GITEA_LOGIN}"
sh 'tea r create -t ${BUILD_TAG} --tag ${BUILD_NUMBER} -a site.tar.gz' sh 'tea r create -t ${BUILD_TAG} --tag ${BUILD_NUMBER} -a site.tar.gz'