Skip to content

Commit

Permalink
Fix pitest failure in nitghtly pipeline (#237)
Browse files Browse the repository at this point in the history
* Update gradle-wrapper.properties

* Update build.gradle

* Update build.gradle

* Update build.gradle

* Update build.gradle

* Update gradle-wrapper.properties

* Update build.gradle

* Update gradle-wrapper.properties

* Update build.gradle

* updated pitest libs

* test jenkins pitest stage

* updated file

* reverted jenkins_cnp to default
  • Loading branch information
dinesh1patel authored Dec 3, 2024
1 parent aacf97a commit a38a6bf
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 17 deletions.
4 changes: 2 additions & 2 deletions Jenkinsfile_CNP
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ withPipeline(type, product, component) {

def githubApi = new GithubAPI(this)
if (!githubApi.getLabelsbyPattern(env.BRANCH_NAME, "keep-helm")) {
//enableCleanupOfHelmReleaseAlways()
//enableCleanupOfHelmReleaseAlways()
}
}
onNonPR {
Expand Down Expand Up @@ -140,7 +140,7 @@ withPipeline(type, product, component) {

afterAlways('akschartsinstall') {

// check data-store instance is up
// check data-store instance is up
def healthChecker = new HealthChecker(this)
healthChecker.check("$CCD_DATA_STORE_API_BASE_URL/health", 10, 40)

Expand Down
25 changes: 11 additions & 14 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,9 @@ plugins {
id 'uk.gov.hmcts.java' version '0.12.57'
id 'com.github.hmcts.rse-cft-lib' version '0.19.1214'
id 'com.github.spacialcircumstances.gradle-cucumber-reporting' version '0.1.25'
id 'info.solidsoft.pitest' version '1.15.0'

id 'info.solidsoft.pitest' version '1.15.0' apply false
}

apply plugin: "info.solidsoft.pitest"

group = 'uk.gov.hmcts.reform'
version = '0.0.1'

Expand Down Expand Up @@ -242,6 +239,7 @@ sonarqube {
property "sonar.coverage.exclusions", "**/ccd/ApplicationBootstrap.java"
property "sonar.pitest.mode", "reuseReport"
property "sonar.pitest.reportsDirectory", "build/reports/pitest"

}
}

Expand Down Expand Up @@ -270,9 +268,10 @@ repositories {
maven { url 'https://jitpack.io' }
}

apply plugin: 'info.solidsoft.pitest'

pitest {
pitestVersion.set('1.7.4')
junit5PluginVersion.set('0.15')
junit5PluginVersion.set('1.2.1')
targetClasses = ['uk.gov.hmcts.reform.*']
excludedClasses = [
'uk.gov.hmcts.reform.ccd.madeup.*'
Expand Down Expand Up @@ -312,9 +311,6 @@ ext {
wiremockVersion = '2.35.0'
elasticsearchVersion = '7.17.8'
testcontainersVersion = '1.20.2'
gradlePitestVersion = '1.9.0'
pitestVersion = '1.9.11'
sonarPitestVersion = '0.5'
}

dependencyManagement {
Expand All @@ -328,7 +324,6 @@ dependencies {
// Implementation dependencies
implementation group: 'org.springframework.boot', name: 'spring-boot-starter'


implementation group: 'org.springframework', name:'spring-webmvc', version: springFrameworkVersion

implementation group: 'org.springframework.security', name: 'spring-security-config', version: springFrameworkSecurityVersion
Expand Down Expand Up @@ -363,6 +358,12 @@ dependencies {

implementation group: 'io.github.openfeign', name: 'feign-jackson', version: '12.1'

implementation group: 'org.pitest', name: 'pitest', version: '1.16.3'
implementation group: 'info.solidsoft.gradle.pitest', name: 'gradle-pitest-plugin', version: '1.15.0'
implementation (group: 'org.codehaus.sonar-plugins', name: 'sonar-pitest-plugin', version: '0.5') {
exclude module: "guava"
}

annotationProcessor group: 'org.projectlombok', name: 'lombok', version: lombokVersion
implementation group: 'org.projectlombok', name: 'lombok', version: lombokVersion

Expand All @@ -376,10 +377,6 @@ dependencies {
}
testAnnotationProcessor group: 'org.projectlombok', name: 'lombok', version: lombokVersion

testImplementation group: 'org.pitest', name: 'pitest', version: pitestVersion
testImplementation group: 'info.solidsoft.gradle.pitest', name: 'gradle-pitest-plugin', version: gradlePitestVersion
testImplementation group: 'org.codehaus.sonar-plugins', name: 'sonar-pitest-plugin', version: sonarPitestVersion

// CFTLib dependencies
cftlibImplementation group: 'org.awaitility', name: 'awaitility', version: '4.2.0'
cftlibImplementation group: 'org.testcontainers', name: 'testcontainers', version: testcontainersVersion
Expand Down
3 changes: 2 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.1-all.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

0 comments on commit a38a6bf

Please sign in to comment.