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

Version Path
autoproj-jenkins-0.2.2 lib/autoproj/jenkins/templates/handle-downstream.pipeline.erb
autoproj-jenkins-0.2.1 lib/autoproj/jenkins/templates/handle-downstream.pipeline.erb
autoproj-jenkins-0.2.0 lib/autoproj/jenkins/templates/handle-downstream.pipeline.erb
autoproj-jenkins-0.1.0 lib/autoproj/jenkins/templates/handle-downstream.pipeline.erb