This repository has been archived on 2024-08-07. You can view files and clone it, but cannot push or open issues or pull requests.
Andreas Fahrecker bc635e599c
All checks were successful
andreas-personal/AndysAdguardHomeBlockList/pipeline/head This commit looks good
Jenkins Test 3
2024-04-10 01:46:27 +02:00

47 lines
1.1 KiB
Groovy

#!groovy
pipeline {
agent {
label 'linux'
}
stages {
stage('NPM Install') {
when {
beforeAgent true;
branch 'main'
}
steps {
sh 'npm clean-install'
}
}
stage('Compile Adblock List') {
when {
beforeAgent true;
branch 'main'
}
steps {
// sh 'npm run compile'
sh 'echo "Compiling Adblock List...">test.txt'
}
}
stage('git push') {
when {
beforeAgent true;
branch 'main'
}
steps {
withCredentials([
gitUsernamePassword(credentialsId: 'gitea-jenkins-user-token')
]) {
sh '''
git checkout main
git add .
git commit -m "Update Compiled Adblock List"
git push
'''
}
}
}
}
}