a3139c4bb5
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>
31 lines
1.1 KiB
YAML
31 lines
1.1 KiB
YAML
- hosts: all
|
|
name: Autoconverted job legacy-gearman-plugin-jenkinsci-upload from old job gearman-plugin-jenkinsci-upload
|
|
tasks:
|
|
|
|
- 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
|
|
TAG=`echo $ZUUL_REF | sed 's/^refs.tags.//'`
|
|
FILENAME_HPI="$ZUUL_SHORT_PROJECT_NAME-$TAG.hpi"
|
|
|
|
# copy plugin artifacts from tarballs to local workspace
|
|
rm -rf *.hpi
|
|
curl -o $FILENAME_HPI http://tarballs.openstack.org/ci/$ZUUL_SHORT_PROJECT_NAME/$FILENAME_HPI
|
|
|
|
# deploy to maven repository
|
|
FILENAME_POM="$ZUUL_SHORT_PROJECT_NAME-$TAG.pom"
|
|
/usr/local/jenkins/slave_scripts/jenkinsci-upload.sh $ZUUL_SHORT_PROJECT_NAME $TAG \
|
|
$FILENAME_POM $FILENAME_HPI
|
|
executable: /bin/bash
|
|
environment: '{{ zuul | zuul_legacy_vars }}'
|