Jenkins Test 3
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
a0eb86be7b
commit
bc635e599c
16
Jenkinsfile
vendored
16
Jenkinsfile
vendored
@ -5,22 +5,30 @@ pipeline {
|
||||
label 'linux'
|
||||
}
|
||||
stages {
|
||||
when {
|
||||
beforeAgent true;
|
||||
branch 'main'
|
||||
}
|
||||
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')
|
||||
|
Reference in New Issue
Block a user