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 διαγραφές
15
Jenkinsfile
εξωτερικό
15
Jenkinsfile
εξωτερικό
|
@ -34,31 +34,33 @@ spec:
|
|||
stages {
|
||||
stage('Grab Code') {
|
||||
steps {
|
||||
container('hugo')
|
||||
checkout scm
|
||||
}
|
||||
}
|
||||
|
||||
stage('Test Hugo syntax') {
|
||||
steps {
|
||||
container('hugo')
|
||||
container('hugo') {
|
||||
sh 'hugo --quiet'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage('Build the Site') {
|
||||
steps {
|
||||
container('hugo')
|
||||
container('hugo') {
|
||||
sh 'hugo'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage('Create Package') {
|
||||
steps {
|
||||
container('hugo')
|
||||
container('hugo') {
|
||||
sh "tar zcvf site.tar.gz ./public/"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage('Upload Release') {
|
||||
environment {
|
||||
|
@ -68,10 +70,11 @@ spec:
|
|||
}
|
||||
|
||||
steps {
|
||||
container('tea')
|
||||
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'
|
||||
sh "tea r create -t ${BUILD_TAG} --tag ${BUILD_NUMBER} -a site.tar.gz"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Φόρτωση…
Προσθήκη πίνακα
Προσθήκη υπερσυνδέσμου
Παράθεση σε νέο ζήτημα