diff --git a/playbooks/legacy/zmq-event-publisher-hpi-artifact/post.yaml b/playbooks/legacy/zmq-event-publisher-hpi-artifact/post.yaml deleted file mode 100644 index 8cee60b9..00000000 --- a/playbooks/legacy/zmq-event-publisher-hpi-artifact/post.yaml +++ /dev/null @@ -1,21 +0,0 @@ -- hosts: primary - tasks: - - - name: Ensure artifacts directory exists - file: - path: '{{ zuul.executor.work_root }}/artifacts' - state: directory - delegate_to: localhost - - - name: Copy files from {{ ansible_user_dir }}/workspace/ on node - synchronize: - src: '{{ ansible_user_dir }}/workspace/' - dest: '{{ zuul.executor.work_root }}/artifacts/$ZUUL_SHORT_PROJECT_NAME' - mode: pull - copy_links: true - verify_host: true - rsync_opts: - - --include=/target/$ZUUL_SHORT_PROJECT_NAME-*.hpi - - --include=*/ - - --exclude=* - - --prune-empty-dirs diff --git a/playbooks/legacy/zmq-event-publisher-hpi-artifact/run.yaml b/playbooks/legacy/zmq-event-publisher-hpi-artifact/run.yaml deleted file mode 100644 index b1cf7dd6..00000000 --- a/playbooks/legacy/zmq-event-publisher-hpi-artifact/run.yaml +++ /dev/null @@ -1,62 +0,0 @@ -- hosts: all - name: Autoconverted job legacy-zmq-event-publisher-hpi-artifact from old job zmq-event-publisher-hpi-artifact - roles: - - bindep - - tasks: - - - name: Ensure legacy workspace directory - file: - path: '{{ ansible_user_dir }}/workspace' - state: directory - - - shell: - cmd: | - set -e - set -x - CLONEMAP=`mktemp` - function cleanup { - # In cases where zuul-cloner is aborted during a git - # clone operation, git will remove the git work tree in - # its cleanup. The work tree in these jobs is the - # workspace directory, which means that subsequent - # jenkins post-build actions can not run because the - # workspace has been removed. - # To reduce the likelihood of this having an impact, - # recreate the workspace directory if needed - mkdir -p $WORKSPACE - rm -f $CLONEMAP - } - trap cleanup EXIT - cat > $CLONEMAP << EOF - clonemap: - - name: $ZUUL_PROJECT - dest: . - EOF - /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ - https://opendev.org $ZUUL_PROJECT - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - sudo rm -f /etc/sudoers.d/zuul - # Prove that general sudo access is actually revoked - ! sudo -n true - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -e - set -x - /usr/local/jenkins/slave_scripts/version-properties.sh - source version.properties - mvn clean package -B -Dproject-version=$PROJECT_VER - cp ./target/$ZUUL_SHORT_PROJECT_NAME.hpi ./target/$ZUUL_SHORT_PROJECT_NAME-$PROJECT_VER.hpi - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/zmq-event-publisher-jenkinsci-upload/run.yaml b/playbooks/legacy/zmq-event-publisher-jenkinsci-upload/run.yaml deleted file mode 100644 index e34dc17e..00000000 --- a/playbooks/legacy/zmq-event-publisher-jenkinsci-upload/run.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- hosts: all - name: Autoconverted job legacy-zmq-event-publisher-jenkinsci-upload from old job - zmq-event-publisher-jenkinsci-upload - tasks: - - - name: Ensure legacy workspace directory - file: - path: '{{ ansible_user_dir }}/workspace' - state: directory - - - shell: - cmd: | - set -x - sudo rm -f /etc/sudoers.d/zuul - # Prove that general sudo access is actually revoked - ! sudo -n true - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - 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 - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/zmq-event-publisher-maven-build-ubuntu-trusty/run.yaml b/playbooks/legacy/zmq-event-publisher-maven-build-ubuntu-trusty/run.yaml deleted file mode 100644 index 3860e783..00000000 --- a/playbooks/legacy/zmq-event-publisher-maven-build-ubuntu-trusty/run.yaml +++ /dev/null @@ -1,62 +0,0 @@ -- hosts: all - name: Autoconverted job legacy-zmq-event-publisher-maven-build-ubuntu-trusty from - old job gate-zmq-event-publisher-maven-build-ubuntu-trusty - roles: - - bindep - - tasks: - - - name: Ensure legacy workspace directory - file: - path: '{{ ansible_user_dir }}/workspace' - state: directory - - - shell: - cmd: | - set -e - set -x - CLONEMAP=`mktemp` - function cleanup { - # In cases where zuul-cloner is aborted during a git - # clone operation, git will remove the git work tree in - # its cleanup. The work tree in these jobs is the - # workspace directory, which means that subsequent - # jenkins post-build actions can not run because the - # workspace has been removed. - # To reduce the likelihood of this having an impact, - # recreate the workspace directory if needed - mkdir -p $WORKSPACE - rm -f $CLONEMAP - } - trap cleanup EXIT - cat > $CLONEMAP << EOF - clonemap: - - name: $ZUUL_PROJECT - dest: . - EOF - /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ - https://opendev.org $ZUUL_PROJECT - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - sudo rm -f /etc/sudoers.d/zuul - # Prove that general sudo access is actually revoked - ! sudo -n true - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -e - set -x - /usr/local/jenkins/slave_scripts/version-properties.sh - source version.properties - mvn clean package -B -Dproject-version=$PROJECT_VER - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/zuul.d/zuul-legacy-jobs.yaml b/zuul.d/zuul-legacy-jobs.yaml index 51c74587..6d9d68ed 100644 --- a/zuul.d/zuul-legacy-jobs.yaml +++ b/zuul.d/zuul-legacy-jobs.yaml @@ -1186,23 +1186,3 @@ required-projects: - openstack/devstack-gate - x/trio2o - -- job: - name: legacy-zmq-event-publisher-hpi-artifact - parent: legacy-publish-openstack-artifacts - run: playbooks/legacy/zmq-event-publisher-hpi-artifact/run.yaml - post-run: playbooks/legacy/zmq-event-publisher-hpi-artifact/post.yaml - timeout: 1800 - -- job: - name: legacy-zmq-event-publisher-jenkinsci-upload - parent: legacy-base - run: playbooks/legacy/zmq-event-publisher-jenkinsci-upload/run.yaml - timeout: 1800 - -- job: - name: legacy-zmq-event-publisher-maven-build-ubuntu-trusty - parent: legacy-base - run: playbooks/legacy/zmq-event-publisher-maven-build-ubuntu-trusty/run.yaml - timeout: 1800 - nodeset: legacy-ubuntu-trusty