direct \
--download_url "$DOWNLOAD_URL"
-# Copy the debs to be upload
-UPLOAD_FILES_PATH="$WORKSPACE/upload_files"
-mkdir -p "$UPLOAD_FILES_PATH"
-# Note: no source packages are available, since the debs are not built
-# from the actual source
-mv "$WORKSPACE/packaging/packages/deb/opendaylight/"*.deb "$_"
+# Publish debs to Nexus if in production Jenkins, else host on sandbox Jenkins
+if [ "$SILO" == "sandbox" ]; then
+ # TODO: Host debs on Jenkins temporarily
+ echo "Not uploading debs to Nexus because running in sandbox"
+elif [ "$SILO" == "releng" ]; then
+ # Copy the debs to be upload
+ # Move debs to dir of files that will be uploaded to Nexus
+ UPLOAD_FILES_PATH="$WORKSPACE/upload_files"
+ mkdir -p "$UPLOAD_FILES_PATH"
+ # Note: no source packages are available, since the debs are not built
+ # from the actual source
+ mv "$WORKSPACE/packaging/packages/deb/opendaylight/"*.deb "$_"
+else
+ echo "Unknown Jenkins silo: $SILO"
+ exit 1
+fi
latest_snap \
--major "$VERSION_MAJOR"
-# Copy the rpm to be upload
-UPLOAD_FILES_PATH="$WORKSPACE/upload_files"
-mkdir -p "$UPLOAD_FILES_PATH"
-mv "/home/$USER/rpmbuild/RPMS/noarch/"*.rpm "$_"
-mv "/home/$USER/rpmbuild/SRPMS/"*.rpm "$_"
+# Publish RPMs to Nexus if in production Jenkins, else host on sandbox Jenkins
+if [ "$SILO" == "sandbox" ]; then
+ # TODO: Host RPMs on Jenkins temporarily
+ echo "Not uploading RPMs to Nexus because running in sandbox"
+elif [ "$SILO" == "releng" ]; then
+ # Move RPMs (SRPM and noarch) to dir of files that will be uploaded to Nexus
+ UPLOAD_FILES_PATH="$WORKSPACE/upload_files"
+ mkdir -p "$UPLOAD_FILES_PATH"
+ mv "/home/$USER/rpmbuild/RPMS/noarch/"*.rpm "$_"
+ mv "/home/$USER/rpmbuild/SRPMS/"*.rpm "$_"
+else
+ echo "Unknown Jenkins silo: $SILO"
+ exit 1
+fi
direct \
--download_url "$DOWNLOAD_URL"
-# Move RPMs (SRPM and noarch) to dir of files that will be uploaded to Nexus
-UPLOAD_FILES_PATH="$WORKSPACE/upload_files"
-mkdir -p "$UPLOAD_FILES_PATH"
-mv "/home/$USER/rpmbuild/RPMS/noarch/"*.rpm "$_"
-mv "/home/$USER/rpmbuild/SRPMS/"*.rpm "$_"
+# Publish RPMs to Nexus if in production Jenkins, else host on sandbox Jenkins
+if [ "$SILO" == "sandbox" ]; then
+ # TODO: Host RPMs on Jenkins temporarily
+ echo "Not uploading RPMs to Nexus because running in sandbox"
+elif [ "$SILO" == "releng" ]; then
+ # Move RPMs (SRPM and noarch) to dir of files that will be uploaded to Nexus
+ UPLOAD_FILES_PATH="$WORKSPACE/upload_files"
+ mkdir -p "$UPLOAD_FILES_PATH"
+ mv "/home/$USER/rpmbuild/RPMS/noarch/"*.rpm "$_"
+ mv "/home/$USER/rpmbuild/SRPMS/"*.rpm "$_"
+else
+ echo "Unknown Jenkins silo: $SILO"
+ exit 1
+fi
build-timeout: 75
- devstack-pre-pip-ocata:
build-timeout: 60
+ - devstack-pre-pip-pike:
+ build-timeout: 75
- docker
- gbp
- java-builder:
templates: devstack-pre-pip-newton
- platforms: ubuntu-14.04
templates: devstack-pre-pip-ocata
+ - platforms: ubuntu-14.04
+ templates: devstack-pre-pip-pike
- platforms: ubuntu-14.04
templates: devstack
- platforms: ubuntu-14.04
projs="requirements keystone glance cinder neutron nova horizon"
# shellcheck disable=SC2154
branch=${os_branch}
+# strip the "stable" off of the branch
+branch_name=$(cut -d'/' -f2 <<< ${branch})
wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py
pip install -c requirements/upper-constraints.txt -r ${proj}/test-requirements.txt
done
-# the ocata release has ovs 2.6.1
-echo '---> Installing openvswitch from openstack Ocata repo (2.6.1)'
-yum install -y http://rdoproject.org/repos/openstack-ocata/rdo-release-ocata.rpm
+echo '---> Installing openvswitch from relevant openstack branch'
+yum install -y centos-release-openstack-${branch_name}
yum install -y --nogpgcheck openvswitch
--- /dev/null
+{
+ "variables": {
+ "public_base_image": null,
+ "public_network": null,
+ "public_cloud_user": null,
+ "public_auth_url": null,
+ "public_tenant": null,
+ "public_user": null,
+ "public_pass": null,
+ "private_base_image": null,
+ "private_network": null,
+ "private_cloud_user": null,
+ "private_auth_url": null,
+ "private_tenant": null,
+ "private_user": null,
+ "private_pass": null,
+ "distro": null,
+ "cloud_user_data": null
+ },
+ "builders": [
+ {
+ "type": "openstack",
+ "name": "public_cloud",
+ "identity_endpoint": "{{user `public_auth_url`}}",
+ "tenant_name": "{{user `public_tenant`}}",
+ "username": "{{user `public_user`}}",
+ "password": "{{user `public_pass`}}",
+ "region": "DFW",
+ "ssh_username": "{{user `public_cloud_user`}}",
+ "image_name": "{{user `distro`}} - devstack-pike - {{isotime \"20060102-1504\"}}",
+ "source_image": "{{user `public_base_image`}}",
+ "flavor": "general1-1",
+ "networks": [
+ "{{user `public_network`}}"
+ ],
+ "user_data_file": "{{user `cloud_user_data`}}"
+ },
+ {
+ "type": "openstack",
+ "name": "private_cloud",
+ "identity_endpoint": "{{user `private_auth_url`}}",
+ "tenant_name": "{{user `private_tenant`}}",
+ "username": "{{user `private_user`}}",
+ "password": "{{user `private_pass`}}",
+ "ssh_username": "{{user `private_cloud_user`}}",
+ "image_name": "{{user `distro`}} - devstack-pike - {{isotime \"20060102-1504\"}}",
+ "source_image_name": "{{user `private_base_image`}}",
+ "flavor": "general1-1",
+ "networks": [
+ "{{user `private_network`}}"
+ ],
+ "user_data_file": "{{user `cloud_user_data`}}"
+ }
+ ],
+ "provisioners": [
+ {
+ "type": "shell",
+ "environment_vars": [
+ "os_branch=stable/pike",
+ "rdo_branch=pike"
+ ],
+ "scripts": [
+ "provision/baseline.sh",
+ "provision/devstack-pre-pip.sh",
+ "provision/system_reseal_local_env.sh",
+ "provision/system_reseal.sh"
+ ],
+ "execute_command": "chmod +x {{ .Path }}; if [ \"$UID\" == \"0\" ]; then {{ .Vars }} '{{ .Path }}'; else {{ .Vars }} sudo -E '{{ .Path }}'; fi"
+ }
+ ]
+}