Update Jenkinsfile
Some checks failed
jenkins_organization/another-project/pipeline/head There was a failure building this commit

This commit is contained in:
jenkins 2024-08-24 08:09:17 +00:00
parent 512b471138
commit 3ebf156fe6

8
Jenkinsfile vendored
View File

@ -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