Setup per Golang project build script 62/104362/1
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>
Wed, 25 Mar 2020 12:42:17 +0000 (13:42 +0100)
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>
Wed, 25 Mar 2020 12:42:17 +0000 (13:42 +0100)
Different Golang applications require custom
build script to test all build procedure steps
so moving it's declaration to subproject definition.

Change-Id: Idad2b5058b711fc2fea190ef70e5ca0fd8fbd91e
Issue-ID: INT-1498
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
jjb/integration/integration.yaml

index 62a0bed..ef112ea 100644 (file)
     golangver: 'golang112'
     mvn-settings: 'integration-settings'
     archive-artifacts: ''
-    build-node: ubuntu1804-docker-8c-8g
     jobs:
-      - '{project-name}-{stream}-{subproject}-verify-golang':
+      - '{project-name}-{stream}-{subproject}-verify-golang'
+    subproject:
+      - 'test-security-k8s':
+          path: 'test/security/k8s'
+          pattern: '{path}/**'
+          build-node: ubuntu1804-builder-4c-4g
           script: |
               #!/bin/bash
               set -ex # Fail build if any setup step fails
               cd $WORKSPACE/{path}
               make test
-    subproject:
-      - 'test-security-k8s':
-          path: 'test/security/k8s'
-          pattern: '{path}/**'
       - 'test-security-sslendpoints':
           path: 'test/security/sslendpoints'
           pattern: '{path}/**'
+          build-node: ubuntu1804-docker-8c-8g
+          script: |
+              #!/bin/bash
+              set -ex # Fail build if any setup step fails
+              cd $WORKSPACE/{path}
+              rm -rf $WORKSPACE/{path}/bin
+              make docker-build
+              make test
+              make clean
     stream:
       - 'master':
           branch: 'master'