openstack-zuul-jobs/playbooks/legacy/javamelody-gerrit-plugin-stable-2.13/run.yaml
Monty Taylor a3139c4bb5 Migrate jobs from zuulv2 to zuulv3
This is the result of having run the zuul migration tool.

Depends-On: I72687a56285a3d733a9adeaf3dc037a1ac95efd3
Change-Id: Ib511da75908e152e72fdf0d7b496f4fa98f9c223
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-09-26 15:02:59 -04:00

68 lines
2.4 KiB
YAML

- hosts: all
name: Autoconverted job legacy-javamelody-gerrit-plugin-stable-2.13 from old job
javamelody-gerrit-plugin-stable-2.13
tasks:
- shell:
cmd: |
set -e
set -x
sudo bash -c "echo 'ant' >> /usr/local/jenkins/common_data/bindep-fallback.txt"
sudo bash -c "echo 'ant-optional' >> /usr/local/jenkins/common_data/bindep-fallback.txt"
sudo bash -c "echo 'default-jdk' >> /usr/local/jenkins/common_data/bindep-fallback.txt"
sudo bash -c "echo 'asciidoc' >> /usr/local/jenkins/common_data/bindep-fallback.txt"
sudo bash -c "echo 'nodejs' >> /usr/local/jenkins/common_data/bindep-fallback.txt"
executable: /bin/bash
environment: '{{ zuul | zuul_legacy_vars }}'
- shell:
cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh
environment: '{{ zuul | zuul_legacy_vars }}'
- shell:
cmd: |
set -x
sudo rm -f /etc/sudoers.d/jenkins-sudo
# Prove that general sudo access is actually revoked
! sudo -n true
executable: /bin/bash
environment: '{{ zuul | zuul_legacy_vars }}'
- shell:
cmd: |
set -e
set -x
if [[ ! -d "buck" ]]
then
git clone https://gerrit.googlesource.com/buck
cd buck
ant
fi
executable: /bin/bash
environment: '{{ zuul | zuul_legacy_vars }}'
- shell:
cmd: |
set -e
set -x
export PATH=`pwd`/buck/bin:$PATH
rm -rf gerrit
git clone -b openstack/2.13 https://git.openstack.org/openstack-infra/gerrit
PLUGIN_PARENT_PROJECT=
if [ -n "$PLUGIN_PARENT_PROJECT" ]; then
git clone -b gerrit/plugins/
fi
git clone -b stable-2.13 https://gerrit.googlesource.com/plugins/javamelody gerrit/plugins/javamelody
cd gerrit/plugins/javamelody
/usr/local/jenkins/slave_scripts/version-properties.sh
source version.properties
cd $WORKSPACE/gerrit
buck clean
if [ -n "$PLUGIN_PARENT_PROJECT" ]; then
buck build plugins/:
fi
buck build plugins/javamelody:javamelody
cp ./buck-out/gen/plugins/javamelody/javamelody.jar ./buck-out/gen/plugins/javamelody/javamelody-$PROJECT_VER.jar
executable: /bin/bash
environment: '{{ zuul | zuul_legacy_vars }}'