Sha256: 41ea319ec00e548755720a22fa694db0cf815b5ea21189304d1c0d225c60e113

Contents?: true

Size: 458 Bytes

Versions: 13

Compression:

Stored size: 458 Bytes

Contents

dir('<%= package_dir %>') {
    <% if patch %>
    if (fileExists('.git')) {
        sh "${autoproj} unpatch ."
    }
    <% end %>

    <% if credentials
           arg_credentials = "credentialsId: '#{credentials.jenkins_id}', "
       end %>
    <%= vcs.type %> poll: <%= poll %>, <%= arg_credentials %> <%= Hash[url: vcs.url].merge(vcs.options).map { |k, v| "#{k}: '#{v}'" }.join(", ") %>
    <% if patch %>
    sh "${autoproj} patch ."
    <% end %>
}

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
autoproj-jenkins-0.3.15 lib/autoproj/jenkins/templates/import-git.pipeline.erb
autoproj-jenkins-0.3.14 lib/autoproj/jenkins/templates/import-git.pipeline.erb
autoproj-jenkins-0.3.13 lib/autoproj/jenkins/templates/import-git.pipeline.erb
autoproj-jenkins-0.3.12 lib/autoproj/jenkins/templates/import-git.pipeline.erb
autoproj-jenkins-0.3.11 lib/autoproj/jenkins/templates/import-git.pipeline.erb
autoproj-jenkins-0.3.10 lib/autoproj/jenkins/templates/import-git.pipeline.erb
autoproj-jenkins-0.3.9 lib/autoproj/jenkins/templates/import-git.pipeline.erb
autoproj-jenkins-0.3.8 lib/autoproj/jenkins/templates/import-git.pipeline.erb
autoproj-jenkins-0.3.7 lib/autoproj/jenkins/templates/import-git.pipeline.erb
autoproj-jenkins-0.3.6 lib/autoproj/jenkins/templates/import-git.pipeline.erb
autoproj-jenkins-0.3.5 lib/autoproj/jenkins/templates/import-git.pipeline.erb
autoproj-jenkins-0.3.4 lib/autoproj/jenkins/templates/import-git.pipeline.erb
autoproj-jenkins-0.3.3 lib/autoproj/jenkins/templates/import-git.pipeline.erb