- 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 }}'