name: autorelease-generate-release-patches
builders:
- shell: !include-raw:
- - ../global-jjb/shell/lftools-install.sh
- prepare-release.sh
- builder:
forbidden-files: ''
builders:
+ - lf-infra-pre-build
- autorelease-checkout-gerrit-patch
- autorelease-compare-projects
- jacoco-nojava-workaround
-#!/bin/bash
+#!/bin/bash -l
# SPDX-License-Identifier: EPL-1.0
##############################################################################
# Copyright (c) 2015, 2017 The Linux Foundation and others.
openstack_system2_image: '{openstack_system_image_queens}'
- project:
- name: netvirt-csit-1cmb-0ctl-0cmp-openstack-integration-fluorine
+ name: netvirt-csit-1cmb-0ctl-0cmp-openstack-integration
jobs:
- inttest-csit-openstack
project: 'netvirt'
- stream: 'fluorine'
- branch: 'master'
testplan: '{project}-{topology}-openstack.txt'
odl-ml2-driver-version: 'v2'
enable-openstack-services: 'n-cpu,placement-api,tempest'
os-ctl-cnt: 0
os-cmp-cnt: 0
+ stream:
+ - neon:
+ branch: 'master'
+ - fluorine:
+ branch: 'stable/fluorine'
+ - oxygen:
+ branch: 'stable/oxygen'
+
topology:
- 1node:
openstack_system2_count: 0
-#!/bin/bash
+#!/bin/bash -l
# SPDX-License-Identifier: EPL-1.0
##############################################################################
# Copyright (c) 2017 The Linux Foundation and others.
# by the cleanup old images job.
echo "---> Check image protection"
-# shellcheck source=/tmp/v/openstack/bin/activate disable=SC1091
-source "/tmp/v/openstack/bin/activate"
-
declare -a yaml_images
readarray -t yaml_images <<< "$(grep -r _system_image: --include \*.yaml \
| awk -F": " -e '{print $3}' | sed "s:'::;s:'$::;/^$/d" | sort -u)"
-#!/bin/bash
+#!/bin/bash -l
# SPDX-License-Identifier: EPL-1.0
##############################################################################
# Copyright (c) 2017 - 2018 The Linux Foundation and others.
# Removes openstack images older than 30 days in the cloud
echo "---> Cleanup old images"
-# shellcheck source=/tmp/v/openstack/bin/activate disable=SC1091
-source "/tmp/v/openstack/bin/activate"
lftools openstack --os-cloud vex image cleanup --days=30
-#!/bin/bash
+#!/bin/bash -l
# SPDX-License-Identifier: EPL-1.0
##############################################################################
# Copyright (c) 2017 - 2018 The Linux Foundation and others.
# Fetch server list before fetching active minions to minimize race condition
# where we might be trying to delete servers while jobs are trying to start
-# shellcheck source=/tmp/v/openstack/bin/activate disable=SC1091
-source "/tmp/v/openstack/bin/activate"
-
# We purposely need word splitting here to create the OS_SERVERS array.
# shellcheck disable=SC2207
mapfile -t OS_SERVERS < <(openstack server list -f value -c "Name" | grep -E 'prd|snd')
server remove --minutes 15 "$server"
fi
done
-
-deactivate
-#!/bin/bash
+#!/bin/bash -l
# SPDX-License-Identifier: EPL-1.0
##############################################################################
# Copyright (c) 2017 - 2018 The Linux Foundation and others.
##############################################################################
echo "---> Cleanup stale nodes"
-# shellcheck source=/tmp/v/openstack/bin/activate disable=SC1091
-source "/tmp/v/openstack/bin/activate"
-
# Todo: As a safe check we could obtain the list of active jobs from Jenkins and
# compute the checksum from $JOB_NAME to check if any active nodes exist and
# skip deleting those nodes. This step may not be required since there is already
-#!/bin/bash
+#!/bin/bash -l
# SPDX-License-Identifier: EPL-1.0
##############################################################################
# Copyright (c) 2017 The Linux Foundation and others.
# list of Jenkins instances to check for active builds.
echo "---> Cleanup stale stacks"
-# shellcheck source=/tmp/v/openstack/bin/activate disable=SC1091
-source "/tmp/v/openstack/bin/activate"
-
stack_in_jenkins() {
# Usage: check_stack_in_jenkins STACK_NAME JENKINS_URL [JENKINS_URL...]
# Returns: 0 If stack is in Jenkins and 1 if stack is not in Jenkins.
-#!/bin/bash
+#!/bin/bash -l
# SPDX-License-Identifier: EPL-1.0
##############################################################################
# Copyright (c) 2018 The Linux Foundation and others.
##############################################################################
# Scans OpenStack for orphaned volumes
-# shellcheck source=/tmp/v/openstack/bin/activate disable=SC1091
-source "/tmp/v/openstack/bin/activate"
mapfile -t os_volumes < <(openstack volume list -f value -c ID --status Available)
echo "---> Orphaned volumes"
lftools openstack --os-cloud vex volume remove --minutes 15 "$volume"
done
fi
-
-deactivate
- timed: '0,30 * * * *'
builders:
- - odl-openstack-install
+ - lf-infra-pre-build
# Servers
- odl-openstack-cleanup-stale-stacks
- odl-openstack-cleanup-stale-nodes
- gerrit-maven-sonar:
mvn-params: >
-Dodl.jacoco.aggregateFile=$WORKSPACE/target/jacoco.exec
- -Dsonar.jacoco.reportPaths=$WORKSPACE/target/jacoco.exec
+ -Dsonar.jacoco.reportPath=$WORKSPACE/target/jacoco.exec
project: 'yangtools'
project-name: 'yangtools'