Pipeline support - fix
Κάποιοι έλεγχοι απέτυχαν
Hellug/www/pipeline/head There was a failure building this commit

Αυτό το commit περιλαμβάνεται σε:
infl00p 2021-09-14 16:30:28 +03:00
γονέας d95a8ba6ce
commit 8857e6cee4

25
Jenkinsfile εξωτερικό

@ -34,29 +34,31 @@ spec:
stages {
stage('Grab Code') {
steps {
container('hugo')
checkout scm
}
}
stage('Test Hugo syntax') {
steps {
container('hugo')
sh 'hugo --quiet'
container('hugo') {
sh 'hugo --quiet'
}
}
}
stage('Build the Site') {
steps {
container('hugo')
sh 'hugo'
container('hugo') {
sh 'hugo'
}
}
}
stage('Create Package') {
steps {
container('hugo')
sh "tar zcvf site.tar.gz ./public/"
container('hugo') {
sh "tar zcvf site.tar.gz ./public/"
}
}
}
@ -68,10 +70,11 @@ spec:
}
steps {
container('tea')
sh 'apk update && apk add tea'
sh "tea login add -n ${GITEA_LOGIN}"
sh 'tea r create -t ${BUILD_TAG} --tag ${BUILD_NUMBER} -a site.tar.gz'
container('tea') {
sh 'apk update && apk add tea'
sh "tea login add -n ${GITEA_LOGIN}"
sh "tea r create -t ${BUILD_TAG} --tag ${BUILD_NUMBER} -a site.tar.gz"
}
}
}
}