Jenkins Test 3
All checks were successful
andreas-personal/AndysAdguardHomeBlockList/pipeline/head This commit looks good

This commit is contained in:
Andreas Fahrecker 2024-04-10 01:46:27 +02:00
parent a0eb86be7b
commit bc635e599c

10
Jenkinsfile vendored
View File

@ -5,22 +5,30 @@ pipeline {
label 'linux' label 'linux'
} }
stages { stages {
stage('NPM Install') {
when { when {
beforeAgent true; beforeAgent true;
branch 'main' branch 'main'
} }
stage('NPM Install') {
steps { steps {
sh 'npm clean-install' sh 'npm clean-install'
} }
} }
stage('Compile Adblock List') { stage('Compile Adblock List') {
when {
beforeAgent true;
branch 'main'
}
steps { steps {
// sh 'npm run compile' // sh 'npm run compile'
sh 'echo "Compiling Adblock List...">test.txt' sh 'echo "Compiling Adblock List...">test.txt'
} }
} }
stage('git push') { stage('git push') {
when {
beforeAgent true;
branch 'main'
}
steps { steps {
withCredentials([ withCredentials([
gitUsernamePassword(credentialsId: 'gitea-jenkins-user-token') gitUsernamePassword(credentialsId: 'gitea-jenkins-user-token')