Updated to address review issues.
Change-Id: I8b6c6eb2ef3135b17201e990b7e4478729749f9e
Signed-off-by: re2429 <re2429@att.com>
project-name: addon-onap
project: addon-onap
build-node: centos7-builder-2c-1g
- stream: master
+ stream:
+ - master:
+ branch: master
+ - development:
+ branch: development
mvn-settings: addon-onap-settings
group-id: org.akraino.addon-onap
refspec: refs/heads/master
- branch: master
jobs:
- akraino-project-stream-release-config
views:
project-name: airshipinabottle_deploy
project: airshipinabottle_deploy
build-node: centos7-builder-2c-1g
- stream: master
+ stream:
+ - master:
+ branch: master
+ - development:
+ branch: development
mvn-settings: airshipinabottle_deploy-settings
group-id: org.akraino.airshipinabottle_deploy
refspec: refs/heads/master
- branch: master
jobs:
- akraino-project-stream-release-config
views:
project: camunda_workflow
global-settings-file: global-settings
build-node: ubuntu1604-docker-8c-8g
- stream: master
+ stream:
+ - master:
+ branch: master
+ - development:
+ branch: development
java-version: openjdk8
mvn-version: mvn35
mvn-opts: ''
mvn-settings: camunda_workflow-settings
build-timeout: 60
submodule-recursive: true
- branch: master
jobs:
- 'akraino-project-stream-docker'
mvn-settings: camunda_workflow-settings
mvn-params: '-f akraino/pom.xml'
build-node: centos7-builder-2c-1g
- stream: master
+ stream:
+ - master:
+ branch: master
+ - development:
+ branch: development
jobs:
- '{project-name}-maven-jobs'
- - gerrit-maven-sonar
views:
- common-view
+
+# Only run Sonar on the development branch
+- project:
+ name: camunda_workflow-sonar-development
+ project: camunda_workflow
+ project-name: camunda_workflow
+ mvn-settings: camunda_workflow-settings
+ mvn-params: '-f akraino/pom.xml'
+ build-node: centos7-builder-2c-1g
+ stream: development
+ jobs:
+ - gerrit-maven-sonar
project: portal_user_interface
global-settings-file: global-settings
build-node: ubuntu1604-docker-8c-8g
- stream: master
+ stream:
+ - master:
+ branch: master
+ - development:
+ branch: development
java-version: openjdk8
mvn-version: mvn35
mvn-opts: ''
mvn-settings: portal_user_interface-settings
build-timeout: 60
submodule-recursive: true
- branch: master
jobs:
- 'akraino-project-stream-docker'
mvn-settings: portal_user_interface-settings
mvn-params: '-f AECPortalMgmt/pom.xml'
build-node: centos7-builder-2c-1g
- stream: master
+ stream:
+ - master:
+ branch: master
+ - development:
+ branch: development
jobs:
- '{project-name}-maven-jobs'
- - gerrit-maven-sonar
views:
- common-view
+
+# Only run Sonar on the development branch
+- project:
+ name: portal_user_interface-sonar-development
+ project: portal_user_interface
+ project-name: portal_user_interface
+ mvn-settings: portal_user_interface-settings
+ mvn-params: '-f AECPortalMgmt/pom.xml'
+ build-node: centos7-builder-2c-1g
+ stream: development
+ jobs:
+ - gerrit-maven-sonar
project: postgres_db_schema
global-settings-file: global-settings
build-node: ubuntu1604-docker-8c-8g
- stream: master
+ stream:
+ - master:
+ branch: master
+ - development:
+ branch: development
java-version: openjdk8
mvn-version: mvn35
mvn-opts: ''
mvn-settings: postgres_db_schema-settings
build-timeout: 60
submodule-recursive: true
- branch: master
jobs:
- 'akraino-project-stream-docker'
views:
project-name: redfish
project: redfish
build-node: centos7-builder-2c-1g
- stream: master
+ stream:
+ - master:
+ branch: master
+ - development:
+ branch: development
mvn-settings: redfish-settings
group-id: org.akraino.redfish
refspec: refs/heads/master
- branch: master
jobs:
- akraino-project-stream-release-config
views:
project-name: regional_controller
project: regional_controller
build-node: centos7-builder-2c-1g
- stream: master
+ stream:
+ - master:
+ branch: master
+ - development:
+ branch: development
mvn-settings: regional_controller-settings
group-id: org.akraino.regional_controller
refspec: refs/heads/master
- branch: master
jobs:
- akraino-project-stream-release-config
views:
project-name: sample_vnf
project: sample_vnf
build-node: centos7-builder-2c-1g
- stream: master
+ stream:
+ - master:
+ branch: master
+ - development:
+ branch: development
mvn-settings: sample_vnf-settings
group-id: org.akraino.sample_vnf
refspec: refs/heads/master
- branch: master
jobs:
- akraino-project-stream-release-config
views:
;;
esac
+# Append stream, if it is not the master stream
+if [ "${STREAM}" != "master" ]
+then
+ VERSION="${VERSION}-${STREAM}"
+fi
+
# Build and push the Docker container
docker build -f Dockerfile -t ${CON_NAME}:${VERSION} .
docker tag ${CON_NAME}:${VERSION} ${DOCKER_REPO}/${CON_NAME}:${VERSION}
# shellcheck source="$WORKSPACE/version.properties" disable=SC1091
dos2unix "${WORKSPACE}/version.properties"
source "$WORKSPACE/version.properties"
-TAR_NAME="${PROJECT}-${VERSION}-SNAPSHOT.tgz"
TARDIR=$UPLOAD_FILES_PATH
set -e -u -x -o pipefail
# ONAP addon is special.
# Build the regional controller scripts tar ball
- ARTIFACT_NAME="onap-amsterdam-regional-controller-master"
- echo "Making tar file ${TARDIR}/${ARTIFACT_NAME}${VERSION}-SNAPSHOT.tgz"
+ ARTIFACT_NAME="onap-amsterdam-regional-controller-${STREAM}"
+ TAR_NAME="${ARTIFACT_NAME}-${VERSION}-SNAPSHOT.tgz"
+ echo "Making tar file ${TARDIR}/${TAR_NAME}"
cd ./src/regional_controller_scripts/
- tar -cvzf "${TARDIR}/${ARTIFACT_NAME}-${VERSION}-SNAPSHOT.tgz" -- *
+ tar -cvzf "${TARDIR}/${TAR_NAME}" -- *
# Build the ONAP VM scripts tar ball
- ARTIFACT_NAME="onap-amsterdam-VM-master"
- echo "Making tar file ${TARDIR}/${ARTIFACT_NAME}-${VERSION}-SNAPSHOT.tgz"
+ ARTIFACT_NAME="onap-amsterdam-VM-${STREAM}"
+ TAR_NAME="${ARTIFACT_NAME}-${VERSION}-SNAPSHOT.tgz"
+ echo "Making tar file ${TARDIR}/${TAR_NAME}"
cd ../onap_vm_scripts/
- tar -cvzf "${TARDIR}/${ARTIFACT_NAME}-${VERSION}-SNAPSHOT.tgz" -- *
+ tar -cvzf "${TARDIR}/${TAR_NAME}" -- *
else
+ if [ "$STREAM" == "master" ]
+ then
+ TAR_NAME="${PROJECT}-${VERSION}-SNAPSHOT.tgz"
+ else
+ TAR_NAME="${PROJECT}-${VERSION}-${STREAM}-SNAPSHOT.tgz"
+ fi
echo "Making tar file ${TARDIR}/${TAR_NAME}"
tar -cvzf "${TARDIR}/${TAR_NAME}" -- *
project-name: test_automation
project: test_automation
build-node: centos7-builder-2c-1g
- stream: master
+ stream:
+ - master:
+ branch: master
+ - development:
+ branch: development
mvn-settings: test_automation-settings
group-id: org.akraino.test_automation
refspec: refs/heads/master
- branch: master
jobs:
- akraino-project-stream-release-config
views:
project-name: yaml_builds
project: yaml_builds
build-node: centos7-builder-2c-1g
- stream: master
+ stream:
+ - master:
+ branch: master
+ - development:
+ branch: development
mvn-settings: yaml_builds-settings
group-id: org.akraino.yaml_builds
refspec: refs/heads/master
- branch: master
jobs:
- akraino-project-stream-release-config
views: