patch jenkins jobs for opa-pdp 83/139283/2
authorgururajarao79 <gb00566633@techmahindra.com>
Wed, 20 Nov 2024 09:39:51 +0000 (10:39 +0100)
committergururajarao79 <gb00566633@techmahindra.com>
Thu, 21 Nov 2024 15:44:10 +0000 (16:44 +0100)
Issue-ID: POLICY-5167
Change-Id: I38d158446084f2822cefb6499b5b710f47e27e84
Signed-off-by: gururajarao79 <gb00566633@techmahindra.com>
jjb/global-macros.yaml
jjb/policy-opa-pdp/build-opa-pdp-docker-image.sh [new file with mode: 0644]
jjb/policy-opa-pdp/policy-opa-pdp.yaml

index 8fb7afe..245190f 100644 (file)
             <goVersion>Golang 1.14</goVersion>
             </org.jenkinsci.plugins.golang.GolangBuildWrapper>
 
+- wrapper:
+    name: golang123
+    wrappers:
+      - raw:
+          xml: |
+            <org.jenkinsci.plugins.golang.GolangBuildWrapper plugin="golang@1.2">
+            <goVersion>Golang 1.23</goVersion>
+            </org.jenkinsci.plugins.golang.GolangBuildWrapper>
+
 - 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 (file)
index 0000000..3149f2b
--- /dev/null
@@ -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
+
index 517edf8..ae2f4cc 100644 (file)
     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"