diff --git a/theforeman.org/pipelines/lib/packaging.groovy b/theforeman.org/pipelines/lib/packaging.groovy index c78cd560..56a94f40 100644 --- a/theforeman.org/pipelines/lib/packaging.groovy +++ b/theforeman.org/pipelines/lib/packaging.groovy @@ -259,7 +259,7 @@ def setup_sources_core(project, os, version, repoowner, pull_request = false) { def build_vars = read_build_vars(project) if (version == 'nightly') { if (build_vars['source_location']) { - copyArtifacts(projectName: build_vars['source_location'], excludes: 'package-lock.json', flatten: true) + copyArtifacts(projectName: build_vars['source_location'], excludes: 'package-lock.json', flatten: true, selector: upstream(fallbackToLastSuccessful: true)) sh(script: "mv *.tar.bz2 ${project}_${package_version}.orig.tar.bz2", label: "rename tarball") last_commit = readFile('commit').trim() } else { diff --git a/theforeman.org/pipelines/release/foreman-x-develop-release.groovy b/theforeman.org/pipelines/release/foreman-x-develop-release.groovy index cecf568b..6b4aa3bb 100644 --- a/theforeman.org/pipelines/release/foreman-x-develop-release.groovy +++ b/theforeman.org/pipelines/release/foreman-x-develop-release.groovy @@ -31,7 +31,7 @@ pipeline { steps { script { artifact_path = "${pwd()}/artifacts" - copyArtifacts(projectName: source_project_name, target: artifact_path) + copyArtifacts(projectName: source_project_name, target: artifact_path, selector: upstream(fallbackToLastSuccessful: true)) commit_hash = readFile("${artifact_path}/commit") } } @@ -77,7 +77,7 @@ pipeline { steps { script { artifact_path = "${pwd()}/artifacts" - copyArtifacts(projectName: source_project_name, target: artifact_path) + copyArtifacts(projectName: source_project_name, target: artifact_path, selector: upstream(fallbackToLastSuccessful: true)) commit_hash = readFile("${artifact_path}/commit") } }