From 74f321cbca4e2e727a3d2bb26458eb12165edb39 Mon Sep 17 00:00:00 2001 From: Jonah Graham Date: Tue, 29 Nov 2022 14:14:24 -0500 Subject: [PATCH] Migrate run-dash-licenses from cdt-infra to main CDT repo --- releng/run-dash-licenses.Jenkinsfile | 32 ++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 releng/run-dash-licenses.Jenkinsfile diff --git a/releng/run-dash-licenses.Jenkinsfile b/releng/run-dash-licenses.Jenkinsfile new file mode 100644 index 00000000000..a58bc26e516 --- /dev/null +++ b/releng/run-dash-licenses.Jenkinsfile @@ -0,0 +1,32 @@ +pipeline { + agent { + kubernetes { + yamlFile 'jenkins/pod-templates/cdt-full-pod-plus-eclipse-install.yaml' + } + } + options { + timestamps() + disableConcurrentBuilds() + } + stages { + stage('Run Dash Licenses Check') { + steps { + container('cdt') { + timeout(activity: true, time: 20) { + withEnv(['MAVEN_OPTS=-XX:MaxRAMPercentage=60.0']) { + sh 'MVN="/usr/share/maven/bin/mvn -Dmaven.repo.local=/home/jenkins/.m2/repository \ + --settings /home/jenkins/.m2/settings.xml" ./releng/scripts/run_dash_licenses.sh' + } + } + } + } + } + } + post { + always { + container('cdt') { + archiveArtifacts allowEmptyArchive: true, artifacts: '*.log' + } + } + } +}