test
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
a801aaa33c
commit
012ff49d87
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
@ -26,16 +26,19 @@ pipeline {
|
||||
branch 'main'
|
||||
}
|
||||
steps {
|
||||
dir ('build-dir') {
|
||||
sh 'pwd'
|
||||
sh 'npm clean-install'
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Compile Adblock List') {
|
||||
when {
|
||||
beforeAgent true;
|
||||
branch 'main'
|
||||
}
|
||||
steps {
|
||||
dir ('build-dir') {
|
||||
sh '''
|
||||
mkdir -p out
|
||||
npm run compile:test
|
||||
@ -44,12 +47,14 @@ pipeline {
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('git push') {
|
||||
when {
|
||||
beforeAgent true;
|
||||
branch 'main'
|
||||
}
|
||||
steps {
|
||||
dir ('build-dir') {
|
||||
withCredentials([
|
||||
gitUsernamePassword(credentialsId: 'gitea-jenkins-user-token')
|
||||
]) {
|
||||
@ -61,6 +66,7 @@ pipeline {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
post {
|
||||
always {
|
||||
deleteDir()
|
||||
|
Reference in New Issue
Block a user