Skip to content

Commit

Permalink
Jenkinsfile comments
Browse files Browse the repository at this point in the history
  • Loading branch information
garcanam committed Dec 16, 2024
1 parent d8bb6f5 commit e4f82a9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions e2e-spock-geb/Jenkinsfile.template
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
// See https://www.opendevstack.org/ods-documentation/ for usage and customization.

// Import the shared Jenkins library
@Library('ods-jenkins-shared-library@@shared_library_ref@') _
node {
dockerRegistry = env.DOCKER_REGISTRY
}

// Define the Jenkins pipeline
odsComponentPipeline(
imageStreamTag: '@ods_namespace@/jenkins-agent-jdk:@agent_image_tag@',
branchToEnvironmentMapping: [
Expand All @@ -16,6 +15,7 @@ odsComponentPipeline(
odsComponentStageScanWithSonar(context)
}

// Define the test stage
def stageTest(def context) {
def javaOpts = "-Xmx512m"
def gradleTestOpts = "-Xmx128m"
Expand All @@ -37,6 +37,8 @@ def stageTest(def context) {
"OPENSHIFT_PROJECT=${context.targetProject}",
"OPENSHIFT_APP_DOMAIN=${context.getOpenshiftApplicationDomain()}"
]) {
// Use credentials for SauceLabs authentication
// You can remove this block if you are not using SauceLabs
withCredentials([
usernamePassword(credentialsId: "${context.projectId}-cd-sauce-labs-user-access-key", passwordVariable: 'SAUCE_LABS_ACCESS_KEY', usernameVariable: 'SAUCE_LABS_USERNAME'),
]) {
Expand Down

0 comments on commit e4f82a9

Please sign in to comment.