diff --git a/Jenkinsfile b/Jenkinsfile index 4380b50..73deb60 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,6 +1,14 @@ pipeline { agent any stages { + stage('Debug') { + steps { + script { + def allJobs = Jenkins.instance.getAllItems(Job.class).collect { it.name } + echo "Available projects: ${allJobs}" + } + } + } stage('Retrieve artifacts') { steps { copyArtifacts(projectName: 'some-project', selector: lastSuccessful()) // Zakładamy pobranie z ostatniego udanego builda