Sha256: 92f8c0a244b1d9db3cced0b50d33af11612d6153f5c93bdf2913138d01df5b04

Contents?: true

Size: 1.31 KB

Versions: 1

Compression:

Stored size: 1.31 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 user_seed_config = "<%= escape_to_groovy(seed) %>"
writeFile file: 'user_seed.yml', text: user_seed_config
def config = "<%= render_template('buildconf-config.yml', seed: seed, 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",
                        poll: poll,
                        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 --auto-exclude"
}

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

Version data entries

1 entries across 1 versions & 1 rubygems

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