Sha256: a1c64731b4e2606831eed2be901cf240ad31d48bf8f766d95d5615492cd03d4f
Contents?: true
Size: 677 Bytes
Versions: 4
Compression:
Stored size: 677 Bytes
Contents
def downstreamDir = "artifacts/downstream" def targetArtifactPath = "${fullWorkspaceDir}/${downstreamDir}/<%= job_name %>-prefix.zip" dir(downstreamDir) { deleteDir() } dir("${downstreamDir}/<%= job_name %>") { sh "rsync '${jobPackagePrefix}/' './' -a --delete" sh "${autoproj} jenkins relativize ./ '${fullWorkspaceDir}' '@WORKSPACE_ROOT@'" zip zipFile: targetArtifactPath, glob: "<%= artifact_glob %>" } dir(downstreamDir) { archiveArtifacts artifacts: "*.zip" deleteDir() } if (triggeredByUser) { // Defined in handle-upstream.pipeline.erb <% downstream_jobs.each_key do |job_name| %> build job: "<%= job_name %>", wait: false <% end %> }
Version data entries
4 entries across 4 versions & 1 rubygems