Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
@Library('ni-utils') _

//service name is extrapolated from repository name check
def svcName = currentBuild.rawBuild.project.parent.displayName

//get pod template definition
def pod = libraryResource 'com/naturalint/kafka-agent-gradle.yaml'
def template_vars = [
'java_version': '8'
]
pod = renderTemplate(pod, template_vars)
print pod

// Define sharedLibrary
def sharedLibrary = new com.naturalint.kafkaConnectGradle()

// Custom maven build command
// def mavenBuildCommand=""

// Custom unit test command

// Set slack channel
def slackChannel = "kafka-connect-cicd"
//def mavenBuildCommand = "./gradlew build :spotlessApply"
def mavenBuildCommand = "./gradlew publishToMavenLocal"

// Args for pipeline
def initiateData = [projectPathVersion: "client/java", projectArtifact: "jar", projectBucketName: "openlineage", grepVersion: "version"]
def compileData = [run: true, maven_build_cmd: mavenBuildCommand, projectToCompile: ["client/java","integration/spark" ]]
def testData = [run: false] // Default is: python -m unittest
def artifactData = [run: true]
def intTestData = [run: false]
def deploymentData = [run: false]
def buildCommands = [
initiateData: initiateData,
compileData: compileData,
testData: testData,
artifactData: artifactData,
intTestData: intTestData,
deploymentData: deploymentData
]

timestamps {
commonPipeline(sharedLibrary, svcName, buildCommands, pod, slackChannel)
}