builders:
- shell:
!include-raw: ./apache-geode-native-test/new_integrationtest.sh
+- builder:
+ name: 'apache-geode-native-srcrelease-macro'
+ builders:
+ - shell:
+ !include-raw: ./apache-geode-native-release/src_release.sh
--- /dev/null
+---
+#
+# ============LICENSE_START=======================================================
+# Copyright (C) 2018-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 KIN D, 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=========================================================
+- job:
+ name: 'apache-geode-native-SrcRelease'
+
+ node: geode-ubuntu1804
+ disabled: false
+ concurrent: true
+
+ properties:
+ - logrotate
+ - github:
+ url: 'https://github.com/Nordix/geode-native.git/'
+
+ parameters:
+ - string:
+ name: PROJECT
+ default: 'Nordix/geode-native'
+ description: JJB configured PROJECT parameter to identify a Nordix GitHub project
+ - string:
+ name: BRANCH
+ default: 'release-nordix/1.10.0'
+ description: JJB configured BRANCH parameter for Nordix GitHub project
+
+ wrappers:
+ - credentials-binding:
+ - username-password-separated:
+ credential-id: infra-nordix-artifactory-api-key
+ username: ARTIFACTORY_USER
+ password: ARTIFACTORY_API_KEY
+ scm:
+ - git-scm-github:
+ branch: '$BRANCH'
+ refspec: ''
+ wipe_workspace: true
+ clean_before: false
+ base_dir: 'geode-native'
+
+ builders:
+ - 'apache-geode-native-srcrelease-macro'
+
+ publishers:
+ - notify-slack:
+ slack-channel: '#geode'
+ notify-start: true
+ notify-success: true
+ notify-failure: true
+ notify-back-to-normal: true
\ No newline at end of file
--- /dev/null
+#!/usr/bin/env bash
+# ============LICENSE_START=======================================================
+# Copyright (C) 2018-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=========================================================
+set -o nounset
+set -o errexit
+set -o pipefail
+#set -o xtrace
+
+ARTIFACTORY_URL="https://artifactory.nordix.org/artifactory"
+GEODE_VERSION=$(cd geode-native ; git describe --abbrev=0 --tags | sed -r "s#rel/v(.*)#\1#")
+# Make sure the Geode tag version is in agreed format.
+if [[ ${GEODE_VERSION} =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]$ ]] ; then
+ GEODE_UPSTREAM_VERSION=$(echo ${GEODE_VERSION} | awk -F "." '{print $1"."$2"."$3}')
+ BUILD_DATE=$(date '+%Y%m%d%H%M')
+ GEODE_ARTIFACT="geode_client_src-${GEODE_VERSION}-NORDIX.${BUILD_DATE}.tgz"
+ tar czvf ${GEODE_ARTIFACT} geode-native/
+else
+ echo "ERROR: Incorrect geode-native tag version on the branch: ${GEODE_VERSION}"
+ exit 1
+fi
+
+SHA_CHECKSUM=$(shasum -a 1 ${GEODE_ARTIFACT} | awk '{ print $1 }')
+SHA256_CHECKSUM=$(sha256sum ${GEODE_ARTIFACT} | awk '{ print $1 }')
+MD5_CHECKSUM=$(md5sum ${GEODE_ARTIFACT} | awk '{ print $1 }')
+echo "-----------------------------------------------------------"
+echo -e "\nUploading ${GEODE_ARTIFACT} to geode-client area: "
+echo -e "geode-client/${GEODE_UPSTREAM_VERSION}/src on artifactory.nordix.org\n"
+curl -H "X-JFrog-Art-Api:${ARTIFACTORY_API_KEY}" \
+ -H "X-Checksum-Sha1:${SHA_CHECKSUM}" \
+ -H "X-Checksum-Sha256:${SHA256_CHECKSUM}" \
+ -H "X-Checksum-MD5:${MD5_CHECKSUM}" \
+ -X PUT "${ARTIFACTORY_URL}/geode-client/${GEODE_UPSTREAM_VERSION}/src/${GEODE_ARTIFACT}" \
+ -T ${GEODE_ARTIFACT}
+echo "-----------------------------------------------------------"
project: 'Nordix/geode-native'
stream:
- - 'develop':
- branch: 'develop'
+ - 'release-nordix-1.10.0':
+ branch: 'release-nordix/1.10.0'
jobs:
- 'apache-geode-native-{stream}-verify'
description: JJB configured BRANCH parameter for Nordix GitHub project
- string:
name: JOBS
- default: '6'
+ default: '24'
description: JJB configured JOBS parameter. Specifies the number of make jobs to run simultaneously while building geode-native
- string:
name: GEODE_NATIVE_DOCKER_IMAGE
- github
builders:
+ - 'verify-geode-tag-macro'
- multijob:
name: SlaveSetup
condition: SUCCESSFUL
git-revision: true
abort-all-job: true
node-parameters: true
-# - multijob:
-# name: Release
-# condition: SUCCESSFUL
-# execution-type: SEQUENTIALLY
-# projects:
-# - name: 'apache-geode-native-SrcRelease'
-# current-parameters: true
-# git-revision: true
-# abort-all-job: true
-# node-parameters: true
+ - multijob:
+ name: Release
+ condition: SUCCESSFUL
+ execution-type: SEQUENTIALLY
+ projects:
+ - name: 'apache-geode-native-SrcRelease'
+ current-parameters: true
+ git-revision: true
+ abort-all-job: true
+ node-parameters: true
-# publishers:
-# - notify-slack:
-# slack-channel: '#geode'
-# notify-start: true
-# notify-success: true
-# notify-failure: true
-# notify-back-to-normal: true
\ No newline at end of file
+ publishers:
+ - notify-slack:
+ slack-channel: '#geode'
+ notify-start: true
+ notify-success: true
+ notify-failure: true
+ notify-back-to-normal: true
\ No newline at end of file
description: JJB configured BRANCH parameter for Nordix GitHub project
- string:
name: JOBS
- default: '6'
+ default: '24'
description: JJB configured JOBS parameter. Specifies the number of make jobs to run simultaneously while building geode-native
- string:
name: GEODE_NATIVE_DOCKER_IMAGE
- workspace-cleanup:
clean-if:
- failure: false
-# - notify-slack:
-# slack-channel: '#geode'
-# notify-start: true
-# notify-success: true
-# notify-failure: true
-# notify-back-to-normal: true
+ - notify-slack:
+ slack-channel: '#geode'
+ notify-start: true
+ notify-success: true
+ notify-failure: true
+ notify-back-to-normal: true
builders:
- shell:
!include-raw: ./apache-geode-slave/slave_setup.sh
-
-- builder:
- name: 'verify-geode-tag-macro'
- builders:
- - shell:
- !include-raw: ./verify_geode_tag.sh
\ No newline at end of file
default: ssh://$GERRIT_USER@gerrit.o-ran-sc.org:29418
description: SSH URL to Project Repo on ORAN-SC Gerrit to clone repo
+# Verify job for Geode git tags to make sure there are in agreed format
+- builder:
+ name: 'verify-geode-tag-macro'
+ builders:
+ - shell:
+ !include-raw: ./verify_geode_tag.sh
+
# defaults for job build history
- property:
name: logrotate-default
awk -F '|' '{ printf "%s %-20s %s\n", $1, $2, $3 }' | head -${1}
}
-cd $WORKSPACE/geode
+# There could be 2 directory with source: geode or geode-native
+cd ${WORKSPACE}/geode*
GEODE_VERSION=$(git describe --abbrev=0 --tags | sed -r "s#rel/v(.*)#\1#")
GIT_LOGS=8