Skip to content
Closed
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
1b80941
Jenkinsfile for power added
Vaibhav-Nazare May 29, 2023
4320b08
Merge branch 'apache:trunk' into trunk
Vaibhav-Nazare Jun 5, 2023
b801f3c
Update Jenkinsfile
Vaibhav-Nazare Jun 5, 2023
1e7f8cb
Merge branch 'apache:trunk' into trunk
Vaibhav-Nazare Jun 6, 2023
adf51e2
Update node labels
Vaibhav-Nazare Jun 6, 2023
ce9b359
Merge branch 'apache:trunk' into trunk
Vaibhav-Nazare Jun 6, 2023
f73eeaa
Merge branch 'apache:trunk' into trunk
Vaibhav-Nazare Jun 6, 2023
cc7bd7c
Merge branch 'apache:trunk' into trunk
Vaibhav-Nazare Jun 7, 2023
ddfa442
Merge branch 'apache:trunk' into trunk
Vaibhav-Nazare Jun 19, 2023
80e3419
Merge branch 'apache:trunk' into trunk
Vaibhav-Nazare Jun 23, 2023
3d1d0a0
Merge branch 'apache:trunk' into trunk
Vaibhav-Nazare Jul 20, 2023
88376a2
Merge branch 'apache:trunk' into trunk
Vaibhav-Nazare Aug 21, 2023
7f10c7e
Merge branch 'apache:trunk' into trunk
Vaibhav-Nazare Sep 20, 2023
c5b7c4f
Merge branch 'apache:trunk' into trunk
Vaibhav-Nazare Oct 12, 2023
7cd01de
Update PowerPC stage
Vaibhav-Nazare Oct 12, 2023
3d14392
Merge branch 'apache:trunk' into trunk
Vaibhav-Nazare Nov 8, 2023
d483a17
Updated Java Version
Vaibhav-Nazare Nov 8, 2023
213ae05
Merge branch 'apache:trunk' into trunk
Vaibhav-Nazare Nov 14, 2023
974ba72
Update Jenkinsfile
Vaibhav-Nazare Nov 14, 2023
e7b479c
Add def buildNightly
Vaibhav-Nazare Nov 14, 2023
7af72b1
Merge branch 'apache:trunk' into trunk
Vaibhav-Nazare Nov 16, 2023
fc9614f
Merge branch 'apache:trunk' into trunk
Vaibhav-Nazare Nov 20, 2023
a4e5480
Merge branch 'apache:trunk' into trunk
Vaibhav-Nazare Nov 21, 2023
7c71243
Merge branch 'apache:trunk' into trunk
Vaibhav-Nazare Nov 23, 2023
b0f3c99
Merge branch 'apache:trunk' into trunk
Vaibhav-Nazare Nov 28, 2023
bd1a543
Merge branch 'apache:trunk' into trunk
Vaibhav-Nazare Dec 12, 2023
29986cb
Merge branch 'apache:trunk' into trunk
Vaibhav-Nazare Dec 27, 2023
09b6863
Merge branch 'apache:trunk' into trunk
Vaibhav-Nazare Jan 9, 2024
5d029ab
Merge branch 'apache:trunk' into trunk
Vaibhav-Nazare Jan 24, 2024
0c09229
Fix Typo
Vaibhav-Nazare Jan 24, 2024
f899633
Merge branch 'apache:trunk' into trunk
Vaibhav-Nazare Jan 30, 2024
8f13bd4
Merge branch 'apache:trunk' into trunk
Vaibhav-Nazare Feb 1, 2024
b6c724b
Update Jenkinsfile
Vaibhav-Nazare Feb 1, 2024
3a372f9
optimize code for nightly build
Vaibhav-Nazare Feb 1, 2024
f6e1ec9
remove additional changes
Vaibhav-Nazare Feb 1, 2024
ec2f87f
Update nightly condition
Feb 15, 2024
40772da
Merge branch 'apache:trunk' into trunk
Vaibhav-Nazare Feb 15, 2024
0aff5ff
Merge branch 'apache:trunk' into trunk
Vaibhav-Nazare Feb 23, 2024
d48efea
Merge branch 'apache:trunk' into trunk
Vaibhav-Nazare Feb 29, 2024
9c26ad7
Merge branch 'apache:trunk' into trunk
Vaibhav-Nazare Mar 18, 2024
44bd62c
Maintain seprate Jenkinsfile for ppc64le
Vaibhav-Nazare Mar 18, 2024
7b65d18
delete extra whitespaces
Vaibhav-Nazare Mar 18, 2024
da0a42b
Update Jenkinsfile
Vaibhav-Nazare Mar 18, 2024
66d9131
Merge branch 'apache:trunk' into trunk
Vaibhav-Nazare May 2, 2024
b728ef4
Merge branch 'apache:trunk' into trunk
Vaibhav-Nazare May 16, 2024
1554279
Merge branch 'apache:trunk' into trunk
Vaibhav-Nazare Jul 2, 2024
368d1bc
Merge branch 'apache:trunk' into trunk
Vaibhav-Nazare Jul 19, 2024
2d7bbc3
Merge branch 'apache:trunk' into trunk
Vaibhav-Nazare Jul 22, 2024
78c332a
Fix ppc64le stage
Vaibhav-Nazare Jul 22, 2024
d3321ca
Merge branch 'apache:trunk' into trunk
Vaibhav-Nazare Jul 24, 2024
d12e1bc
Merge branch 'apache:trunk' into trunk
Vaibhav-Nazare Oct 4, 2024
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
141 changes: 141 additions & 0 deletions Jenkinsfile.ppc64le
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
/*
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/

def doValidation() {
// Run all the tasks associated with `check` except for `test` - the latter is executed via `doTest`
sh """
./retry_zinc ./gradlew -PscalaVersion=$SCALA_VERSION clean check -x test \
--profile --continue -PxmlSpotBugsReport=true -PkeepAliveMode="session"
"""
}

def isChangeRequest(env) {
env.CHANGE_ID != null && !env.CHANGE_ID.isEmpty()
}

def doTest(env, target = "test") {
sh """./gradlew -PscalaVersion=$SCALA_VERSION ${target} \
--profile --continue -PkeepAliveMode="session" -PtestLoggingEvents=started,passed,skipped,failed \
-PignoreFailures=true -PmaxParallelForks=2 -PmaxTestRetries=1 -PmaxTestRetryFailures=10"""
junit '**/build/test-results/**/TEST-*.xml'
}

