diff --git a/Jenkinsfile b/Jenkinsfile index 2bf2861b9..4a20761d8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -115,31 +115,6 @@ pipeline { } - /********************************************* - * Checkstyle - *********************************************/ - stage('Checkstyle (Java 25)') { - agent { - docker { - image 'maven-java25:latest' - args "${DOCKER_ARGS}" - } - } - steps { - echo 'Running Checkstyle analysis...' - sh './mvnw checkstyle:checkstyle' - } - post { - always { - recordIssues( - enabledForFailure: true, - tool: checkstyle(pattern: '**/target/checkstyle-result.xml') - ) - } - } - } - - /********************************************* * Package JAR *********************************************/ diff --git a/jenkins.yaml b/jenkins.yaml new file mode 100644 index 000000000..19d034d7c --- /dev/null +++ b/jenkins.yaml @@ -0,0 +1,55 @@ +jenkins: + systemMessage: "Automated Jenkins via JCasC" + + nodes: + - permanent: + name: "master" + remoteFS: "/var/jenkins_home" + numExecutors: 2 + +unclassified: + sonarGlobalConfiguration: + installations: + - name: "SonarQubeServer" + serverUrl: "http://sonarqube:9000" + credentialsId: "sonar-token" + +credentials: + system: + domainCredentials: + - credentials: + - string: + id: "sonar-token" + description: "SonarQube Token" + secret: "${SONAR_AUTH_TOKEN}" + +tool: + maven: + installations: + - name: "Maven 3.9.5" + properties: + - installSource: + installers: + - maven: + id: "3.9.5" + + jdk: + installations: + - name: "JDK 25" + home: "/usr/lib/jvm/jdk-25" + +plugins: + required: + - git + - workflow-aggregator + - sonar + - jacoco + - pipeline-github-lib + - docker-workflow + - timestamper + - warnings-ng + - zap + - configuration-as-code + - blueocean + - prometheus + - htmlpublisher