set -o pipefail
ONAP_OOM_GIT_REVISION=$(cd "${WORKSPACE}/build/onap-oom" && git rev-parse --short HEAD)
-ONAP_UMBRELLA_CHART="${WORKSPACE}/build/onap-oom/kubernetes/dist/packages/onap-*${ONAP_OOM_GIT_REVISION}.tgz"
-IMAGES_LIST="${WORKSPACE}/onap-*${ONAP_OOM_GIT_REVISION}_images.txt"
+ONAP_UMBRELLA_CHART=$(find ${WORKSPACE}/build/onap-oom/kubernetes/dist/packages -name onap-*${ONAP_OOM_GIT_REVISION}.tgz)
+IMAGES_LIST=$(find ${WORKSPACE} -maxdepth 1 -name onap-*${ONAP_OOM_GIT_REVISION}_images.txt)
export NORDIX_ARM_REPO="onap"
export ARTIFACT_ARM_FOLDER="oom"
export BUILD_IDENTIFIER="${ONAP_OOM_GIT_REVISION}"
export NORDIX_ARTIFACT_URL="${NORDIX_ARM_HTTPS_URL}/${NORDIX_ARM_REPO}/${ARTIFACT_ARM_FOLDER}/${BUILD_IDENTIFIER}"
-# NOTE(cian): Leaving this commented out for the moment.
-#echo "Info : Pushing ONAP umbrella chart to Nordix Harbor"
-#HELM_BIN="${WORKSPACE}/bin/helm"
-#${HELM_BIN} push "${ONAP_UMBRELLA_CHART}" "${NORDIX_REGISTRY}"
+echo "Info : Pushing ONAP umbrella chart to Nordix Harbor"
+HELM_BIN="${WORKSPACE}/bin/helm"
+${HELM_BIN} repo remove onaptest || true
+${HELM_BIN} repo add onaptest "${NORDIX_REGISTRY}/chartrepo/onaptest"
+${HELM_BIN} push -f "${ONAP_UMBRELLA_CHART}" --username "${HARBOR_USERNAME}" --password "${HARBOR_PASSWORD}" onaptest
export BUILD_ARTIFACTS="${ONAP_UMBRELLA_CHART} ${IMAGES_LIST}"
echo "Info : Uploading ${BUILD_ARTIFACTS} to Nordix ARM ${NORDIX_ARM_REPO} repository"
set -o pipefail
set -o nounset
+# source .profile
+source "$HOME/.profile"
+
# navigate to WORKSPACE which is the root of the Git clone
-cd $WORKSPACE
+cd "$WORKSPACE"
# git show for information purposes
echo "--------------------------------------------"
+++ /dev/null
----
-# ============LICENSE_START=======================================================
-# Copyright (C) 2019 Nordix Foundation.
-# ================================================================================
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-# SPDX-License-Identifier: Apache-2.0
-# ============LICENSE_END=========================================================
-
-# this job gets triggered when push-upstream is commented on a change on Nordix Gerrit.
-- project:
- name: dmaap-messagerouter-mirroragent-push-upstream
- project: dmaap/messagerouter/mirroragent
- project-name: dmaap-messagerouter-mirroragent
-
- jobs:
- - 'onap-{project-name}-push-upstream'
+++ /dev/null
----
-# ============LICENSE_START=======================================================
-# Copyright (C) 2018 Nordix Foundation.
-# ================================================================================
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-# SPDX-License-Identifier: Apache-2.0
-# ============LICENSE_END=========================================================
-#
-# this job gets triggered when a change is merged to
-# dmaap/messagerouter/mirroragent project on ONAP Gerrit.
-- project:
- name: dmaap-messagerouter-mirroragent-rebase
- project: dmaap/messagerouter/mirroragent
- project-name: dmaap-messagerouter-mirroragent
-
- jobs:
- - 'onap-{project-name}-rebase'
---
+#
# ============LICENSE_START=======================================================
-# Copyright (C) 2018-2019 Nordix Foundation.
+# Copyright (C) 2021 Nordix Foundation.
# ================================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# ============LICENSE_END=========================================================
# this job gets triggered when a change is proposed to
-# dmaap/messagerouter/mirroragent- project on Nordix Gerrit.
+# policy/gui project on Nordix Gerrit.
+
- project:
- name: dmaap-messagerouter-mirroragent-verify
- project: dmaap/messagerouter/mirroragent
- project-name: dmaap-messagerouter-mirroragent
+ name: policy-gui-verify
+ project: policy/gui
+ project-name: policy-gui
stream:
- - master:
+ - 'master':
branch: '{stream}'
- jdk-version: java-8
-
+ jdk-version: java-11
jobs:
- 'onap-{project-name}-{stream}-verify-java'