github_pr_admin_list:
- tykeal
- lftools-version: '<1.0.0'
mvn-site-id: project-site
mvn-staging-id: project-staging
project: '{project}'
branch: '{branch}'
stream: '{stream}'
- lftools-version: '{lftools-version}'
- lf-cmake-parameters:
build-dir: '{build-dir}'
cmake-opts: '{cmake-opts}'
jenkins-ssh-credential: '{jenkins-ssh-credential}'
builders:
- - shell: !include-raw-escape: ../shell/lftools-install.sh
+ - lf-infra-pre-build
- lf-provide-maven-settings:
global-settings-file: '{mvn-global-settings}'
settings-file: '{mvn-settings}'
project: '{project}'
branch: '{branch}'
stream: '{stream}'
- lftools-version: '{lftools-version}'
- lf-cmake-parameters:
build-dir: '{build-dir}'
cmake-opts: '{cmake-opts}'
project: '{project}'
stream: '{stream}'
branch: '{branch}'
- lftools-version: '{lftools-version}'
- lf-packer-parameters:
packer-version: '{packer-version}'
project: '{project}'
stream: '{stream}'
branch: '{branch}'
- lftools-version: '{lftools-version}'
- lf-infra-jjb-parameters:
jjb-cache: '{jjb-cache}'
jjb-version: '{jjb-version}'
project: '{project}'
stream: '{stream}'
branch: '{branch}'
- lftools-version: '{lftools-version}'
wrappers:
- lf-infra-wrappers:
project: '{project}'
stream: ''
branch: master
- lftools-version: '{lftools-version}'
wrappers:
- lf-infra-wrappers:
project: '{project}'
stream: ''
branch: master
- lftools-version: '{lftools-version}'
wrappers:
- lf-infra-wrappers:
project: '{project}'
stream: '{stream}'
branch: '{branch}'
- lftools-version: '{lftools-version}'
wrappers:
- lf-infra-wrappers:
project: '{project}'
branch: '{branch}'
stream: '{stream}'
- lftools-version: '{lftools-version}'
wrappers:
- lf-infra-wrappers:
project: '{project}'
stream: '{stream}'
branch: '{branch}'
- lftools-version: '{lftools-version}'
- string:
name: JENKINS_URLS
default: '{jenkins-urls}'
project: '{project}'
stream: '{stream}'
branch: '{branch}'
- lftools-version: '{lftools-version}'
- lf-packer-parameters:
packer-version: '{packer-version}'
GROUP_ID={group-id}
UPLOAD_FILES_PATH={upload-files-dir}
- shell: !include-raw-escape:
- - ../shell/lftools-install.sh
- ../shell/common-variables.sh
- ../shell/deploy-maven-file.sh
- lf-provide-maven-settings-cleanup
If using GitHub, in a manual build override with a branch path or
sha1 hash to a specific commit. For example: 'origin/master'
- # Tools
- - string:
- name: LFTOOLS_VERSION
- default: '{lftools-version}'
- description: |
- Version of lftools to install. Can be a specific version like
- '0.6.0' or a PEP-440 definition.
- https://www.python.org/dev/peps/pep-0440/
- For example '<1.0.0' or '>=1.0.0,<2.0.0'.
- parameter:
name: lf-infra-node-parameters
project: '{project}'
branch: '{branch}'
stream: '{stream}'
- lftools-version: '{lftools-version}'
- lf-infra-maven-parameters:
mvn-opts: '{mvn-opts}'
mvn-params: '{mvn-params}'
project: '{project}'
branch: '{branch}'
stream: '{stream}'
- lftools-version: '{lftools-version}'
- lf-infra-maven-parameters:
mvn-opts: '{mvn-opts}'
mvn-params: '{mvn-params}'
project: '{project}'
branch: '{branch}'
stream: '{stream}'
- lftools-version: '{lftools-version}'
- lf-infra-maven-parameters:
mvn-opts: '{mvn-opts}'
mvn-params: '{mvn-params}'
project: '{project}'
branch: '{branch}'
stream: '{stream}'
- lftools-version: '{lftools-version}'
- lf-infra-maven-parameters:
mvn-opts: '{mvn-opts}'
mvn-params: '{mvn-params}'
project: '{project}'
branch: '{branch}'
stream: '{stream}'
- lftools-version: '{lftools-version}'
- lf-infra-node-parameters:
node-dir: '{node-dir}'
node-version: '{node-version}'
project: '{project}'
branch: '{branch}'
stream: '{stream}'
- lftools-version: '{lftools-version}'
wrappers:
- lf-infra-wrappers:
project: '{project}'
branch: '{branch}'
stream: '{stream}'
- lftools-version: '{lftools-version}'
- string:
name: NEXUS_IQ_CLI_VERSION
default: '{nexus-iq-cli-version}'
project: '{project}'
branch: '{branch}'
stream: '{stream}'
- lftools-version: '{lftools-version}'
- string:
name: ARCHIVE_ARTIFACTS
default: '{archive-artifacts}'
project: '{project}'
branch: '{branch}'
stream: '{stream}'
- lftools-version: '{lftools-version}'
- lf-infra-tox-parameters:
tox-dir: '{tox-dir}'
tox-envs: '{tox-envs}'
branch: '{branch}'
refspec: 'refs/heads/{branch}'
stream: '{stream}'
- lftools-version: '{lftools-version}'
wrappers:
- lf-infra-wrappers:
+++ /dev/null
-#!/bin/bash
-# SPDX-License-Identifier: EPL-1.0
-##############################################################################
-# Copyright (c) 2017 The Linux Foundation and others.
-#
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Eclipse Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/epl-v10.html
-##############################################################################
-echo "---> lftools-install.sh"
-echo 'WARNING: The lftools-install.sh script is deprecated. We now recommend \
-to use `pip install --user lftools` to install.'
-
-# Script to install lftools via a version passed in via lf-infra-parameters
-#
-# Required parameters:
-#
-# LFTOOLS_VERSION: Passed in via lf-infra-parameters configuration. Can be
-# set to a strict version number like '1.2.3' or using
-# PEP-440 definitions.
-#
-# Examples:
-# <1.0.0
-# >=1.0.0,<2.0.0
-#
-# By default a released version of lftools should always be used.
-# The purpose of the 2 variables below is so that lftools devs can test
-# unreleased versions of lftools. There are 2 methods to install a dev version
-# of lftools:
-#
-# 1) gerrit patch: Used to test a patch that has not yet been merged.
-# To do this set something like this:
-# LFTOOLS_MODE=gerrit
-# LFTOOLS_REFSPEC=refs/changes/96/5296/7
-#
-# 2) git branch: Used to install an lftools version from a specific branch.
-# To use this set the variables as follows:
-# LFTOOLS_MODE=git
-# LFTOOLS_REFSPEC=master
-#
-# 3) release : The intended use case and default setting.
-# Set LFTOOLS_MODE=release, in this case LFTOOLS_REFSPEC is unused.
-
-LFTOOLS_MODE=release # release | git | gerrit
-LFTOOLS_REFSPEC=master
-
-# Ensure we fail the job if any steps fail.
-# DO NOT set -u as virtualenv's activate script has unbound variables
-set -e -o pipefail
-
-virtualenv --quiet "/tmp/v/lftools"
-# shellcheck source=/tmp/v/lftools/bin/activate disable=SC1091
-source "/tmp/v/lftools/bin/activate"
-pip install --quiet --upgrade "pip==9.0.3" setuptools
-
-case $LFTOOLS_MODE in
- gerrit)
- git clone https://gerrit.linuxfoundation.org/infra/releng/lftools.git /tmp/lftools
- pushd /tmp/lftools
- git fetch origin "$LFTOOLS_REFSPEC"
- git checkout FETCH_HEAD
- pip install --quiet --upgrade -r requirements.txt
- pip install --quiet --upgrade -e .
- popd
- ;;
-
- git)
- pip install --quiet --upgrade git+https://gerrit.linuxfoundation.org/infra/releng/lftools.git@"$BRANCH"
- ;;
-
- release)
- if [[ $LFTOOLS_VERSION =~ ^[0-9] ]]; then
- LFTOOLS_VERSION="==$LFTOOLS_VERSION"
- fi
-
- pip install --quiet --upgrade "lftools${LFTOOLS_VERSION}"
- ;;
-esac
-
-lftools --version
-
-# pipdeptree prints out a lot of information because lftools pulls in many
-# dependencies. Let's only print it if we want to debug.
-# echo "----> Pip Dependency Tree"
-# pip install --quiet --upgrade pipdeptree
-# pipdeptree