Sha256: 46d415e51c3e53130cea105d37a06ee98bde95040dc78bed1e58ec4e860ae0ff

Contents?: true

Size: 439 Bytes

Versions: 6

Compression:

Stored size: 439 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 %> <%= arg_credentials %> <%= Hash[url: vcs.url].merge(vcs.options).map { |k, v| "#{k}: '#{v}'" }.join(", ") %>
    <% if patch %>
    sh "${autoproj} patch ."
    <% end %>
}

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
autoproj-jenkins-0.3.1 lib/autoproj/jenkins/templates/import-git.pipeline.erb
autoproj-jenkins-0.3.0 lib/autoproj/jenkins/templates/import-git.pipeline.erb
autoproj-jenkins-0.2.2 lib/autoproj/jenkins/templates/import-git.pipeline.erb
autoproj-jenkins-0.2.1 lib/autoproj/jenkins/templates/import-git.pipeline.erb
autoproj-jenkins-0.2.0 lib/autoproj/jenkins/templates/import-git.pipeline.erb
autoproj-jenkins-0.1.0 lib/autoproj/jenkins/templates/import-git.pipeline.erb