Try Jenkinsfile
Some checks failed
andreas-personal/AndysAdguardHomeBlockList/pipeline/head There was a failure building this commit
Some checks failed
andreas-personal/AndysAdguardHomeBlockList/pipeline/head There was a failure building this commit
This commit is contained in:
parent
11c4a5340c
commit
a3655a8ee4
42
Jenkinsfile
vendored
Normal file
42
Jenkinsfile
vendored
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
#!groovy
|
||||||
|
|
||||||
|
pipeline {
|
||||||
|
agent none
|
||||||
|
|
||||||
|
stages {
|
||||||
|
stage('Compile List and Push to Gitea') {
|
||||||
|
when {
|
||||||
|
beforeAgent true;
|
||||||
|
branch 'main'
|
||||||
|
}
|
||||||
|
agent {
|
||||||
|
label 'linux'
|
||||||
|
}
|
||||||
|
stages {
|
||||||
|
stage('NPM Install') {
|
||||||
|
steps {
|
||||||
|
sh 'npm clean-install'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Compile Adblock List') {
|
||||||
|
steps {
|
||||||
|
sh 'npm run compile'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('git push') {
|
||||||
|
steps {
|
||||||
|
withCredentials([
|
||||||
|
gitUsernamePassword(credentialsId: 'gitea-jenkins-user-token')
|
||||||
|
]) {
|
||||||
|
sh '''
|
||||||
|
git add .
|
||||||
|
git commit -m "Update Compiled Adblock List"
|
||||||
|
git push
|
||||||
|
'''
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -139,6 +139,11 @@
|
|||||||
"name": "NoTrack Malware Blocklist",
|
"name": "NoTrack Malware Blocklist",
|
||||||
"source": "https://quidsup.net/notrack/blocklist.php?download=malwaredomains",
|
"source": "https://quidsup.net/notrack/blocklist.php?download=malwaredomains",
|
||||||
"type": "adblock"
|
"type": "adblock"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Fix Functionality",
|
||||||
|
"source": "src/fix-functionality.txt",
|
||||||
|
"type": "adblock"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"transformations": [
|
"transformations": [
|
||||||
|
2
src/fix-functionality.txt
Normal file
2
src/fix-functionality.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# Allow Bring List
|
||||||
|
@@||api.getbring.com^
|
Reference in New Issue
Block a user