def doStreamsArchetype() {
echo 'Verify that Kafka Streams archetype compiles'

sh '''
./gradlew streams:publishToMavenLocal clients:publishToMavenLocal connect:json:publishToMavenLocal connect:api:publishToMavenLocal \
|| { echo 'Could not publish kafka-streams.jar (and dependencies) locally to Maven'; exit 1; }
'''

VERSION = sh(script: 'grep "^version=" gradle.properties | cut -d= -f 2', returnStdout: true).trim()

dir('streams/quickstart') {
sh '''
mvn clean install -Dgpg.skip \
|| { echo 'Could not `mvn install` streams quickstart archetype'; exit 1; }
'''

dir('test-streams-archetype') {
// Note the double quotes for variable interpolation
sh """
echo "Y" | mvn archetype:generate \
-DarchetypeCatalog=local \
-DarchetypeGroupId=org.apache.kafka \
-DarchetypeArtifactId=streams-quickstart-java \
-DarchetypeVersion=${VERSION} \
-DgroupId=streams.examples \
-DartifactId=streams.examples \
-Dversion=0.1 \
-Dpackage=myapps \
|| { echo 'Could not create new project using streams quickstart archetype'; exit 1; }
"""

dir('streams.examples') {
sh '''
mvn compile \
|| { echo 'Could not compile streams quickstart archetype project'; exit 1; }
'''
}
}
}
}

def tryStreamsArchetype() {
try {
doStreamsArchetype()
} catch(err) {
echo 'Failed to build Kafka Streams archetype, marking this build UNSTABLE'
currentBuild.result = 'UNSTABLE'
}
}


pipeline {
agent none

triggers {
cron('@daily')
}

options {
disableConcurrentBuilds(abortPrevious: isChangeRequest(env))
}

stages {
stage('Build') {
parallel {

stage('PowerPC') {
agent { label 'ppc64le' }
tools {
jdk 'jdk_21_latest'
}
options {
timeout(time: 8, unit: 'HOURS')
timestamps()
}
environment {
SCALA_VERSION=2.13
}
steps {
doValidation()
doTest(env)
echo 'Skipping Kafka Streams archetype test for PowerPC build'
}
}
}
}
}

post {
always {
script {
if (!isChangeRequest(env)) {
node('ubuntu') {
step([$class: 'Mailer',
notifyEveryUnstableBuild: true,
recipients: "dev@kafka.apache.org",
sendToIndividuals: false])
}
}
}
}
}
}