This repository has been archived by the owner on Apr 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4bcd2f0
commit 9ea880c
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
jenkins/pipelines/cdt/diagnostics/cdt-master-run-dash-licenses.Jenkinsfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
pipeline { | ||
agent { | ||
kubernetes { | ||
yamlFile 'jenkins/pod-templates/cdt-platform-sdk.yaml' | ||
} | ||
} | ||
options { | ||
timestamps() | ||
disableConcurrentBuilds() | ||
} | ||
stages { | ||
stage('Git Clone') { | ||
steps { | ||
container('cdt') { | ||
timeout(activity: true, time: 20) { | ||
/* Running the git fetch command manually is a workaround. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=560283#c16 */ | ||
sh 'git config remote.origin.url https://git.eclipse.org/r/cdt/org.eclipse.cdt.git' | ||
sh 'git fetch --no-tags --force --progress -- https://git.eclipse.org/r/cdt/org.eclipse.cdt.git +refs/heads/*:refs/remotes/origin/*' | ||
} | ||
git branch: 'master', url: 'https://git.eclipse.org/r/cdt/org.eclipse.cdt.git' | ||
} | ||
} | ||
} | ||
stage('Run Dash Licenses Check') { | ||
steps { | ||
container('cdt') { | ||
timeout(activity: true, time: 20) { | ||
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' | ||
} | ||
} | ||
} | ||
} |