Pipeline support - fix
Κάποιοι έλεγχοι απέτυχαν
Hellug/www/pipeline/head There was a failure building this commit
Κάποιοι έλεγχοι απέτυχαν
Hellug/www/pipeline/head There was a failure building this commit
Αυτό το commit περιλαμβάνεται σε:
γονέας
d95a8ba6ce
commit
8857e6cee4
1 αρχεία άλλαξαν με 14 προσθήκες και 11 διαγραφές
25
Jenkinsfile
εξωτερικό
25
Jenkinsfile
εξωτερικό
|
@ -34,29 +34,31 @@ spec:
|
||||||
stages {
|
stages {
|
||||||
stage('Grab Code') {
|
stage('Grab Code') {
|
||||||
steps {
|
steps {
|
||||||
container('hugo')
|
|
||||||
checkout scm
|
checkout scm
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Test Hugo syntax') {
|
stage('Test Hugo syntax') {
|
||||||
steps {
|
steps {
|
||||||
container('hugo')
|
container('hugo') {
|
||||||
sh 'hugo --quiet'
|
sh 'hugo --quiet'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Build the Site') {
|
stage('Build the Site') {
|
||||||
steps {
|
steps {
|
||||||
container('hugo')
|
container('hugo') {
|
||||||
sh 'hugo'
|
sh 'hugo'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Create Package') {
|
stage('Create Package') {
|
||||||
steps {
|
steps {
|
||||||
container('hugo')
|
container('hugo') {
|
||||||
sh "tar zcvf site.tar.gz ./public/"
|
sh "tar zcvf site.tar.gz ./public/"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -68,10 +70,11 @@ spec:
|
||||||
}
|
}
|
||||||
|
|
||||||
steps {
|
steps {
|
||||||
container('tea')
|
container('tea') {
|
||||||
sh 'apk update && apk add tea'
|
sh 'apk update && apk add 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"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Φόρτωση…
Προσθήκη πίνακα
Προσθήκη υπερσυνδέσμου
Παράθεση σε νέο ζήτημα