Sha256: b5d668b0cee3ac84f596d44a0b4f07617ef918274b1b4ca9de7ea811c3dc9f1a

Contents?: true

Size: 1.23 KB

Versions: 4

Compression:

Stored size: 1.23 KB

Contents

def fullWorkspaceDir = pwd()
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"
}

def autoproj = "${fullWorkspaceDir}/dev/.autoproj/bin/autoproj"
env.AUTOPROJ_CURRENT_ROOT = "${fullWorkspaceDir}/dev"

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
autoproj-jenkins-0.2.2 lib/autoproj/jenkins/templates/bootstrap.pipeline.erb
autoproj-jenkins-0.2.1 lib/autoproj/jenkins/templates/bootstrap.pipeline.erb
autoproj-jenkins-0.2.0 lib/autoproj/jenkins/templates/bootstrap.pipeline.erb
autoproj-jenkins-0.1.0 lib/autoproj/jenkins/templates/bootstrap.pipeline.erb