Update Jenkinsfile
Some checks failed
jenkins_organization/another-project/pipeline/head There was a failure building this commit
Some checks failed
jenkins_organization/another-project/pipeline/head There was a failure building this commit
This commit is contained in:
parent
512b471138
commit
3ebf156fe6
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user