test
All checks were successful
andreas-personal/AndysAdguardHomeBlockList/pipeline/head This commit looks good
All checks were successful
andreas-personal/AndysAdguardHomeBlockList/pipeline/head This commit looks good
This commit is contained in:
parent
e5dc72f199
commit
78867b7ef3
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@ -8,11 +8,13 @@ pipeline {
|
||||
stage('Checkout') {
|
||||
when {
|
||||
beforeAgent true;
|
||||
allOf {
|
||||
branch 'main'
|
||||
not {
|
||||
changeset 'out/andysadguardhomeblocklist.txt'
|
||||
}
|
||||
}
|
||||
}
|
||||
steps {
|
||||
sh 'git checkout main'
|
||||
}
|
||||
@ -20,11 +22,13 @@ pipeline {
|
||||
stage('NPM Install') {
|
||||
when {
|
||||
beforeAgent true;
|
||||
allOf {
|
||||
branch 'main'
|
||||
not {
|
||||
changeset 'out/andysadguardhomeblocklist.txt'
|
||||
}
|
||||
}
|
||||
}
|
||||
steps {
|
||||
sh 'npm clean-install'
|
||||
}
|
||||
@ -32,11 +36,13 @@ pipeline {
|
||||
stage('Compile Adblock List') {
|
||||
when {
|
||||
beforeAgent true;
|
||||
allOf {
|
||||
branch 'main'
|
||||
not {
|
||||
changeset 'out/andysadguardhomeblocklist.txt'
|
||||
}
|
||||
}
|
||||
}
|
||||
steps {
|
||||
sh 'mkdir -p out'
|
||||
sh 'rm out/andysadguardhomeblocklist.txt'
|
||||
@ -49,11 +55,13 @@ pipeline {
|
||||
stage('git push') {
|
||||
when {
|
||||
beforeAgent true;
|
||||
allOf {
|
||||
branch 'main'
|
||||
not {
|
||||
changeset 'out/andysadguardhomeblocklist.txt'
|
||||
}
|
||||
}
|
||||
}
|
||||
steps {
|
||||
withCredentials([
|
||||
gitUsernamePassword(credentialsId: 'gitea-jenkins-user-token')
|
||||
|
Reference in New Issue
Block a user