Skip to content

Commit

Permalink
Setup CYPRESS_INSTALL_BINARY Jenkinsfile.prod.nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
rgdoliveira committed Jul 4, 2023
1 parent 7c3ef25 commit cde49a4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .ci/jenkins/Jenkinsfile.prod.nightly
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ pipeline {
// Fetch versions from pom if not provided
env.PRODUCT_VERSION = "${PRODUCT_VERSION ?: parseVersionFromPom('kiegroup/kogito-runtimes', getBuildBranch())}"
env.DROOLS_PRODUCT_VERSION = "${DROOLS_PRODUCT_VERSION ?: parseVersionFromPom('kiegroup/drools', getDroolsBranch())}"

// Needed by Kogito Apps
setupCypressEnv('9.7.0')
}
}
}
Expand Down Expand Up @@ -212,6 +215,12 @@ def getMessageBody(String mavenRepositoryFileUrl, String alreadyBuiltProjects, M
}"""
}

def setupCypressEnv(String cypressVersion) {
if (env.CYPRESS_BINARY_URL) {
env.CYPRESS_INSTALL_BINARY = "${CYPRESS_BINARY_URL}/cypress-${cypressVersion}.zip"
}
}

def gitHashesToCollection(String gitInformationHashes) {
return gitInformationHashes.replaceAll(/([\w\d\-\_\.]*\/)([\w\d\-\_\.]*)/,'$2').split(';').findAll { it.split('=').size() }.collectEntries{ [it.split('=')[0], it.split('=')[1]] }
}
Expand Down

0 comments on commit cde49a4

Please sign in to comment.