From 7c7fae249829f23b77786b53acea27e81d8c6a13 Mon Sep 17 00:00:00 2001 From: gururajarao79 Date: Wed, 20 Nov 2024 10:39:51 +0100 Subject: [PATCH] patch jenkins jobs for opa-pdp Issue-ID: POLICY-5167 Change-Id: I38d158446084f2822cefb6499b5b710f47e27e84 Signed-off-by: gururajarao79 --- jjb/global-macros.yaml | 9 +++++++++ jjb/policy-opa-pdp/build-opa-pdp-docker-image.sh | 25 ++++++++++++++++++++++++ jjb/policy-opa-pdp/policy-opa-pdp.yaml | 18 +++++++++++++++++ 3 files changed, 52 insertions(+) create mode 100644 jjb/policy-opa-pdp/build-opa-pdp-docker-image.sh diff --git a/jjb/global-macros.yaml b/jjb/global-macros.yaml index 8fb7afef5..245190f45 100644 --- a/jjb/global-macros.yaml +++ b/jjb/global-macros.yaml @@ -474,6 +474,15 @@ Golang 1.14 +- wrapper: + name: golang123 + wrappers: + - raw: + xml: | + + Golang 1.23 + + - wrapper: # This wrapper is required for all jobs as it configures the wrappers # needed by the eCOMP infra. diff --git a/jjb/policy-opa-pdp/build-opa-pdp-docker-image.sh b/jjb/policy-opa-pdp/build-opa-pdp-docker-image.sh new file mode 100644 index 000000000..3149f2b1b --- /dev/null +++ b/jjb/policy-opa-pdp/build-opa-pdp-docker-image.sh @@ -0,0 +1,25 @@ +#!/bin/bash +# - +# ========================LICENSE_START================================= +# Copyright (C) 2024: Deutsche Telecom +# +# 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. +# ========================LICENSE_END=================================== +# + +set -o xtrace + +echo '============== CALLING SCRIPT TO BUILD DOCKER IMAGES =================' +cd ./build +./build_image.sh + diff --git a/jjb/policy-opa-pdp/policy-opa-pdp.yaml b/jjb/policy-opa-pdp/policy-opa-pdp.yaml index 517edf8b9..ae2f4cc45 100644 --- a/jjb/policy-opa-pdp/policy-opa-pdp.yaml +++ b/jjb/policy-opa-pdp/policy-opa-pdp.yaml @@ -13,3 +13,21 @@ branch: master jobs: - gerrit-info-yaml-verify + +- project: + name: policy-opa-pdp-go-v123 + project: policy/opa-pdp + project-name: policy-opa-pdp + path: "." + golangver: "golang123" + build-node: ubuntu1804-docker-8c-8g + branch: master + jobs: + - "{project-name}-{stream}-verify-golang" + - "{project-name}-{stream}-merge-golang" + - "{project-name}-{stream}-docker-golang-shell-daily": + script: !include-raw-escape: "build-opa-pdp-docker-image.sh" + stream: + - "master": + branch: "master" + mvn-settings: "policy-opa-pdp-settings" -- 2.16.6