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