test
Some checks failed
andreas-personal/AndysAdguardHomeBlockList/pipeline/head There was a failure building this commit

This commit is contained in:
Andreas Fahrecker 2024-04-10 17:18:39 +02:00
parent a801aaa33c
commit 012ff49d87

6
Jenkinsfile vendored
View File

@ -26,16 +26,19 @@ pipeline {
branch 'main' branch 'main'
} }
steps { steps {
dir ('build-dir') {
sh 'pwd' sh 'pwd'
sh 'npm clean-install' sh 'npm clean-install'
} }
} }
}
stage('Compile Adblock List') { stage('Compile Adblock List') {
when { when {
beforeAgent true; beforeAgent true;
branch 'main' branch 'main'
} }
steps { steps {
dir ('build-dir') {
sh ''' sh '''
mkdir -p out mkdir -p out
npm run compile:test npm run compile:test
@ -44,12 +47,14 @@ pipeline {
''' '''
} }
} }
}
stage('git push') { stage('git push') {
when { when {
beforeAgent true; beforeAgent true;
branch 'main' branch 'main'
} }
steps { steps {
dir ('build-dir') {
withCredentials([ withCredentials([
gitUsernamePassword(credentialsId: 'gitea-jenkins-user-token') gitUsernamePassword(credentialsId: 'gitea-jenkins-user-token')
]) { ]) {
@ -61,6 +66,7 @@ pipeline {
} }
} }
} }
}
post { post {
always { always {
deleteDir() deleteDir()