From: Anil Belur Date: Fri, 14 May 2021 06:51:19 +0000 (+1000) Subject: CI: Remove opflex jobs X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=55a41db88df3dba21a5d377e4bbf31fd4486f48c;p=releng%2Fbuilder.git CI: Remove opflex jobs Ref: https://lists.opendaylight.org/g/TSC/message/13666 Signed-off-by: Anil Belur Change-Id: I0c61608b38801f89ad190edc0f584aae0a10f21a --- diff --git a/jjb/opflex/opflex-custom.yaml b/jjb/opflex/opflex-custom.yaml deleted file mode 100644 index 8ab70dab5..000000000 --- a/jjb/opflex/opflex-custom.yaml +++ /dev/null @@ -1,160 +0,0 @@ ---- -- project: - name: opflex - jobs: - - "opflex-verify-{stream}" - - "opflex-merge-{stream}" - - stream: - - phosphorus: - branch: "master" - libuv-version: "1.20.2" - rapidjson-version: "1.1.0" - openvswitch-version: "2.12.0" - - silicon: - branch: "stable/silicon" - libuv-version: "1.20.2" - rapidjson-version: "1.1.0" - openvswitch-version: "2.12.0" - - aluminium: - branch: "stable/aluminium" - libuv-version: "1.20.2" - rapidjson-version: "1.1.0" - openvswitch-version: "2.12.0" - - project: "opflex" - archive-artifacts: "**/*.tar.gz" - jdk: "openjdk8" - -- job-template: - name: "opflex-verify-{stream}" - - disable-job: false - - project-type: freestyle - node: centos7-builder-2c-8g - concurrent: true - jdk: "{java-version}" - disabled: "{disable-job}" - - properties: - - opendaylight-infra-properties: - build-days-to-keep: "{build-days-to-keep}" - - parameters: - - opendaylight-infra-parameters: - os-cloud: "{os-cloud}" - project: "{project}" - branch: "{branch}" - refspec: "refs/heads/{branch}" - artifacts: "{archive-artifacts}" - - string: - name: - LIBUV_VERSION - # yamllint disable-line rule:line-length - default: "{libuv-version}" - description: "libuv version" - - string: - name: - RAPIDJSON_VERSION - # yamllint disable-line rule:line-length - default: "{rapidjson-version}" - description: "rapidjson version" - - string: - name: - OPENVSWITCH_VERSION - # yamllint disable-line rule:line-length - default: "{openvswitch-version}" - description: "openvswitch-version" - - scm: - - gerrit-trigger-scm: - refspec: "$GERRIT_REFSPEC" - choosing-strategy: "gerrit" - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: "{build-timeout}" - - triggers: - - gerrit-trigger-patch-submitted: - gerrit-server-name: "{gerrit-server-name}" - project: "{project}" - branch: "{branch}" - files: "**" - forbidden-files: "" - - builders: - - opflex-build: - mvn33: "mvn33" - stream: "{stream}" - - publishers: - - email-notification: - email-recipients: "{email-recipients}" - email-prefix: "[opflex]" - - lf-infra-publish - -- job-template: - name: "opflex-merge-{stream}" - - node: centos7-builder-2c-8g - jdk: "{java-version}" - - properties: - - opendaylight-infra-properties: - build-days-to-keep: "{build-days-to-keep}" - - parameters: - - opendaylight-infra-parameters: - os-cloud: "{os-cloud}" - project: "{project}" - branch: "{branch}" - refspec: "refs/heads/{branch}" - artifacts: "" - - string: - name: - LIBUV_VERSION - # yamllint disable-line rule:line-length - default: "{libuv-version}" - description: "libuv version" - - string: - name: - RAPIDJSON_VERSION - # yamllint disable-line rule:line-length - default: "{rapidjson-version}" - description: "rapidjson version" - - string: - name: - OPENVSWITCH_VERSION - # yamllint disable-line rule:line-length - default: "{openvswitch-version}" - description: "openvswitch version" - - scm: - - gerrit-trigger-scm: - refspec: "" - choosing-strategy: "default" - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: "{build-timeout}" - - triggers: - - gerrit-trigger-patch-merged: - gerrit-server-name: "{gerrit-server-name}" - name: "opflex" - branch: "{branch}" - files: "**" - forbidden-files: "" - - builders: - - opflex-build: - mvn33: "mvn33" - stream: "{stream}" - - publishers: - - email-notification: - email-recipients: "{email-recipients}" - email-prefix: "[opflex]" - - lf-infra-publish diff --git a/jjb/opflex/opflex-macros.yaml b/jjb/opflex/opflex-macros.yaml deleted file mode 100644 index 1aa2ba658..000000000 --- a/jjb/opflex/opflex-macros.yaml +++ /dev/null @@ -1,102 +0,0 @@ ---- -# OpFlex macros - -- builder: - name: opflex-build - builders: - - maven-target: - maven-version: "mvn33" - pom: genie/pom.xml - goals: compile - - shell: !include-raw-escape: scripts/opflex-build.sh - -- builder: - name: "opflex-build-libuv" - builders: - - shell: !include-raw-escape: scripts/libuv-build.sh - -- builder: - name: "opflex-build-openvswitch" - builders: - - shell: !include-raw: scripts/openvswitch-build.sh - -- builder: - name: "opflex-build-rapidjson" - builders: - - shell: !include-raw-escape: scripts/rapidjson-build.sh - -- builder: - name: opflex-deploy-maven-file - # Todo: Remove this builder when the generic version of the builder is - # available in global-jjb. Change no: 5753 - # Deploy artifacts to a repository. - # - # The builder requires passing the following parameters - # REPO_ID: Repository ID - # GROUP_ID: Group ID of the repository - # UPLOAD_FILES_PATH: Path to directory containing one or more files - builders: - - lf-maven-install: - mvn-version: "{mvn-version}" - - lf-provide-maven-settings: - global-settings-file: "{global-settings-file}" - settings-file: "{settings-file}" - - inject: - properties-content: | - MAVEN_REPO_URL=file://$WORKSPACE/m2repo - REPO_ID={repo-id} - GROUP_ID={group-id} - UPLOAD_FILES_PATH={upload-files-dir} - - shell: !include-raw-escape: - - ../global-jjb/shell/common-variables.sh - - scripts/deploy-opflex.sh - -- builder: - name: opflex-maven-stage - # Todo: Migrate to the generic version of the builders available in - # global-jjb. Change no: 5753 - # Stage files to Nexus repository. - # - # The builder requires passing the following parameters - # REPO_ID : Repository ID - # GROUP_ID : Group ID of the repository - # UPLOAD_FILES_PATH : Path to directory containing one or more files - # STAGING_PROFILE_ID : Staging profile id created on Nexus - builders: - - lf-provide-maven-settings: - global-settings-file: "{global-settings-file}" - settings-file: "{settings-file}" - - lf-infra-create-netrc: - server-id: opendaylight-staging - - inject: - properties-content: | - STAGING_PROFILE_ID={staging-profile-id} - - shell: !include-raw-escape: - - ../global-jjb/shell/maven-stage.sh - -- scm: - name: "git-opflex-libuv" - scm: - - git: - url: https://github.com/libuv/libuv.git - branches: - - "refs/tags/v$LIBUV_VERSION" - wipe-workspace: true - -- scm: - name: "git-opflex-ovs-v2" - scm: - - git: - url: https://github.com/openvswitch/ovs.git - branches: - - "refs/tags/v$OPENVSWITCH_VERSION" - wipe-workspace: true - -- scm: - name: "git-opflex-rapidjson" - scm: - - git: - url: https://github.com/miloyip/rapidjson.git - branches: - - "refs/tags/v$RAPIDJSON_VERSION" - wipe-workspace: true diff --git a/jjb/opflex/opflex-thirdparty-dependencies.yaml b/jjb/opflex/opflex-thirdparty-dependencies.yaml deleted file mode 100644 index 039edcb07..000000000 --- a/jjb/opflex/opflex-thirdparty-dependencies.yaml +++ /dev/null @@ -1,193 +0,0 @@ ---- -- project: - name: opflex-dependencies - jobs: - - "opflex-thirdparty-libuv-{stream}" - - "opflex-thirdparty-rapidjson-{stream}" - - "opflex-thirdparty-openvswitch-{stream}" - - stream: - - oxygen: - branch: "master" - libuv-version: "1.20.2" - rapidjson-version: "1.1.0" - openvswitch-version: "2.12.0" - disable-job: true - - project: "opflex" - - mvn-opts: "" - mvn-params: "" - mvn-version: mvn33 - - # common parameters required for 'lf-infra-deploy-maven-file' builder - repo-id: "thirdparty" - upload-files-dir: "$WORKSPACE/upload_files" - -- job-template: - name: "opflex-thirdparty-libuv-{stream}" - - project-type: freestyle - node: centos7-builder-2c-8g - concurrent: true - - group-id: "libuv" - - properties: - - opendaylight-infra-properties: - build-days-to-keep: "{build-days-to-keep}" - - parameters: - - opendaylight-infra-parameters: - os-cloud: "{os-cloud}" - project: "{project}" - branch: "{branch}" - refspec: "refs/heads/{branch}" - artifacts: "{archive-artifacts}" - - lf-infra-maven-parameters: - mvn-opts: "{mvn-opts}" - mvn-params: "{mvn-params}" - mvn-version: "{mvn-version}" - staging-profile-id: "" - - string: - name: LIBUV_VERSION - # yamllint disable-line rule:line-length - default: "{libuv-version}" - description: "libuv version" - - scm: - - git-opflex-libuv - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: "{build-timeout}" - - builders: - - lf-infra-pre-build - - opflex-build-libuv - - lf-infra-deploy-maven-file: - global-settings-file: "global-settings" - settings-file: "opflex-settings" - mvn-version: "{mvn-version}" - repo-id: "{repo-id}" - group-id: "{group-id}" - upload-files-dir: "{upload-files-dir}" - maven-repo-url: "$NEXUS_URL/content/repositories/thirdparty" - - publishers: - - email-notification: - email-recipients: "{email-recipients}" - email-prefix: "[opflex]" - - lf-infra-publish - -- job-template: - name: "opflex-thirdparty-rapidjson-{stream}" - - project-type: freestyle - node: centos7-builder-2c-8g - concurrent: true - - group-id: "rapidjson" - - properties: - - opendaylight-infra-properties: - build-days-to-keep: "{build-days-to-keep}" - - parameters: - - opendaylight-infra-parameters: - os-cloud: "{os-cloud}" - project: "{project}" - branch: "{branch}" - refspec: "refs/heads/{branch}" - artifacts: "{archive-artifacts}" - - lf-infra-maven-parameters: - mvn-opts: "{mvn-opts}" - mvn-params: "{mvn-params}" - mvn-version: "{mvn-version}" - staging-profile-id: "" - - string: - name: RAPIDJSON_VERSION - # yamllint disable-line rule:line-length - default: "{rapidjson-version}" - description: "rapidjson version" - - scm: - - git-opflex-rapidjson - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: "{build-timeout}" - - builders: - - lf-infra-pre-build - - opflex-build-rapidjson - - lf-infra-deploy-maven-file: - global-settings-file: "global-settings" - settings-file: "opflex-settings" - mvn-version: "{mvn-version}" - repo-id: "{repo-id}" - group-id: "{group-id}" - upload-files-dir: "{upload-files-dir}" - maven-repo-url: "$NEXUS_URL/content/repositories/thirdparty" - - publishers: - - email-notification: - email-recipients: "{email-recipients}" - email-prefix: "[opflex]" - - lf-infra-publish - -- job-template: - name: "opflex-thirdparty-openvswitch-{stream}" - - project-type: freestyle - node: centos7-builder-2c-8g - concurrent: true - - group-id: "openvswitch" - - properties: - - opendaylight-infra-properties: - build-days-to-keep: "{build-days-to-keep}" - - parameters: - - opendaylight-infra-parameters: - os-cloud: "{os-cloud}" - project: "{project}" - branch: "{branch}" - refspec: "refs/heads/{branch}" - artifacts: "{archive-artifacts}" - - lf-infra-maven-parameters: - mvn-opts: "{mvn-opts}" - mvn-params: "{mvn-params}" - mvn-version: "{mvn-version}" - staging-profile-id: "" - - string: - name: OPENVSWITCH_VERSION - # yamllint disable-line rule:line-length - default: "{openvswitch-version}" - description: "openvswitch-version" - - scm: - - git-opflex-ovs-v2 - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: "{build-timeout}" - - builders: - - lf-infra-pre-build - - opflex-build-openvswitch - - lf-infra-deploy-maven-file: - global-settings-file: "global-settings" - settings-file: "opflex-settings" - mvn-version: "{mvn-version}" - repo-id: "{repo-id}" - group-id: "{group-id}" - upload-files-dir: "{upload-files-dir}" - maven-repo-url: "$NEXUS_URL/content/repositories/thirdparty" - - publishers: - - email-notification: - email-recipients: "{email-recipients}" - email-prefix: "[opflex]" - - lf-infra-publish diff --git a/jjb/opflex/opflex.yaml b/jjb/opflex/opflex.yaml deleted file mode 100644 index 7005227de..000000000 --- a/jjb/opflex/opflex.yaml +++ /dev/null @@ -1,140 +0,0 @@ ---- -- project: - name: opflex-release - jobs: - - "{project-name}-rtd-jobs": - build-node: centos7-builder-2c-2g - project-pattern: opflex - rtd-build-url: https://readthedocs.org/api/v2/webhook/odl-opflex/52373/ - rtd-token: bf99281866a176904cf12861789deaf04d4b0c45 - - "opflex-release-{stream}" - - stream: - - silicon: - branch: "master" - libuv-version: "1.20.2" - rapidjson-version: "1.1.0" - openvswitch-version: "2.12.0" - - aluminium: - branch: "stable/aluminium" - libuv-version: "1.20.2" - rapidjson-version: "1.1.0" - openvswitch-version: "2.12.0" - - project: "opflex" - project-name: "opflex" - - jdk: "openjdk8" - - branch: master - build-timeout: 60 - global-settings-file: global-settings - settings-file: opflex-settings - group-id: org.opendaylight.opflex - upload-files-dir: "$WORKSPACE/upload_files" - - # Used by the release job - staging-profile-id: 906b0d53d714e - -- job-template: - name: "opflex-release-{stream}" - - node: centos7-builder-2c-8g - jdk: "{java-version}" - disabled: "{disable-job}" - - ###################### - # Default parameters # - ###################### - - disable-job: false - build-timeout: 30 - java-version: openjdk8 - mvn-opts: "" - mvn-params: "" - mvn-version: mvn33 - stream: master - - properties: - - opendaylight-infra-properties: - build-days-to-keep: "{build-days-to-keep}" - - parameters: - - opendaylight-infra-parameters: - os-cloud: "{os-cloud}" - project: "{project}" - branch: "{branch}" - refspec: "refs/heads/{branch}" - artifacts: "" - - lf-infra-maven-parameters: - mvn-opts: "{mvn-opts}" - mvn-params: "{mvn-params}" - mvn-version: "{mvn-version}" - staging-profile-id: "{staging-profile-id}" - - string: - name: LIBUV_VERSION - # yamllint disable-line rule:line-length - default: "{libuv-version}" - description: "libuv version to pull from thirdparty repository" - - string: - name: RAPIDJSON_VERSION - # yamllint disable-line rule:line-length - default: "{rapidjson-version}" - description: "rapidjson version to pull from thirdparty repository" - - string: - name: OPENVSWITCH_VERSION - # yamllint disable-line rule:line-length - default: "{openvswitch-version}" - description: "openvswitch version to pull from thirdparty repository" - - scm: - - gerrit-trigger-scm: - refspec: "" - choosing-strategy: "default" - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: "{build-timeout}" - - builders: - - lf-infra-pre-build - - opflex-build: - mvn33: "{mvn-version}" - stream: "{stream}" - # todo: replace the builder with generic version in global-jjb - - opflex-deploy-maven-file: - global-settings-file: "{global-settings-file}" - settings-file: "{settings-file}" - mvn-version: "{mvn-version}" - repo-id: "{staging-profile-id}" - group-id: "{group-id}" - upload-files-dir: "{upload-files-dir}" - - lf-infra-create-netrc: - server-id: opendaylight-staging - # todo: replace the builder with generic version in global-jjb - - opflex-maven-stage: - global-settings-file: "{global-settings-file}" - settings-file: "{settings-file}" - staging-profile-id: "{staging-profile-id}" - - lf-provide-maven-settings-cleanup - - publishers: - - email-notification: - email-recipients: "{email-recipients}" - email-prefix: "[opflex]" - - lf-infra-publish - -- project: - name: opflex-info - jobs: - - gerrit-info-yaml-verify - project: opflex - project-name: opflex - branch: master - build-node: centos7-builder-2c-1g - -- project: - name: opflex-view - views: - - project-view - project-name: opflex diff --git a/jjb/opflex/scripts/deploy-opflex.sh b/jjb/opflex/scripts/deploy-opflex.sh deleted file mode 100644 index 3ee1e2f41..000000000 --- a/jjb/opflex/scripts/deploy-opflex.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash -l -# SPDX-License-Identifier: EPL-1.0 -############################################################################## -# Copyright (c) 2017 The Linux Foundation and others. -# -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Eclipse Public License v1.0 -# which accompanies this distribution, and is available at -# http://www.eclipse.org/legal/epl-v10.html -############################################################################## -# -# Todo: remove this script once change no 5753 is merged in global-jjb -# This script publishes OpFlex artifacts to Nexus repository. -# -# $MAVEN_REPO_URL : Jenkins global variable should be defined. -# $REPO_ID : Provided by a job parameter. -# $GROUP_ID : Provided by a job parameter. -# $UPLOAD_FILES_PATH : Provided by a job parameter. -echo "---> scripts/deploy-opflex.sh" - -# DO NOT enable -u because $MAVEN_PARAMS and $MAVEN_OPTIONS could be unbound. -# Ensure we fail the job if any steps fail. -set -e -o pipefail -set +u - -export MAVEN_OPTIONS -export MAVEN_PARAMS - -DEPLOY_LOG="$WORKSPACE/archives/deploy-maven-file.log" -mkdir -p "$WORKSPACE/archives" - -while IFS="" read -r file -do - lftools deploy maven-file "$MAVEN_REPO_URL" \ - "$REPO_ID" \ - "$file" \ - -b "$MVN" \ - -g "$GROUP_ID" \ - -p "$MAVEN_PARAMS $MAVEN_OPTIONS" \ - |& tee "$DEPLOY_LOG" -done < <(find "$UPLOAD_FILES_PATH" -type f -name "*") diff --git a/jjb/opflex/scripts/libuv-build.sh b/jjb/opflex/scripts/libuv-build.sh deleted file mode 100644 index dfa16f980..000000000 --- a/jjb/opflex/scripts/libuv-build.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash -# SPDX-License-Identifier: EPL-1.0 -############################################################################## -# Copyright (c) 2017 The Linux Foundation and others. -# -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Eclipse Public License v1.0 -# which accompanies this distribution, and is available at -# http://www.eclipse.org/legal/epl-v10.html -############################################################################## -echo "---> scripts/libuv-build.sh" - -set -e -set -x - -./autogen.sh -ROOT=/tmp/opflex-prefix -./configure --prefix=$ROOT -mkdir install-root -DESTDIR=$(pwd)/install-root make clean install -pushd install-root -tar cvzf "libuv-$LIBUV_VERSION.tar.gz" -- * -# Move tarball to dir of files that will be uploaded to Nexus -UPLOAD_FILES_PATH="$WORKSPACE/upload_files" -mkdir -p "$UPLOAD_FILES_PATH" -mv -- *.tar.gz "$_" -popd diff --git a/jjb/opflex/scripts/openvswitch-build.sh b/jjb/opflex/scripts/openvswitch-build.sh deleted file mode 100644 index 61ae9b4b8..000000000 --- a/jjb/opflex/scripts/openvswitch-build.sh +++ /dev/null @@ -1,44 +0,0 @@ -#!/bin/bash -# SPDX-License-Identifier: EPL-1.0 -############################################################################## -# Copyright (c) 2017 The Linux Foundation and others. -# -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Eclipse Public License v1.0 -# which accompanies this distribution, and is available at -# http://www.eclipse.org/legal/epl-v10.html -############################################################################## -# Build script for openvswitch - -set -e -set -x - -echo "---> scripts/openvswitch-build.sh" - -ROOT=/tmp/opflex-prefix -DESTDIR=install-root - -mkdir -p "$DESTDIR" - -./boot.sh -./configure --prefix="$ROOT" --enable-shared -make -j4 -DESTDIR=$(pwd)/$DESTDIR make install - -if [[ $OPENVSWITCH_VERSION =~ 2.12.0 ]]; then - mkdir -p $DESTDIR/$ROOT/include/openvswitch/openvswitch - mv $DESTDIR/$ROOT/include/openvswitch/*.h $DESTDIR/$ROOT/include/openvswitch/openvswitch - mv $DESTDIR/$ROOT/include/openflow $DESTDIR/$ROOT/include/openvswitch - cp -t "$DESTDIR/$ROOT/include/openvswitch/" include/*.h - find lib -name "*.h" -exec cp --parents -t "$DESTDIR/$ROOT/include/openvswitch/" {} \; -elif [[ $OPENVSWITCH_VERSION =~ noiro ]]; then - find lib ofproto -name "*.h" -exec cp --parents -t "$DESTDIR/$ROOT/include/openvswitch/" {} \; -fi - -pushd $DESTDIR -tar cvzf "openvswitch-$OPENVSWITCH_VERSION.tar.gz" -- * -# Move tarball to dir of files that will be uploaded to Nexus -UPLOAD_FILES_PATH="$WORKSPACE/upload_files" -mkdir -p "$UPLOAD_FILES_PATH" -mv -- *.tar.gz "$_" -popd diff --git a/jjb/opflex/scripts/opflex-build.sh b/jjb/opflex/scripts/opflex-build.sh deleted file mode 100644 index 859b1cbe5..000000000 --- a/jjb/opflex/scripts/opflex-build.sh +++ /dev/null @@ -1,84 +0,0 @@ -#!/bin/bash -# SPDX-License-Identifier: EPL-1.0 -############################################################################## -# Copyright (c) 2017 The Linux Foundation and others. -# -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Eclipse Public License v1.0 -# which accompanies this distribution, and is available at -# http://www.eclipse.org/legal/epl-v10.html -############################################################################## -echo "---> scripts/opflex-build.sh" - -# Build script for opflex - -set -e -set -x - -ROOT=/tmp/opflex-prefix - -function cleanup { - if [ -d "$ROOT" ]; then rm -rf "$ROOT"; fi -} - -# create dependency root prefix -cleanup -mkdir -p "$ROOT" -trap cleanup EXIT - -# Download the artifacts from nexus thirdparty -wget -nv "${NEXUS_URL}/service/local/repositories/thirdparty/content/openvswitch/openvswitch/${OPENVSWITCH_VERSION}/openvswitch-${OPENVSWITCH_VERSION}.tar.gz" -wget -nv "${NEXUS_URL}/service/local/repositories/thirdparty/content/rapidjson/rapidjson/${RAPIDJSON_VERSION}/rapidjson-${RAPIDJSON_VERSION}.tar.gz" -wget -nv "${NEXUS_URL}/service/local/repositories/thirdparty/content/libuv/libuv/${LIBUV_VERSION}/libuv-${LIBUV_VERSION}.tar.gz" - -tar -xz -C "$ROOT" --strip-components=2 -f "libuv-${LIBUV_VERSION}.tar.gz" -tar -xz -C "$ROOT" --strip-components=2 -f "rapidjson-${RAPIDJSON_VERSION}.tar.gz" -tar -xz -C "$ROOT" --strip-components=2 -f "openvswitch-${OPENVSWITCH_VERSION}.tar.gz" - -export PATH="$ROOT/bin:$PATH" -export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$ROOT/lib" -export PKG_CONFIG_PATH="$ROOT/lib/pkgconfig" - -# Move OpFlex artifacts to upload files directory -UPLOAD_FILES_PATH="$WORKSPACE/upload_files" -mkdir -p "$UPLOAD_FILES_PATH" - -# build libopflex -pushd libopflex -./autogen.sh -./configure --prefix="$ROOT" \ - --with-buildversion="$BUILD_NUMBER" \ - CPPFLAGS="-isystem $ROOT/include" \ - CXXFLAGS="-Wall" -make -j4 -if ! make check; then find . -name test-suite.log -exec cat {} \; && false; fi -make install -make dist -mv -- *.tar.gz "$UPLOAD_FILES_PATH" -popd - -# build libmodelgbp -pushd genie -CLASSPATH=target/classes java org.opendaylight.opflex.genie.Genie -pushd target/libmodelgbp -bash autogen.sh -./configure --prefix="$ROOT" -make -j2 -make install -make dist -mv -- *.tar.gz "$UPLOAD_FILES_PATH" -popd -popd - -# build agent-ovs -pushd agent-ovs -./autogen.sh -./configure --prefix="$ROOT" \ - --with-buildversion="$BUILD_NUMBER" \ - CPPFLAGS="-isystem $ROOT/include" \ - CXXFLAGS="-Wall" -make -j4 -if ! make check; then find . -name test-suite.log -exec cat {} \; && false; fi -make dist -mv -- *.tar.gz "$UPLOAD_FILES_PATH" -popd diff --git a/jjb/opflex/scripts/rapidjson-build.sh b/jjb/opflex/scripts/rapidjson-build.sh deleted file mode 100644 index 1dc144635..000000000 --- a/jjb/opflex/scripts/rapidjson-build.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/bash -# SPDX-License-Identifier: EPL-1.0 -############################################################################## -# Copyright (c) 2017 The Linux Foundation and others. -# -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Eclipse Public License v1.0 -# which accompanies this distribution, and is available at -# http://www.eclipse.org/legal/epl-v10.html -############################################################################## -echo "---> scripts/rapidjson-build.sh" - -# Build script for rapidjson - -set -e -set -x - -ROOT=/tmp/opflex-prefix -DESTDIR=install-root - -mkdir -p "$DESTDIR/$ROOT/lib/pkgconfig" -mkdir -p "$DESTDIR/$ROOT/include" - -cp -R include/rapidjson "$DESTDIR/$ROOT/include" -sed -e "s|@INCLUDE_INSTALL_DIR@|$ROOT/include|" \ - -e "s|@PROJECT_NAME@|RapidJSON|" \ - -e "s|@LIB_VERSION_STRING@|1.1.0|" RapidJSON.pc.in > \ - "$DESTDIR/$ROOT/lib/pkgconfig/RapidJSON.pc" - -pushd $DESTDIR -tar cvzf "rapidjson-$RAPIDJSON_VERSION.tar.gz" -- * -# Move tarball to dir of files that will be uploaded to Nexus -UPLOAD_FILES_PATH="$WORKSPACE/upload_files" -mkdir -p "$UPLOAD_FILES_PATH" -mv -- *.tar.gz "$_" -popd