diff --git a/Jenkinsfile b/Jenkinsfile index 42c6708..86e3081 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -41,8 +41,8 @@ pipeline { stage('Post-Build Check') { steps { script { - // Przeszukaj logi builda pod kątem podejrzanych URL-i - def logs = currentBuild.rawBuild.getLog(1000).join('\n') + // Przeczytaj logi z pliku build.log + def logs = readFile('build.log') if (logs.contains('https://registry.npmjs.org')) { error("Błąd: W logach builda wykryto dostęp do zewnętrznego repozytorium npm!") } else {