Sha256: 0f4814fde1c81323c424fb4ce7aa2a6eada71f9c234ec6c2c7cdbbc5ce9bd2ef

Contents?: true

Size: 1.29 KB

Versions: 2

Compression:

Stored size: 1.29 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"
}

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

Version data entries

2 entries across 2 versions & 1 rubygems

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