diff --git a/Jenkinsfile b/Jenkinsfile index 1465c5b..4738e9c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,14 +11,15 @@ pipeline { branch 'main' } steps { - dir ('build-dir') { - checkout poll: false, scm: scmGit([ - branches: [[name: 'main']], - userRemoteConfigs: [[credentialsId: 'gitea-jenkins-user-token', url: 'https://gitea.fahrecker.com/andreas-personal/AndysAdguardHomeBlocklist.git']] - ]) - sh 'git checkout main' - sh 'pwd' - } + // dir ('build-dir') { + // checkout poll: false, scm: scmGit([ + // branches: [[name: 'main']], + // userRemoteConfigs: [[credentialsId: 'gitea-jenkins-user-token', url: 'https://gitea.fahrecker.com/andreas-personal/AndysAdguardHomeBlocklist.git']] + // ]) + // sh 'git checkout main' + // sh 'pwd' + // } + sh 'git checkout main' } } stage('NPM Install') { @@ -27,10 +28,10 @@ pipeline { branch 'main' } steps { - dir ('build-dir') { + // dir ('build-dir') { sh 'pwd' sh 'npm clean-install' - } + // } } } stage('Compile Adblock List') { @@ -39,14 +40,14 @@ pipeline { branch 'main' } steps { - dir ('build-dir') { + // dir ('build-dir') { sh ''' mkdir -p out npm run compile:test git add out/andysadguardhomeblocklist.txt git commit -m "Update Compiled Adblock List" ''' - } + // } } } stage('git push') { @@ -55,7 +56,7 @@ pipeline { branch 'main' } steps { - dir ('build-dir') { + // dir ('build-dir') { withCredentials([ gitUsernamePassword(credentialsId: 'gitea-jenkins-user-token') ]) { @@ -64,7 +65,7 @@ pipeline { git push ''' } - } + // } } } }