ci: add step to Jenkinsfile to check if we are reuse compliant
@@ -493,6 +493,9 @@ def generateBasicCheckStages() {
// Check if release notes have been updated
tasks << buildCheckReleaseNotes()
+ // Check for reuse compliancy
+ tasks << buildCheckReuseCompliant()
+
// Check formatting of c and CMake files
tasks << buildFormatChecks()
@@ -838,6 +841,19 @@ def buildCheckReleaseNotes() {
}]
}
+/* Stage checking if for reuse compliancy */
+def buildCheckReuseCompliant() {
+ def stageName = "check-reuse-compliant"
+ return [(stageName): {
+ maybeStage(stageName, !isMaster()) {
+ withDockerEnv(DOCKER_IMAGES.bullseye, [DockerOpts.MOUNT_MIRROR]) {
+ sh "reuse lint"
+ deleteDir()
+ }
+ }
+ }]
+}
+
/* Stage running Icheck to see if the API has been modified */
def buildIcheck() {
def stageName = "icheck"
