Skip to content

Commit

Permalink
Using TCC in Jenkins
Browse files Browse the repository at this point in the history
  • Loading branch information
sivaprasadreddy committed Jan 9, 2024
1 parent 0a77830 commit 1cbfa5b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Setup Java 17
- name: Setup Java 21
uses: actions/setup-java@v3
with:
java-version: 17
java-version: 21
distribution: 'temurin'
cache: 'maven'

Expand Down
35 changes: 23 additions & 12 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,24 @@
pipeline {
agent any

triggers { pollSCM 'H/2 * * * *' } // poll every 2 mins

stages {
stage('Build') {
steps {
sh './mvnw verify'
}
}
}
}
agent any

triggers { pollSCM 'H/2 * * * *' }

environment {
TC_CLOUD_TOKEN = credentials('tc-cloud-token-secret-id')
}

stages {

stage('TCC SetUp') {
steps {
sh "curl -fsSL https://get.testcontainers.cloud/bash | sh"
}
}

stage('Build') {
steps {
sh './mvnw verify'
}
}
}
}

0 comments on commit 1cbfa5b

Please sign in to comment.