Fix: Update gradle job for build and publish 37/72937/2 v0.90.6
authorJessica Wagantall <jwagantall@linuxfoundation.org>
Wed, 5 Jun 2024 19:20:58 +0000 (12:20 -0700)
committerJessica Wagantall <jwagantall@linuxfoundation.org>
Wed, 5 Jun 2024 19:37:58 +0000 (12:37 -0700)
Build and publish should not run on a daily basis.
They should only run on patchset created and patchset merged.
Remove script variables which are set by the job caller. Removing them
from the script since it was removing its values.

Issue: RELENG-5405
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
Change-Id: I8717fcc935d34952b5b608269a0e6f63ba9fd2a4

jjb/lf-gradle-jobs.yaml
releasenotes/notes/gradle-update-triggers-fb1969cb37cc510c.yaml [new file with mode: 0644]
shell/nexus-upload.sh

index a7ba72b..1b1824d 100644 (file)
           choosing-strategy: gerrit
 
     triggers:
-      - timed: "{obj:cron}"
       - gerrit:
           server-name: "{gerrit-server-name}"
           trigger-on: "{obj:gerrit_gradle_verify_triggers}"
           choosing-strategy: default
 
     triggers:
-      - timed: "{obj:cron}"
       - gerrit:
           server-name: "{gerrit-server-name}"
           trigger-on: "{obj:gerrit_gradle_merge_triggers}"
diff --git a/releasenotes/notes/gradle-update-triggers-fb1969cb37cc510c.yaml b/releasenotes/notes/gradle-update-triggers-fb1969cb37cc510c.yaml
new file mode 100644 (file)
index 0000000..ec29368
--- /dev/null
@@ -0,0 +1,5 @@
+---
+fixes:
+  - |
+    Remove daily triggers for gradle build and publish jobs.
+    Remove env variables from script which are passed by the job caller.
index 0141f24..c765e0e 100644 (file)
@@ -3,9 +3,6 @@
 # Copyright 2024 The LMinux Foundation <matthew.watkins@linuxfoundation.org>
 # Uncomment to enable debugging
 # set -vx
-# Initialise variables
-DIRECTORY="."
-FILE_EXTENSION=""
 # Count file upload successes/failures
 SUCCESSES="0"; FAILURES="0"
 # Shared functions