Sha256: 960602307d1c535dc904a502efe6ef71fbb20d3355003511fa43e284b741411e

Contents?: true

Size: 1.14 KB

Versions: 2

Compression:

Stored size: 1.14 KB

Contents

env.HOME = fullWorkspaceDir
<% if autoproj_install_path %>
sh 'cp -f "<%= autoproj_install_path %>" ./autoproj_install'
<% else %>
sh 'wget -O autoproj_install https://raw.githubusercontent.com/rock-core/autoproj/master/bin/autoproj_install'
<% end %>
def gemfile = "<%= read_and_escape_file gemfile %>"
writeFile file: 'Gemfile', text: gemfile
def config = "<%= render_template('buildconf-config.yml', vcs: vcs, escape: true) %>"
writeFile file: 'seed.yml', text: config
dir('dev') {
    sh "ruby ../autoproj_install --skip-stage2 --seed-config=../seed.yml --gems-path=${env.JENKINS_HOME}/cache/gems --gemfile=../Gemfile"
    <%= render_template("import-#{vcs.type}.pipeline",
                        patch: false,
                        allow_unused: true,
                        package_dir: 'autoproj',
                        vcs: vcs,
                        credentials: vcs_credentials.for(vcs),
                        package_name: 'autoproj/') %>

    <%= render_template('setup-git-credentials.pipeline', credentials: vcs_credentials[:git]) %>
    sh ".autoproj/bin/aup autoproj/ --force-reset"
}

env.AUTOPROJ_CURRENT_ROOT = "${fullWorkspaceDir}/dev"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
autoproj-jenkins-0.3.1 lib/autoproj/jenkins/templates/bootstrap.pipeline.erb
autoproj-jenkins-0.3.0 lib/autoproj/jenkins/templates/bootstrap.pipeline.erb