From 829f0b968aa8a11e4422fcc7eeb6ba2f70e69ef9 Mon Sep 17 00:00:00 2001 From: Mick Semb Wever Date: Tue, 22 Aug 2023 17:01:55 +0100 Subject: [PATCH 001/426] Fix jvm-dtest-upgrade script running in ci-cassandra.a.o (needs default bash) Also adds offline mode (to avoid `git fetch` before building dtest-jars on other branches). patch by Mick Semb Wever; reviewed by XXX for CASSANDRA-18665 --- .build/run-tests.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.build/run-tests.sh b/.build/run-tests.sh index 53dfb3286775..eaa902bc1e11 100755 --- a/.build/run-tests.sh +++ b/.build/run-tests.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/usr/bin/bash # 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 @@ -49,6 +49,9 @@ git --version java -version 2>&1 javac -version 2>&1 +# set the OFFLINE env var (to anything) to allow running jvm-dtest-upgrade offline +[ "x" != "x${OFFLINE}" ] && echo "WARNING: running in offline mode. jvm-dtest-upgrade results may be stale." + # lists all tests for the specific test type _list_tests() { local -r classlistprefix="$1" @@ -85,7 +88,9 @@ _build_all_dtest_jars() { fi if [ -d ${TMP_DIR}/cassandra-dtest-jars ] && [ "https://github.com/apache/cassandra.git" == "$(git -C ${TMP_DIR}/cassandra-dtest-jars remote get-url origin)" ] ; then - until git -C ${TMP_DIR}/cassandra-dtest-jars fetch --quiet origin ; do echo "git pull failed… trying again… " ; done + if [ "x" == "x${OFFLINE}" ] ; then + until git -C ${TMP_DIR}/cassandra-dtest-jars fetch --quiet origin ; do echo "git fetch failed… trying again… " ; done + fi else rm -fR ${TMP_DIR}/cassandra-dtest-jars pushd $TMP_DIR >/dev/null @@ -172,7 +177,7 @@ _main() { # ant test setup export TMP_DIR="${DIST_DIR}/tmp" - mkdir -p "${TMP_DIR}" || true + [ -d ${TMP_DIR} ] || mkdir -p "${TMP_DIR}" export ANT_TEST_OPTS="-Dno-build-test=true -Dtmp.dir=${TMP_DIR}" # fresh virtualenv and test logs results everytime From 27040328ab331ca22440621d03629587008441b2 Mon Sep 17 00:00:00 2001 From: Mick Semb Wever Date: Tue, 13 Jun 2023 16:07:07 +0200 Subject: [PATCH 002/426] Standalone Jenkinsfile patch by Mick Semb Wever; reviewed by XXX for CASSANDRA-18594 --- .jenkins/Jenkinsfile | 899 +++++++++++++++++++++---------------------- build.xml | 4 +- 2 files changed, 437 insertions(+), 466 deletions(-) diff --git a/.jenkins/Jenkinsfile b/.jenkins/Jenkinsfile index 22c540fe4720..864b46a9c26e 100644 --- a/.jenkins/Jenkinsfile +++ b/.jenkins/Jenkinsfile @@ -16,524 +16,495 @@ // under the License. // // -// Jenkins declaration of how to build and test the current codebase. -// Jenkins infrastructure related settings should be kept in +// Jenkins CI declaration. +// +// This file is declarative initially. +// The declarative component describes the pipeline stages and to what CI-agnostic scripts they map to. +// These CI-agnostic scripts are used as an intermediate dockerised layer above the ant build.xml +// The ant build.xml is never invoked directly. +// +// Below the declarative section there is groovy scripting methods for all the logic between +// the 10k ft declarative view and the CI-agnostic scripts. +// +// This Jenkinsfile is expected to work on any ci-cassandra.a.o clone. +// Functionality that depends upon ASF Infra and the canonical ci-cassandra.a.o setup (e.g. post-commit builds) +// is required to quietly fail when run on other environments. +// +// +// Job definitions are still being migrated from (where other CI jobs can also be found): // https://github.com/apache/cassandra-builds/blob/trunk/jenkins-dsl/cassandra_job_dsl_seed.groovy // +// +// Syntax help can be found at https://ci-cassandra.apache.org/pipeline-syntax/ +// // Validate/lint this file using the following command // `curl -X POST -F "jenkinsfile=<.jenkins/Jenkinsfile" https://ci-cassandra.apache.org/pipeline-model-converter/validate` pipeline { agent { label 'cassandra' } + options { + githubProjectProperty('https://github.com/apache/cassandra') + parallelsAlwaysFailFast() + timestamps() + } + environment { + javaVersionDefault = javaVersionDefault() + javaVersionsSupported = javaVersionsSupported() + } stages { stage('Init') { steps { - cleanWs() - script { - currentBuild.result='SUCCESS' - } + cleanWs() + script { currentBuild.result='SUCCESS' } } } - stage('Build') { - steps { - script { - def attempt = 1 - retry(2) { - if (attempt > 1) { - sleep(60 * attempt) + stage('Builds') { + parallel { + stage('artifacts') { + steps { + buildJob(".build/docker/build-artifacts.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") } - attempt = attempt + 1 - build job: "${env.JOB_NAME}-artifacts" } - } } } stage('Test') { - parallel { - stage('stress') { + parallel { + // TODO – owasp failures exist + // stage('lint') { + // steps { + // buildJob(".build/docker/check-code.sh", "") + // } + // } + stage('debian') { steps { - script { - def attempt = 1 - while (attempt <=2) { - if (attempt > 1) { - sleep(60 * attempt) - } - attempt = attempt + 1 - stress = build job: "${env.JOB_NAME}-stress-test", propagate: false - if (stress.result != 'FAILURE') break - } - if (stress.result != 'SUCCESS') unstable('stress test failures') - if (stress.result == 'FAILURE') currentBuild.result='FAILURE' - } - } - post { - always { - warnError('missing test xml files') { - script { - copyTestResults('stress-test', stress.getNumber()) - } - } - } + buildJob(".build/docker/build-debian.sh", "cassandra_*,cassandra-tools_*") } } - stage('fqltool') { + stage('redhat') { steps { - script { - def attempt = 1 - while (attempt <=2) { - if (attempt > 1) { - sleep(60 * attempt) - } - attempt = attempt + 1 - fqltool = build job: "${env.JOB_NAME}-fqltool-test", propagate: false - if (fqltool.result != 'FAILURE') break - } - if (fqltool.result != 'SUCCESS') unstable('fqltool test failures') - if (fqltool.result == 'FAILURE') currentBuild.result='FAILURE' - } - } - post { - always { - warnError('missing test xml files') { - script { - copyTestResults('fqltool-test', fqltool.getNumber()) - } - } - } + buildJob(".build/docker/build-redhat.sh rpm", "*.rpm") } } - stage('units') { + stage('centos7') { steps { - script { - def attempt = 1 - while (attempt <=2) { - if (attempt > 1) { - sleep(60 * attempt) - } - attempt = attempt + 1 - test = build job: "${env.JOB_NAME}-test", propagate: false - if (test.result != 'FAILURE') break - } - if (test.result != 'SUCCESS') unstable('unit test failures') - if (test.result == 'FAILURE') currentBuild.result='FAILURE' - } - } - post { - always { - warnError('missing test xml files') { - script { - copyTestResults('test', test.getNumber()) - } - } - } + buildJob(".build/docker/build-redhat.sh noboolean", "*.rpm") } } - stage('long units') { - steps { - script { - def attempt = 1 - while (attempt <=2) { - if (attempt > 1) { - sleep(60 * attempt) - } - attempt = attempt + 1 - long_test = build job: "${env.JOB_NAME}-long-test", propagate: false - if (long_test.result != 'FAILURE') break - } - if (long_test.result != 'SUCCESS') unstable('long unit test failures') - if (long_test.result == 'FAILURE') currentBuild.result='FAILURE' - } - } - post { - always { - warnError('missing test xml files') { - script { - copyTestResults('long-test', long_test.getNumber()) - } - } - } + stage('stress') { + steps { + testJob(".build/docker/run-tests.sh", "stress-test", 1) + } + } + stage('fqltool') { + steps { + testJob(".build/docker/run-tests.sh", "fqltool-test", 1) + } + } + stage('units') { + steps { + testJob(".build/docker/run-tests.sh", "test", 8) + } + } + stage('long units') { + steps { + testJob(".build/docker/run-tests.sh", "long-test", 8) + } + } + stage('burn') { + steps { + testJob(".build/docker/run-tests.sh", "test-burn", 8) + } + } + stage('cdc') { + steps { + testJob(".build/docker/run-tests.sh", "test-cdc", 8) + } + } + stage('compression') { + steps { + testJob(".build/docker/run-tests.sh", "test-compression", 8) + } + } + stage('cqlsh') { + steps { + testJob(".build/docker/run-tests.sh", "cqlsh-test", 1) + } + } + stage('jvm-dtest') { + steps { + testJob(".build/docker/run-tests.sh", "jvm-dtest", 8) + } + } + stage('jvm-dtest-upgrade') { + steps { + testJob(".build/docker/run-tests.sh", "jvm-dtest-upgrade", 8) + } + } + stage('dtest') { + steps { + testJob(".build/docker/run-tests.sh", "dtest", 64) + } + } + stage('dtest-large') { + steps { + testJob(".build/docker/run-tests.sh", "dtest-large", 8) + } + } + stage('dtest-novnode') { + steps { + testJob(".build/docker/run-tests.sh", "dtest-novnode", 64) + } + } + stage('dtest-offheap') { + steps { + testJob(".build/docker/run-tests.sh", "dtest-offheap", 64) + } + } + stage('dtest-large-novnode') { + steps { + testJob(".build/docker/run-tests.sh", "dtest-large-novnode", 8) + } + } + stage('dtest-upgrade') { + steps { + testJob(".build/docker/run-tests.sh", "dtest-upgrade", 64) + } + } + } + } + stage('Summary') { + steps { + // FIXME is this needed if each job is submitting its own results to the overall pipeline ?? + //junit testResults: '**/build/test/**/TEST*.xml,**/cqlshlib.xml,**/nosetests.xml', testDataPublishers: [[$class: 'StabilityTestDataPublisher']] + + //sendNotifications() + + // FIXME how to collect and build one test report file ?? + //generateUnifiedTestReport() + + collectConsoleLog() // FIXME should this be in a final instead ? (we always want the console log archived) + copyToNightlies('console.log.xz,TESTS-TestSuites.xml.xz') + } + } + } +} + +/////////////////////////// +//// scripting support //// +/////////////////////////// + + +/** + * Return the default JDK defined by build.xml + **/ +def javaVersionDefault() { + sh (returnStdout: true, script: 'grep \'property\\s*name=\"java.default\"\' build.xml | sed -ne \'s/.*value=\"\\([^\"]*\\)\".*/\\1/p\'').trim() +} + +/** + * Return the supported JDKs defined by build.xml + **/ +def javaVersionsSupported() { + sh (returnStdout: true, script: 'grep \'property\\s*name=\"java.supported\"\' build.xml | sed -ne \'s/.*value=\"\\([^\"]*\\)\".*/\\1/p\'').trim() +} + +/** + * Is this a post-commit build (or a pre-commit build) + **/ +def isPostCommit() { + // any build of a branch found on github.com/apache/cassandra is considered a post-commit (post-merge) CI run + return "${GIT_URL}".contains("apache/cassandra") +} + +/** + * Executes `${build_script} ${jdk}` for each arch, and jdk. + * + * Stashes the jarfiles for `package-artifacts.sh` + * Copies build artifacts and logfiles to nightlies + * Cleans the agent (docker prune) afterwards + * Stops the pipeline on any failure + **/ +def buildJob(build_script, toCopy) { + //def archs = ['cassandra', 'cassandra-arm64'] // uncomment when ready for arm64 testing + def archs = ['cassandra'] + def jdks = "${javaVersionsSupported}".split(/,/, -1) + def builds_per_arch = [:] + for (a in archs) { + def arch = a + builds_per_arch[arch] = { + def builds_per_jdk = [:] + for (j in jdks) { + def jdk = j + builds_per_jdk[jdk] = { _buildAxis(build_script, toCopy, arch, jdk) } + } + parallel(builds_per_jdk) + } + } + parallel(builds_per_arch) +} + +/** + * Executes `${build_script} ${jdk}` for stated arch, and jdk. + **/ +def _buildAxis(build_script, toCopy, arch, jdk) { + node(arch) { + branchName: "${build_script} ${jdk} ${NODE_NAME}" + cleanWs() + checkout scm + tool type: 'jdk', name: "jdk_${jdk}_latest" + def statusCode = 0, attempt = 1 + retry(2) { + if (attempt > 1) { sleep(60 * attempt) } + def build_script_safe_name = "${build_script}".replace(".build/docker/", "").replace(".sh", "_").replace(" ", "_") + def logfile = "${JOB_NAME}_${BUILD_NUMBER}_${build_script_safe_name}_jdk${jdk}_${arch}_attempt_${attempt}.log" + sh "mkdir -p build" + def build_dir = sh( returnStdout: true, script:"mktemp -d ${WORKSPACE}/build/build_docker_run.XXXXXXXXXX" ) + try { + if (".build/docker/build-artifacts.sh" != build_script) { + // build-artifacts.sh must be run in an earlier completed stage for the stash to exist + dir(build_dir) { + unstash name: "${arch}_${jdk}" } } - stage('burn') { - steps { - script { - def attempt = 1 - while (attempt <=2) { - if (attempt > 1) { - sleep(60 * attempt) - } - attempt = attempt + 1 - burn = build job: "${env.JOB_NAME}-test-burn", propagate: false - if (burn.result != 'FAILURE') break - } - if (burn.result != 'SUCCESS') unstable('burn test failures') - if (burn.result == 'FAILURE') currentBuild.result='FAILURE' - } - } - post { - always { - warnError('missing test xml files') { - script { - copyTestResults('test-burn', burn.getNumber()) - } - } - } + echo "Executing `build_dir=${build_dir} ${build_script} ${jdk} 2>&1 | tee ${logfile}` on ${NODE_NAME}" + statusCode = sh returnStatus:true, script:"build_dir=\"${build_dir}\" ${build_script} ${jdk} 2>&1 | tee ${logfile}" + if (".build/docker/build-artifacts.sh" == build_script) { + dir("${build_dir}") { + // only stash the project built files. all dependency libraries are restored from the local maven repo using `ant resolver-dist-lib` + stash name: "${arch}_${jdk}", includes: "*.jar,classes/**,test/classes/**,tools/**", excludes: "dist/**,**/lib/**/*.jar," } } - stage('cdc') { - steps { - script { - def attempt = 1 - while (attempt <=2) { - if (attempt > 1) { - sleep(60 * attempt) - } - attempt = attempt + 1 - cdc = build job: "${env.JOB_NAME}-test-cdc", propagate: false - if (cdc.result != 'FAILURE') break - } - if (cdc.result != 'SUCCESS') unstable('cdc failures') - if (cdc.result == 'FAILURE') currentBuild.result='FAILURE' - } - } - post { - always { - warnError('missing test xml files') { - script { - copyTestResults('test-cdc', cdc.getNumber()) - } - } - } + } finally { + attempt = attempt + 1 + sh "xz -f *_attempt_*.log" + copyToNightlies("*_attempt_*.log.xz", "${build_script_safe_name}/jdk${jdk}/${arch}/") + if (0 == statusCode) { + dir("${build_dir}") { + copyToNightlies("${toCopy}", "${build_script_safe_name}/jdk${jdk}/${arch}/") } } - stage('compression') { - steps { - script { - def attempt = 1 - while (attempt <=2) { - if (attempt > 1) { - sleep(60 * attempt) - } - attempt = attempt + 1 - compression = build job: "${env.JOB_NAME}-test-compression", propagate: false - if (compression.result != 'FAILURE') break - } - if (compression.result != 'SUCCESS') unstable('compression failures') - if (compression.result == 'FAILURE') currentBuild.result='FAILURE' - } - } - post { - always { - warnError('missing test xml files') { - script { - copyTestResults('test-compression', compression.getNumber()) - } - } - } - } - } - stage('cqlsh') { - steps { - script { - def attempt = 1 - while (attempt <=2) { - if (attempt > 1) { - sleep(60 * attempt) - } - attempt = attempt + 1 - cqlsh = build job: "${env.JOB_NAME}-cqlsh-tests", propagate: false - if (cqlsh.result != 'FAILURE') break - } - if (cqlsh.result != 'SUCCESS') unstable('cqlsh failures') - if (cqlsh.result == 'FAILURE') currentBuild.result='FAILURE' - } - } - post { - always { - warnError('missing test xml files') { - script { - copyTestResults('cqlsh-tests', cqlsh.getNumber()) - } - } - } - } + cleanAgent(build_script) + if (0 != statusCode) { + currentBuild.result = 'FAILURE' + error("FAILED '${build_script} ${jdk}' on ${NODE_NAME}") + } else { + echo "Complete '${build_script} ${jdk}' on ${NODE_NAME}" } } } - stage('Distributed Test') { - parallel { - stage('jvm-dtest') { - steps { - script { - def attempt = 1 - while (attempt <=2) { - if (attempt > 1) { - sleep(60 * attempt) - } - attempt = attempt + 1 - jvm_dtest = build job: "${env.JOB_NAME}-jvm-dtest", propagate: false - if (jvm_dtest.result != 'FAILURE') break - } - if (jvm_dtest.result != 'SUCCESS') unstable('jvm-dtest failures') - if (jvm_dtest.result == 'FAILURE') currentBuild.result='FAILURE' - } - } - post { - always { - warnError('missing test xml files') { - script { - copyTestResults('jvm-dtest', jvm_dtest.getNumber()) - } - } - } - } - } - stage('jvm-dtest-upgrade') { - steps { - script { - def attempt = 1 - while (attempt <=2) { - if (attempt > 1) { - sleep(60 * attempt) - } - attempt = attempt + 1 - jvm_dtest_upgrade = build job: "${env.JOB_NAME}-jvm-dtest-upgrade", propagate: false - if (jvm_dtest_upgrade.result != 'FAILURE') break - } - if (jvm_dtest_upgrade.result != 'SUCCESS') unstable('jvm-dtest-upgrade failures') - if (jvm_dtest_upgrade.result == 'FAILURE') currentBuild.result='FAILURE' - } - } - post { - always { - warnError('missing test xml files') { - script { - copyTestResults('jvm-dtest-upgrade', jvm_dtest_upgrade.getNumber()) - } - } - } - } - } - stage('dtest') { - steps { - script { - def attempt = 1 - while (attempt <=2) { - if (attempt > 1) { - sleep(60 * attempt) + } +} + +/** + * Saves JUnit results, fails if no reports are found + * Copies (single-file unified) junit results and logfiles to nightlies + * Cleans the agent (docker prune) afterwards + * Stops the pipeline on any failure + **/ +def testJob(test_script, test_type, splits=1, toCopy='') { + //def archs = ['cassandra', 'cassandra-arm64'] // uncomment when ready for arm64 testing + def archs = ['cassandra'] + //def jdks = "${javaVersionsSupported}".split(/,/, -1) // TODO uncomment – this is the real mcoy + def jdks = ['11'] + def pythons = ['3.7'] + def cythons = ['no'] + def tests_per_arch = [:] + + // XXX – the following matrix over arrays should be better done with multi-arrays and recursion + + for (a in archs) { + def arch = a + tests_per_arch[arch] = { + def tests_per_jdk = [:] + for (j in jdks) { + def jdk = j + tests_per_jdk[jdk] = { + def tests_per_python = [:] + for (p in pythons) { + def python = p + tests_per_python[python] = { + def tests_per_cython = [:] + for (c in cythons) { + def cython = c + tests_per_cython[cython] = { + def tests_per_split = [:] + for (s in 1..splits) { + def split = s + tests_per_split[split] = { + _testAxis(test_script, test_type, toCopy, arch, jdk, python, cython, "${split}/${splits}") } - attempt = attempt + 1 - dtest = build job: "${env.JOB_NAME}-dtest", propagate: false - if (dtest.result != 'FAILURE') break - } - if (dtest.result != 'SUCCESS') unstable('dtest failures') - if (dtest.result == 'FAILURE') currentBuild.result='FAILURE' - } - } - post { - always { - warnError('missing test xml files') { - script { - copyTestResults('dtest', dtest.getNumber()) - } } - } - } - } - stage('dtest-large') { - steps { - script { - def attempt = 1 - while (attempt <=2) { - if (attempt > 1) { - sleep(60 * attempt) - } - attempt = attempt + 1 - dtest_large = build job: "${env.JOB_NAME}-dtest-large", propagate: false - if (dtest_large.result != 'FAILURE') break - } - if (dtest_large.result != 'SUCCESS') unstable('dtest-large failures') - if (dtest_large.result == 'FAILURE') currentBuild.result='FAILURE' - } - } - post { - always { - warnError('missing test xml files') { - script { - copyTestResults('dtest-large', dtest_large.getNumber()) - } + parallel(tests_per_split) } } + parallel(tests_per_cython) } } - stage('dtest-novnode') { - steps { - script { - def attempt = 1 - while (attempt <=2) { - if (attempt > 1) { - sleep(60 * attempt) - } - attempt = attempt + 1 - dtest_novnode = build job: "${env.JOB_NAME}-dtest-novnode", propagate: false - if (dtest_novnode.result != 'FAILURE') break - } - if (dtest_novnode.result != 'SUCCESS') unstable('dtest-novnode failures') - if (dtest_novnode.result == 'FAILURE') currentBuild.result='FAILURE' - } - } - post { - always { - warnError('missing test xml files') { - script { - copyTestResults('dtest-novnode', dtest_novnode.getNumber()) - } - } - } - } - } - stage('dtest-offheap') { - steps { - script { - def attempt = 1 - while (attempt <=2) { - if (attempt > 1) { - sleep(60 * attempt) - } - attempt = attempt + 1 - dtest_offheap = build job: "${env.JOB_NAME}-dtest-offheap", propagate: false - if (dtest_offheap.result != 'FAILURE') break - } - if (dtest_offheap.result != 'SUCCESS') unstable('dtest-offheap failures') - if (dtest_offheap.result == 'FAILURE') currentBuild.result='FAILURE' - } - } - post { - always { - warnError('missing test xml files') { - script { - copyTestResults('dtest-offheap', dtest_offheap.getNumber()) - } - } - } - } - } - stage('dtest-large-novnode') { - steps { - script { - def attempt = 1 - while (attempt <=2) { - if (attempt > 1) { - sleep(60 * attempt) - } - attempt = attempt + 1 - dtest_large_novnode = build job: "${env.JOB_NAME}-dtest-large-novnode", propagate: false - if (dtest_large_novnode.result != 'FAILURE') break - } - if (dtest_large_novnode.result != 'SUCCESS') unstable('dtest-large-novnode failures') - if (dtest_large_novnode.result == 'FAILURE') currentBuild.result='FAILURE' - } - } - post { - always { - warnError('missing test xml files') { - script { - copyTestResults('dtest-large-novnode', dtest_large_novnode.getNumber()) - } - } - } - } - } - stage('dtest-upgrade') { - steps { - script { - def attempt = 1 - while (attempt <=2) { - if (attempt > 1) { - sleep(60 * attempt) - } - attempt = attempt + 1 - dtest_upgrade = build job: "${env.JOB_NAME}-dtest-upgrade", propagate: false - if (dtest_upgrade.result != 'FAILURE') break - } - if (dtest_upgrade.result != 'SUCCESS') unstable('dtest failures') - if (dtest_upgrade.result == 'FAILURE') currentBuild.result='FAILURE' - } - } - post { - always { - warnError('missing test xml files') { - script { - copyTestResults('dtest-upgrade', dtest_upgrade.getNumber()) - } - } - } - } - } + parallel(tests_per_python) } + } + parallel(tests_per_jdk) } - stage('Summary') { - steps { - sh "rm -fR cassandra-builds" - sh "git clone --depth 1 --single-branch https://gitbox.apache.org/repos/asf/cassandra-builds.git" - sh "./cassandra-builds/build-scripts/cassandra-test-report.sh" - junit testResults: '**/build/test/**/TEST*.xml,**/cqlshlib.xml,**/nosetests.xml', testDataPublishers: [[$class: 'StabilityTestDataPublisher']] + } + parallel(tests_per_arch) +} - // the following should fail on any installation other than ci-cassandra.apache.org - // TODO: keep jenkins infrastructure related settings in `cassandra_job_dsl_seed.groovy` - warnError('cannot send notifications') { - script { - changes = formatChanges(currentBuild.changeSets) - echo "changes: ${changes}" - } - slackSend channel: '#cassandra-builds', message: ":apache: <${env.BUILD_URL}|${currentBuild.fullDisplayName}> completed: ${currentBuild.result}. \n${changes}" - emailext to: 'builds@cassandra.apache.org', subject: "Build complete: ${currentBuild.fullDisplayName} [${currentBuild.result}] ${env.GIT_COMMIT}", presendScript: '${FILE,path="cassandra-builds/jenkins-dsl/cassandra_email_presend.groovy"}', body: ''' -------------------------------------------------------------------------------- -Build ${ENV,var="JOB_NAME"} #${BUILD_NUMBER} ${BUILD_STATUS} -URL: ${BUILD_URL} -------------------------------------------------------------------------------- -Changes: -${CHANGES} -------------------------------------------------------------------------------- -Failed Tests: -${FAILED_TESTS,maxTests=500,showMessage=false,showStack=false} -------------------------------------------------------------------------------- -For complete test report and logs see https://nightlies.apache.org/cassandra/${JOB_NAME}/${BUILD_NUMBER}/ -''' - } - sh "echo \"summary) cassandra-builds: `git -C cassandra-builds log -1 --pretty=format:'%H %an %ad %s'`\" > builds.head" - sh "./cassandra-builds/jenkins-dsl/print-shas.sh" - sh "xz TESTS-TestSuites.xml" - sh "wget --retry-connrefused --waitretry=1 \"\${BUILD_URL}/timestamps/?time=HH:mm:ss&timeZone=UTC&appendLog\" -qO - > console.log || echo wget failed" - sh "xz console.log" - sh "echo \"For test report and logs see https://nightlies.apache.org/cassandra/${JOB_NAME}/${BUILD_NUMBER}/\"" - } - post { - always { - sshPublisher(publishers: [sshPublisherDesc(configName: 'Nightlies', transfers: [sshTransfer(remoteDirectory: 'cassandra/${JOB_NAME}/${BUILD_NUMBER}/', sourceFiles: 'console.log.xz,TESTS-TestSuites.xml.xz')])]) - } +/** + * Executes `.build/test-docker.sh ${testDockerImage} ${test_type} ${split}` for the stated arch, jdk, python, cython, and split. + **/ +def _testAxis(test_script, test_type, toCopy, arch, jdk, python, cython, split) { + echo "Spawning `${test_script} ${test_type} ${split} ${jdk}` with arch=${arch} jdk=${jdk} python${python} cython=${cython}" + node(arch) { + branchName: "${test_script} ${test_type} ${split} ${jdk} ${NODE_NAME}" + echo "Starting `${test_script} ${test_type} ${split} ${jdk}` with arch=${arch} jdk=${jdk} python${python} cython=${cython} on ${NODE_NAME}" + cleanWs() + checkout scm + tool type: 'jdk', name: "jdk_${jdk}_latest" + // FIXME python – need a tool type (like jdk above) + // FIXME cython – need a tool type (like jdk above) + def statusCode = 0, attempt = 1 + retry(2) { + if (attempt > 1) { sleep(60 * attempt) } + def logfile = "${JOB_NAME}_${BUILD_NUMBER}_${test_type}_jdk${jdk}_python_${python}_${cython}_${arch}_attempt_${attempt}.log" + try { + dir("build") { + unstash name: "${arch}_${jdk}" + } + echo "Executing `${test_script} ${test_type} ${split} ${jdk} 2>&1 | tee ${logfile}` on ${NODE_NAME} with jdk=${jdk} python=${python} cython=${cython}" + statusCode = sh returnStatus:true, script:"${test_script} ${test_type} ${split} ${jdk} 2>&1 | tee ${logfile}" + } finally { + attempt = attempt + 1 + if (0 == statusCode) { + junit testResults: '**/build/test/**/TEST*.xml,**/cqlshlib.xml,**/nosetests.xml', testDataPublishers: [[$class: 'StabilityTestDataPublisher']] + } else { + toCopy = "" + } + sh "xz -f *_attempt_*.log" + copyToNightlies("*_attempt_*.log.xz,console.log.xz,TESTS-TestSuites.xml.xz,build/test/logs/**,${toCopy}", "${test_type}/${arch}/jdk${jdk}/python${python}/cython_${cython}/" + "split_${split}".replace("/", "_")) + cleanAgent(test_script) + if (0 != statusCode) { + currentBuild.result = 'FAILURE' + error("FAILED `${test_script} ${test_type} ${split} ${jdk}` with arch=${arch} jdk=${jdk} python=${python} cython=${cython} on ${NODE_NAME}") + } else { + echo "Complete `${test_script} ${test_type} ${split} ${jdk}` with arch=${arch} jdk=${jdk} python=${python} cython=${cython} on ${NODE_NAME}" + } } } + if (build_result.result != 'SUCCESS') unstable("${build_name} failures") + if (build_result.result == 'ABORTED' && currentBuild.result != 'FAILURE') currentBuild.result='ABORTED' + if (build_result.result == 'FAILURE') currentBuild.result='FAILURE' + } +} + +def copyToNightlies(sourceFiles, remoteDirectory='') { + def remotePath = remoteDirectory.startsWith("cassandra/") ? "${remoteDirectory}" : "cassandra/${JOB_NAME}/${BUILD_NUMBER}/${remoteDirectory}" + def attempt = 1 + retry(9) { + if (attempt > 1) { sleep(60 * attempt) } + sshPublisher( + continueOnError: true, failOnError: false, + publishers: [ + sshPublisherDesc( + configName: "Nightlies", + transfers: [ sshTransfer( sourceFiles: sourceFiles, remoteDirectory: remotePath) ] + ) + ]) } + echo "archived to https://nightlies.apache.org/${remotePath}" +} + +def cleanAgent(job_name) { + def maxJobHours = 12 + echo "Cleaning project, processes, docker for '${job_name}' on ${NODE_NAME}…" ; + sh """ + git clean -qxdff -e build/test/jmh-result.json || true; + if pgrep -xa docker || pgrep -af "build/docker" || pgrep -af "cassandra-builds/build-scripts" ; then docker system prune --all --force --filter "until=${maxJobHours}h" || true ; else docker system prune --force --volumes || true ; fi; + """ +} + +// CASSANDRA-18130 +def saveAgentReport(build_name) { + // + // echo "Updating disk usage report…"; + // sh """ + // ( echo "----" ; + // echo \$(date) ; + // echo "${JOB_NAME} ${BUILD_NUMBER} ${build_name}" ; + // du -xm / 2>/dev/null | sort -rn | head -n 30 ; + // df -h ) | tee -a \$(date +"%Y%m%d%H%M")-disk-usage-stats.txt + // """ + // copyToNightlies("*-disk-usage-stats.txt", "cassandra/agents/${NODE_NAME}/disk-usage/") + // sh 'rm *-disk-usage-stats.txt' +} + +///////////////////////////////////////// +////// scripting support for summary //// +///////////////////////////////////////// + +// FIXME – we need first to collect all the test result files from each job, putting them under buid/test/output/ +def generateUnifiedTestReport() { + sh "ant generate-unified-test-report" + sh "xz -f build/TESTS-TestSuites.xml" +} + +def collectConsoleLog() { + sh "wget --retry-connrefused --waitretry=1 \"\${BUILD_URL}/timestamps/?time=HH:mm:ss&timeZone=UTC&appendLog\" -qO console.log || echo wget failed" + sh "xz -f console.log" } -def copyTestResults(target, build_number) { +def copyTestResults(build_name, build_number) { + try { step([$class: 'CopyArtifact', - projectName: "${env.JOB_NAME}-${target}", + projectName: "${build_name}", optional: true, fingerprintArtifacts: true, selector: specific("${build_number}"), - target: target]); + target: build_name]); + } catch (Exception ex) { + echo 'Exception occurred getting test results for ' + build_name + '#' + build_number + ex.toString() + } } -def formatChanges(changeLogSets) { - def result = '' - for (int i = 0; i < changeLogSets.size(); i++) { - def entries = changeLogSets[i].items - for (int j = 0; j < entries.length; j++) { - def entry = entries[j] - result = result + "${entry.commitId} by ${entry.author} on ${new Date(entry.timestamp)}: ${entry.msg}\n" - } +def sendNotifications() { + if (isPostCommit()) { + // the following is expected only to work on ci-cassandra.apache.org + try { + script { + changes = formatChangeLogChanges(currentBuild.changeSets) + echo "changes: ${changes}" + } + slackSend channel: '#cassandra-builds', message: ":apache: <${BUILD_URL}|${currentBuild.fullDisplayName}> completed: ${currentBuild.result}. \n${changes}" + emailext to: 'builds@cassandra.apache.org', subject: "Build complete: ${currentBuild.fullDisplayName} [${currentBuild.result}] ${GIT_COMMIT}", presendScript: 'msg.removeHeader("In-Reply-To"); msg.removeHeader("References")', body: emailContent() + } catch (Exception ex) { + echo 'failed to send notifications ' + ex.toString() } - return result + } +} + +def formatChangeLogChanges(changeLogSets) { + def result = '' + for (int i = 0; i < changeLogSets.size(); i++) { + def entries = changeLogSets[i].items + for (int j = 0; j < entries.length; j++) { + def entry = entries[j] + result = result + "${entry.commitId} by ${entry.author} on ${new Date(entry.timestamp)}: ${entry.msg}\n" + } + } + return result +} + +def emailContent() { + return ''' + ------------------------------------------------------------------------------- + Build ${ENV,var="JOB_NAME"} #${BUILD_NUMBER} ${BUILD_STATUS} + URL: ${BUILD_URL} + ------------------------------------------------------------------------------- + Changes: + ${CHANGES} + ------------------------------------------------------------------------------- + Failed Tests: + ${FAILED_TESTS,maxTests=500,showMessage=false,showStack=false} + ------------------------------------------------------------------------------- + For complete test report and logs see https://nightlies.apache.org/cassandra/${JOB_NAME}/${BUILD_NUMBER}/ + ''' } diff --git a/build.xml b/build.xml index bc9d6eedc5a0..d40e9aff1905 100644 --- a/build.xml +++ b/build.xml @@ -1811,10 +1811,10 @@ - + - + From b7c533883ba0c143596b248a455d7aa5436d2bc4 Mon Sep 17 00:00:00 2001 From: Mick Semb Wever Date: Tue, 29 Aug 2023 22:19:02 +0200 Subject: [PATCH 003/426] =?UTF-8?q?squash=20=E2=80=93=20fixes=20to=20.jenk?= =?UTF-8?q?ins/Jenkinsfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .jenkins/Jenkinsfile | 75 ++++++++++++++++++++++++++------------------ 1 file changed, 44 insertions(+), 31 deletions(-) diff --git a/.jenkins/Jenkinsfile b/.jenkins/Jenkinsfile index 864b46a9c26e..78a540655478 100644 --- a/.jenkins/Jenkinsfile +++ b/.jenkins/Jenkinsfile @@ -216,6 +216,13 @@ def isPostCommit() { return "${GIT_URL}".contains("apache/cassandra") } +/** + * Are we running on ci-cassandra.apache.org ? + **/ +def isCanonical() { + return "${JENKINS_URL}".contains("ci-cassandra.apache.org") +} + /** * Executes `${build_script} ${jdk}` for each arch, and jdk. * @@ -397,44 +404,50 @@ def _testAxis(test_script, test_type, toCopy, arch, jdk, python, cython, split) } def copyToNightlies(sourceFiles, remoteDirectory='') { - def remotePath = remoteDirectory.startsWith("cassandra/") ? "${remoteDirectory}" : "cassandra/${JOB_NAME}/${BUILD_NUMBER}/${remoteDirectory}" - def attempt = 1 - retry(9) { - if (attempt > 1) { sleep(60 * attempt) } - sshPublisher( - continueOnError: true, failOnError: false, - publishers: [ - sshPublisherDesc( - configName: "Nightlies", - transfers: [ sshTransfer( sourceFiles: sourceFiles, remoteDirectory: remotePath) ] - ) - ]) + if (isCanonical()) { + def remotePath = remoteDirectory.startsWith("cassandra/") ? "${remoteDirectory}" : "cassandra/${JOB_NAME}/${BUILD_NUMBER}/${remoteDirectory}" + def attempt = 1 + retry(9) { + if (attempt > 1) { sleep(60 * attempt) } + sshPublisher( + continueOnError: true, failOnError: false, + publishers: [ + sshPublisherDesc( + configName: "Nightlies", + transfers: [ sshTransfer( sourceFiles: sourceFiles, remoteDirectory: remotePath) ] + ) + ]) + } + echo "archived to https://nightlies.apache.org/${remotePath}" } - echo "archived to https://nightlies.apache.org/${remotePath}" } def cleanAgent(job_name) { - def maxJobHours = 12 - echo "Cleaning project, processes, docker for '${job_name}' on ${NODE_NAME}…" ; - sh """ - git clean -qxdff -e build/test/jmh-result.json || true; - if pgrep -xa docker || pgrep -af "build/docker" || pgrep -af "cassandra-builds/build-scripts" ; then docker system prune --all --force --filter "until=${maxJobHours}h" || true ; else docker system prune --force --volumes || true ; fi; - """ + if (isCanonical()) { + def maxJobHours = 12 + echo "Cleaning project, processes, docker for '${job_name}' on ${NODE_NAME}…" ; + sh """ + git clean -qxdff -e build/test/jmh-result.json || true; + if pgrep -xa docker || pgrep -af "build/docker" || pgrep -af "cassandra-builds/build-scripts" ; then docker system prune --all --force --filter "until=${maxJobHours}h" || true ; else docker system prune --force --volumes || true ; fi; + """ + } } // CASSANDRA-18130 def saveAgentReport(build_name) { - // - // echo "Updating disk usage report…"; - // sh """ - // ( echo "----" ; - // echo \$(date) ; - // echo "${JOB_NAME} ${BUILD_NUMBER} ${build_name}" ; - // du -xm / 2>/dev/null | sort -rn | head -n 30 ; - // df -h ) | tee -a \$(date +"%Y%m%d%H%M")-disk-usage-stats.txt - // """ - // copyToNightlies("*-disk-usage-stats.txt", "cassandra/agents/${NODE_NAME}/disk-usage/") - // sh 'rm *-disk-usage-stats.txt' + if (isCanonical()) { + // + // echo "Updating disk usage report…"; + // sh """ + // ( echo "----" ; + // echo \$(date) ; + // echo "${JOB_NAME} ${BUILD_NUMBER} ${build_name}" ; + // du -xm / 2>/dev/null | sort -rn | head -n 30 ; + // df -h ) | tee -a \$(date +"%Y%m%d%H%M")-disk-usage-stats.txt + // """ + // copyToNightlies("*-disk-usage-stats.txt", "cassandra/agents/${NODE_NAME}/disk-usage/") + // sh 'rm *-disk-usage-stats.txt' + } } ///////////////////////////////////////// @@ -466,7 +479,7 @@ def copyTestResults(build_name, build_number) { } def sendNotifications() { - if (isPostCommit()) { + if (isPostCommit() && isCanonical()) { // the following is expected only to work on ci-cassandra.apache.org try { script { From 534330f9b970409eaccfd0d050c2dfb0c59a2ac5 Mon Sep 17 00:00:00 2001 From: Mick Semb Wever Date: Tue, 29 Aug 2023 22:22:54 +0200 Subject: [PATCH 004/426] =?UTF-8?q?throwaway=20=E2=80=93=20comment=20out?= =?UTF-8?q?=20most=20tests=20for=20infracloud/cassandra-5.0=20branch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .jenkins/Jenkinsfile | 152 +++++++++++++++++++++---------------------- 1 file changed, 76 insertions(+), 76 deletions(-) diff --git a/.jenkins/Jenkinsfile b/.jenkins/Jenkinsfile index 78a540655478..2e0d90117c91 100644 --- a/.jenkins/Jenkinsfile +++ b/.jenkins/Jenkinsfile @@ -69,12 +69,11 @@ pipeline { } stage('Test') { parallel { - // TODO – owasp failures exist - // stage('lint') { - // steps { - // buildJob(".build/docker/check-code.sh", "") - // } - // } + stage('lint') { + steps { + buildJob(".build/docker/check-code.sh", "") + } + } stage('debian') { steps { buildJob(".build/docker/build-debian.sh", "cassandra_*,cassandra-tools_*") @@ -100,76 +99,77 @@ pipeline { testJob(".build/docker/run-tests.sh", "fqltool-test", 1) } } - stage('units') { - steps { - testJob(".build/docker/run-tests.sh", "test", 8) - } - } - stage('long units') { - steps { - testJob(".build/docker/run-tests.sh", "long-test", 8) - } - } - stage('burn') { - steps { - testJob(".build/docker/run-tests.sh", "test-burn", 8) - } - } - stage('cdc') { - steps { - testJob(".build/docker/run-tests.sh", "test-cdc", 8) - } - } - stage('compression') { - steps { - testJob(".build/docker/run-tests.sh", "test-compression", 8) - } - } - stage('cqlsh') { - steps { - testJob(".build/docker/run-tests.sh", "cqlsh-test", 1) - } - } - stage('jvm-dtest') { - steps { - testJob(".build/docker/run-tests.sh", "jvm-dtest", 8) - } - } - stage('jvm-dtest-upgrade') { - steps { - testJob(".build/docker/run-tests.sh", "jvm-dtest-upgrade", 8) - } - } - stage('dtest') { - steps { - testJob(".build/docker/run-tests.sh", "dtest", 64) - } - } - stage('dtest-large') { - steps { - testJob(".build/docker/run-tests.sh", "dtest-large", 8) - } - } - stage('dtest-novnode') { - steps { - testJob(".build/docker/run-tests.sh", "dtest-novnode", 64) - } - } - stage('dtest-offheap') { - steps { - testJob(".build/docker/run-tests.sh", "dtest-offheap", 64) - } - } - stage('dtest-large-novnode') { - steps { - testJob(".build/docker/run-tests.sh", "dtest-large-novnode", 8) - } - } - stage('dtest-upgrade') { - steps { - testJob(".build/docker/run-tests.sh", "dtest-upgrade", 64) - } - } + // XXX – commented out for infracloud/cassandra-5.0 branch + // stage('units') { + // steps { + // testJob(".build/docker/run-tests.sh", "test", 8) + // } + // } + // stage('long units') { + // steps { + // testJob(".build/docker/run-tests.sh", "long-test", 8) + // } + // } + // stage('burn') { + // steps { + // testJob(".build/docker/run-tests.sh", "test-burn", 8) + // } + // } + // stage('cdc') { + // steps { + // testJob(".build/docker/run-tests.sh", "test-cdc", 8) + // } + // } + // stage('compression') { + // steps { + // testJob(".build/docker/run-tests.sh", "test-compression", 8) + // } + // } + // stage('cqlsh') { + // steps { + // testJob(".build/docker/run-tests.sh", "cqlsh-test", 1) + // } + // } + // stage('jvm-dtest') { + // steps { + // testJob(".build/docker/run-tests.sh", "jvm-dtest", 8) + // } + // } + // stage('jvm-dtest-upgrade') { + // steps { + // testJob(".build/docker/run-tests.sh", "jvm-dtest-upgrade", 8) + // } + // } + // stage('dtest') { + // steps { + // testJob(".build/docker/run-tests.sh", "dtest", 64) + // } + // } + // stage('dtest-large') { + // steps { + // testJob(".build/docker/run-tests.sh", "dtest-large", 8) + // } + // } + // stage('dtest-novnode') { + // steps { + // testJob(".build/docker/run-tests.sh", "dtest-novnode", 64) + // } + // } + // stage('dtest-offheap') { + // steps { + // testJob(".build/docker/run-tests.sh", "dtest-offheap", 64) + // } + // } + // stage('dtest-large-novnode') { + // steps { + // testJob(".build/docker/run-tests.sh", "dtest-large-novnode", 8) + // } + // } + // stage('dtest-upgrade') { + // steps { + // testJob(".build/docker/run-tests.sh", "dtest-upgrade", 64) + // } + // } } } stage('Summary') { From fbc962225f3339ac9eb41dced180969b00ff6519 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Wed, 30 Aug 2023 16:32:33 +0530 Subject: [PATCH 005/426] add dsl job file --- .jenkins/DslJob | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .jenkins/DslJob diff --git a/.jenkins/DslJob b/.jenkins/DslJob new file mode 100644 index 000000000000..16725b975c66 --- /dev/null +++ b/.jenkins/DslJob @@ -0,0 +1,18 @@ +pipelineJob('k8s-e2e') { + displayName('Kubernetes Plugin E2E Test') + + definition { + cpsScm { + scm { + git { + remote { + url('https://github.com/infracloudio/cassandra.git') + } + branches('*/infracloud/cassandra-5.0') + } + } + scriptPath('.jenkins/') + } + } +} + From 6fc6259a1fefd56a77e7d0d8a7fc3c5166536f65 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Wed, 30 Aug 2023 16:51:07 +0530 Subject: [PATCH 006/426] add scripted pipeline --- .jenkins/scriptedPipeline | 62 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 .jenkins/scriptedPipeline diff --git a/.jenkins/scriptedPipeline b/.jenkins/scriptedPipeline new file mode 100644 index 000000000000..ad6d8d51eb36 --- /dev/null +++ b/.jenkins/scriptedPipeline @@ -0,0 +1,62 @@ +node('cassandra') { + def javaVersionDefault + def javaVersionsSupported + + stage('Preparation') { + checkout scm + javaVersionDefault = javaVersionDefault() + javaVersionsSupported = javaVersionsSupported() + } + + stage('Init') { + cleanWs() + currentBuild.result = 'SUCCESS' + } + + stage('Builds') { + parallel( + "artifacts": { + buildJob(".build/docker/build-artifacts.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") + } + ) + } + + stage('Test') { + parallel( + "lint": { + buildJob(".build/docker/check-code.sh", "") + }, + "debian": { + buildJob(".build/docker/build-debian.sh", "cassandra_*,cassandra-tools_*") + }, + "redhat": { + buildJob(".build/docker/build-redhat.sh rpm", "*.rpm") + }, + "centos7": { + buildJob(".build/docker/build-redhat.sh noboolean", "*.rpm") + }, + "stress": { + testJob(".build/docker/run-tests.sh", "stress-test", 1) + }, + "fqltool": { + testJob(".build/docker/run-tests.sh", "fqltool-test", 1) + } + // ... Add more test stages as needed + ) + } + + stage('Summary') { + collectConsoleLog() + copyToNightlies('console.log.xz,TESTS-TestSuites.xml.xz') + } +} + +def javaVersionDefault() { + return sh(script: "grep 'property\\s*name=\"java.default\"' build.xml | sed -ne 's/.*value=\"\\([^\"]*\\)\".*/\\1/p'", returnStdout: true).trim() +} + +def javaVersionsSupported() { + return sh(script: "grep 'property\\s*name=\"java.supported\"' build.xml | sed -ne 's/.*value=\"\\([^\"]*\\)\".*/\\1/p'", returnStdout: true).trim() +} + +// Define other helper functions and stages here From 0c468dad3ac6b8d21404778add8988a08f278589 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Wed, 30 Aug 2023 17:03:44 +0530 Subject: [PATCH 007/426] rename dsl and scripted pipelines --- .jenkins/{DslJob => job/DslJob.pipeline} | 2 +- .jenkins/{scriptedPipeline => scriptedPipeline.pipeline} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename .jenkins/{DslJob => job/DslJob.pipeline} (86%) rename .jenkins/{scriptedPipeline => scriptedPipeline.pipeline} (100%) diff --git a/.jenkins/DslJob b/.jenkins/job/DslJob.pipeline similarity index 86% rename from .jenkins/DslJob rename to .jenkins/job/DslJob.pipeline index 16725b975c66..6b4e4b2cd7b5 100644 --- a/.jenkins/DslJob +++ b/.jenkins/job/DslJob.pipeline @@ -11,7 +11,7 @@ pipelineJob('k8s-e2e') { branches('*/infracloud/cassandra-5.0') } } - scriptPath('.jenkins/') + scriptPath('.jenkins/scriptedPipeline.pipeline') } } } diff --git a/.jenkins/scriptedPipeline b/.jenkins/scriptedPipeline.pipeline similarity index 100% rename from .jenkins/scriptedPipeline rename to .jenkins/scriptedPipeline.pipeline From 3f7497d391a590fd2cd3a9dde3d9ef4cc0c5d2d9 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Wed, 30 Aug 2023 17:12:06 +0530 Subject: [PATCH 008/426] rename dsl and scripted pipelines --- .jenkins/job/{DslJob.pipeline => DslJob.jenkins} | 0 .jenkins/{scriptedPipeline.pipeline => scriptedPipeline.jenkins} | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename .jenkins/job/{DslJob.pipeline => DslJob.jenkins} (100%) rename .jenkins/{scriptedPipeline.pipeline => scriptedPipeline.jenkins} (100%) diff --git a/.jenkins/job/DslJob.pipeline b/.jenkins/job/DslJob.jenkins similarity index 100% rename from .jenkins/job/DslJob.pipeline rename to .jenkins/job/DslJob.jenkins diff --git a/.jenkins/scriptedPipeline.pipeline b/.jenkins/scriptedPipeline.jenkins similarity index 100% rename from .jenkins/scriptedPipeline.pipeline rename to .jenkins/scriptedPipeline.jenkins From 1a70f9562434b64a4b7ace3c3578dc30ff0a9443 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Wed, 30 Aug 2023 17:13:17 +0530 Subject: [PATCH 009/426] update dsl pipelines --- .jenkins/job/DslJob.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/job/DslJob.jenkins b/.jenkins/job/DslJob.jenkins index 6b4e4b2cd7b5..da32cf61a04b 100644 --- a/.jenkins/job/DslJob.jenkins +++ b/.jenkins/job/DslJob.jenkins @@ -11,7 +11,7 @@ pipelineJob('k8s-e2e') { branches('*/infracloud/cassandra-5.0') } } - scriptPath('.jenkins/scriptedPipeline.pipeline') + scriptPath('.jenkins/scriptedPipeline.jenkins') } } } From 27ecf8dee27aa24e02b1aa8dfd593fc2a759de1b Mon Sep 17 00:00:00 2001 From: richamishra Date: Thu, 31 Aug 2023 11:37:50 +0530 Subject: [PATCH 010/426] updated script path --- .jenkins/job/DslJob.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/job/DslJob.jenkins b/.jenkins/job/DslJob.jenkins index da32cf61a04b..d9cfdd764ef4 100644 --- a/.jenkins/job/DslJob.jenkins +++ b/.jenkins/job/DslJob.jenkins @@ -11,7 +11,7 @@ pipelineJob('k8s-e2e') { branches('*/infracloud/cassandra-5.0') } } - scriptPath('.jenkins/scriptedPipeline.jenkins') + scriptPath('.jenkins/Jenkinsfile') } } } From 58a2d7ce981210e043ed30ffa838095aa518e659 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Thu, 31 Aug 2023 15:06:14 +0530 Subject: [PATCH 011/426] add pipeline.jenkins file --- .jenkins/pipeline.jenkins | 523 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 523 insertions(+) create mode 100644 .jenkins/pipeline.jenkins diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins new file mode 100644 index 000000000000..bc9d4acd71da --- /dev/null +++ b/.jenkins/pipeline.jenkins @@ -0,0 +1,523 @@ +// 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 +// +// https://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. +// +// +// Jenkins CI declaration. +// +// This file is declarative initially. +// The declarative component describes the pipeline stages and to what CI-agnostic scripts they map to. +// These CI-agnostic scripts are used as an intermediate dockerised layer above the ant build.xml +// The ant build.xml is never invoked directly. +// +// Below the declarative section there is groovy scripting methods for all the logic between +// the 10k ft declarative view and the CI-agnostic scripts. +// +// This Jenkinsfile is expected to work on any ci-cassandra.a.o clone. +// Functionality that depends upon ASF Infra and the canonical ci-cassandra.a.o setup (e.g. post-commit builds) +// is required to quietly fail when run on other environments. +// +// +// Job definitions are still being migrated from (where other CI jobs can also be found): +// https://github.com/apache/cassandra-builds/blob/trunk/jenkins-dsl/cassandra_job_dsl_seed.groovy +// +// +// Syntax help can be found at https://ci-cassandra.apache.org/pipeline-syntax/ +// +// Validate/lint this file using the following command +// `curl -X POST -F "jenkinsfile=<.jenkins/Jenkinsfile" https://ci-cassandra.apache.org/pipeline-model-converter/validate` + +pipeline { + agent { label 'cassandra' } + options { + githubProjectProperty('https://github.com/apache/cassandra') + parallelsAlwaysFailFast() + timestamps() + } + environment { + javaVersionDefault = javaVersionDefault() + javaVersionsSupported = javaVersionsSupported() + } + stages { + stage('Init') { + steps { + cleanWs() + script { currentBuild.result='SUCCESS' } + } + } + stage('Builds') { + parallel { + stage('artifacts') { + steps { + buildJob(".build/docker/build-artifacts.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") + } + } + } + } + stage('Test') { + parallel { + stage('lint') { + steps { + buildJob(".build/docker/check-code.sh", "") + } + } +/** stage('debian') { + steps { + buildJob(".build/docker/build-debian.sh", "cassandra_*,cassandra-tools_*") + } + } + stage('redhat') { + steps { + buildJob(".build/docker/build-redhat.sh rpm", "*.rpm") + } + } + stage('centos7') { + steps { + buildJob(".build/docker/build-redhat.sh noboolean", "*.rpm") + } + } + stage('stress') { + steps { + testJob(".build/docker/run-tests.sh", "stress-test", 1) + } + } + stage('fqltool') { + steps { + testJob(".build/docker/run-tests.sh", "fqltool-test", 1) + } + }**/ + // XXX – commented out for infracloud/cassandra-5.0 branch + // stage('units') { + // steps { + // testJob(".build/docker/run-tests.sh", "test", 8) + // } + // } + // stage('long units') { + // steps { + // testJob(".build/docker/run-tests.sh", "long-test", 8) + // } + // } + // stage('burn') { + // steps { + // testJob(".build/docker/run-tests.sh", "test-burn", 8) + // } + // } + // stage('cdc') { + // steps { + // testJob(".build/docker/run-tests.sh", "test-cdc", 8) + // } + // } + // stage('compression') { + // steps { + // testJob(".build/docker/run-tests.sh", "test-compression", 8) + // } + // } + // stage('cqlsh') { + // steps { + // testJob(".build/docker/run-tests.sh", "cqlsh-test", 1) + // } + // } + // stage('jvm-dtest') { + // steps { + // testJob(".build/docker/run-tests.sh", "jvm-dtest", 8) + // } + // } + // stage('jvm-dtest-upgrade') { + // steps { + // testJob(".build/docker/run-tests.sh", "jvm-dtest-upgrade", 8) + // } + // } + // stage('dtest') { + // steps { + // testJob(".build/docker/run-tests.sh", "dtest", 64) + // } + // } + // stage('dtest-large') { + // steps { + // testJob(".build/docker/run-tests.sh", "dtest-large", 8) + // } + // } + // stage('dtest-novnode') { + // steps { + // testJob(".build/docker/run-tests.sh", "dtest-novnode", 64) + // } + // } + // stage('dtest-offheap') { + // steps { + // testJob(".build/docker/run-tests.sh", "dtest-offheap", 64) + // } + // } + // stage('dtest-large-novnode') { + // steps { + // testJob(".build/docker/run-tests.sh", "dtest-large-novnode", 8) + // } + // } + // stage('dtest-upgrade') { + // steps { + // testJob(".build/docker/run-tests.sh", "dtest-upgrade", 64) + // } + // } + } + } + stage('Summary') { + steps { + // FIXME is this needed if each job is submitting its own results to the overall pipeline ?? + //junit testResults: '**/build/test/**/TEST*.xml,**/cqlshlib.xml,**/nosetests.xml', testDataPublishers: [[$class: 'StabilityTestDataPublisher']] + + //sendNotifications() + + // FIXME how to collect and build one test report file ?? + //generateUnifiedTestReport() + + collectConsoleLog() // FIXME should this be in a final instead ? (we always want the console log archived) + copyToNightlies('console.log.xz,TESTS-TestSuites.xml.xz') + } + } + } +} + +/////////////////////////// +//// scripting support //// +/////////////////////////// + + +/** + * Return the default JDK defined by build.xml + **/ +def javaVersionDefault() { + sh (returnStdout: true, script: 'grep \'property\\s*name=\"java.default\"\' build.xml | sed -ne \'s/.*value=\"\\([^\"]*\\)\".*/\\1/p\'').trim() +} + +/** + * Return the supported JDKs defined by build.xml + **/ +def javaVersionsSupported() { + sh (returnStdout: true, script: 'grep \'property\\s*name=\"java.supported\"\' build.xml | sed -ne \'s/.*value=\"\\([^\"]*\\)\".*/\\1/p\'').trim() +} + +/** + * Is this a post-commit build (or a pre-commit build) + **/ +def isPostCommit() { + // any build of a branch found on github.com/apache/cassandra is considered a post-commit (post-merge) CI run + return "${GIT_URL}".contains("apache/cassandra") +} + +/** + * Are we running on ci-cassandra.apache.org ? + **/ +def isCanonical() { + return "${JENKINS_URL}".contains("ci-cassandra.apache.org") +} + +/** + * Executes `${build_script} ${jdk}` for each arch, and jdk. + * + * Stashes the jarfiles for `package-artifacts.sh` + * Copies build artifacts and logfiles to nightlies + * Cleans the agent (docker prune) afterwards + * Stops the pipeline on any failure + **/ +def buildJob(build_script, toCopy) { + //def archs = ['cassandra', 'cassandra-arm64'] // uncomment when ready for arm64 testing + def archs = ['cassandra'] + def jdks = "${javaVersionsSupported}".split(/,/, -1) + def builds_per_arch = [:] + for (a in archs) { + def arch = a + builds_per_arch[arch] = { + def builds_per_jdk = [:] + for (j in jdks) { + def jdk = j + builds_per_jdk[jdk] = { _buildAxis(build_script, toCopy, arch, jdk) } + } + parallel(builds_per_jdk) + } + } + parallel(builds_per_arch) +} + +/** + * Executes `${build_script} ${jdk}` for stated arch, and jdk. + **/ +def _buildAxis(build_script, toCopy, arch, jdk) { + node(arch) { + branchName: "${build_script} ${jdk} ${NODE_NAME}" + cleanWs() + checkout scm + tool type: 'jdk', name: "jdk_${jdk}_latest" + def statusCode = 0, attempt = 1 + retry(2) { + if (attempt > 1) { sleep(60 * attempt) } + def build_script_safe_name = "${build_script}".replace(".build/docker/", "").replace(".sh", "_").replace(" ", "_") + def logfile = "${JOB_NAME}_${BUILD_NUMBER}_${build_script_safe_name}_jdk${jdk}_${arch}_attempt_${attempt}.log" + sh "mkdir -p build" + def build_dir = sh( returnStdout: true, script:"mktemp -d ${WORKSPACE}/build/build_docker_run.XXXXXXXXXX" ) + try { + if (".build/docker/build-artifacts.sh" != build_script) { + // build-artifacts.sh must be run in an earlier completed stage for the stash to exist + dir(build_dir) { + unstash name: "${arch}_${jdk}" + } + } + echo "Executing `build_dir=${build_dir} ${build_script} ${jdk} 2>&1 | tee ${logfile}` on ${NODE_NAME}" + statusCode = sh returnStatus:true, script:"build_dir=\"${build_dir}\" ${build_script} ${jdk} 2>&1 | tee ${logfile}" + if (".build/docker/build-artifacts.sh" == build_script) { + dir("${build_dir}") { + // only stash the project built files. all dependency libraries are restored from the local maven repo using `ant resolver-dist-lib` + stash name: "${arch}_${jdk}", includes: "*.jar,classes/**,test/classes/**,tools/**", excludes: "dist/**,**/lib/**/*.jar," + } + } + } finally { + attempt = attempt + 1 + sh "xz -f *_attempt_*.log" + copyToNightlies("*_attempt_*.log.xz", "${build_script_safe_name}/jdk${jdk}/${arch}/") + if (0 == statusCode) { + dir("${build_dir}") { + copyToNightlies("${toCopy}", "${build_script_safe_name}/jdk${jdk}/${arch}/") + } + } + cleanAgent(build_script) + if (0 != statusCode) { + currentBuild.result = 'FAILURE' + error("FAILED '${build_script} ${jdk}' on ${NODE_NAME}") + } else { + echo "Complete '${build_script} ${jdk}' on ${NODE_NAME}" + } + } + } + } +} + +/** + * Saves JUnit results, fails if no reports are found + * Copies (single-file unified) junit results and logfiles to nightlies + * Cleans the agent (docker prune) afterwards + * Stops the pipeline on any failure + **/ +def testJob(test_script, test_type, splits=1, toCopy='') { + //def archs = ['cassandra', 'cassandra-arm64'] // uncomment when ready for arm64 testing + def archs = ['cassandra'] + //def jdks = "${javaVersionsSupported}".split(/,/, -1) // TODO uncomment – this is the real mcoy + def jdks = ['11'] + def pythons = ['3.7'] + def cythons = ['no'] + def tests_per_arch = [:] + + // XXX – the following matrix over arrays should be better done with multi-arrays and recursion + + for (a in archs) { + def arch = a + tests_per_arch[arch] = { + def tests_per_jdk = [:] + for (j in jdks) { + def jdk = j + tests_per_jdk[jdk] = { + def tests_per_python = [:] + for (p in pythons) { + def python = p + tests_per_python[python] = { + def tests_per_cython = [:] + for (c in cythons) { + def cython = c + tests_per_cython[cython] = { + def tests_per_split = [:] + for (s in 1..splits) { + def split = s + tests_per_split[split] = { + _testAxis(test_script, test_type, toCopy, arch, jdk, python, cython, "${split}/${splits}") + } + } + parallel(tests_per_split) + } + } + parallel(tests_per_cython) + } + } + parallel(tests_per_python) + } + } + parallel(tests_per_jdk) + } + } + parallel(tests_per_arch) +} + +/** + * Executes `.build/test-docker.sh ${testDockerImage} ${test_type} ${split}` for the stated arch, jdk, python, cython, and split. + **/ +def _testAxis(test_script, test_type, toCopy, arch, jdk, python, cython, split) { + echo "Spawning `${test_script} ${test_type} ${split} ${jdk}` with arch=${arch} jdk=${jdk} python${python} cython=${cython}" + node(arch) { + branchName: "${test_script} ${test_type} ${split} ${jdk} ${NODE_NAME}" + echo "Starting `${test_script} ${test_type} ${split} ${jdk}` with arch=${arch} jdk=${jdk} python${python} cython=${cython} on ${NODE_NAME}" + cleanWs() + checkout scm + tool type: 'jdk', name: "jdk_${jdk}_latest" + // FIXME python – need a tool type (like jdk above) + // FIXME cython – need a tool type (like jdk above) + def statusCode = 0, attempt = 1 + retry(2) { + if (attempt > 1) { sleep(60 * attempt) } + def logfile = "${JOB_NAME}_${BUILD_NUMBER}_${test_type}_jdk${jdk}_python_${python}_${cython}_${arch}_attempt_${attempt}.log" + try { + dir("build") { + unstash name: "${arch}_${jdk}" + } + echo "Executing `${test_script} ${test_type} ${split} ${jdk} 2>&1 | tee ${logfile}` on ${NODE_NAME} with jdk=${jdk} python=${python} cython=${cython}" + statusCode = sh returnStatus:true, script:"${test_script} ${test_type} ${split} ${jdk} 2>&1 | tee ${logfile}" + } finally { + attempt = attempt + 1 + if (0 == statusCode) { + junit testResults: '**/build/test/**/TEST*.xml,**/cqlshlib.xml,**/nosetests.xml', testDataPublishers: [[$class: 'StabilityTestDataPublisher']] + } else { + toCopy = "" + } + sh "xz -f *_attempt_*.log" + copyToNightlies("*_attempt_*.log.xz,console.log.xz,TESTS-TestSuites.xml.xz,build/test/logs/**,${toCopy}", "${test_type}/${arch}/jdk${jdk}/python${python}/cython_${cython}/" + "split_${split}".replace("/", "_")) + cleanAgent(test_script) + if (0 != statusCode) { + currentBuild.result = 'FAILURE' + error("FAILED `${test_script} ${test_type} ${split} ${jdk}` with arch=${arch} jdk=${jdk} python=${python} cython=${cython} on ${NODE_NAME}") + } else { + echo "Complete `${test_script} ${test_type} ${split} ${jdk}` with arch=${arch} jdk=${jdk} python=${python} cython=${cython} on ${NODE_NAME}" + } + } + } + if (build_result.result != 'SUCCESS') unstable("${build_name} failures") + if (build_result.result == 'ABORTED' && currentBuild.result != 'FAILURE') currentBuild.result='ABORTED' + if (build_result.result == 'FAILURE') currentBuild.result='FAILURE' + } +} + +def copyToNightlies(sourceFiles, remoteDirectory='') { + if (isCanonical()) { + def remotePath = remoteDirectory.startsWith("cassandra/") ? "${remoteDirectory}" : "cassandra/${JOB_NAME}/${BUILD_NUMBER}/${remoteDirectory}" + def attempt = 1 + retry(9) { + if (attempt > 1) { sleep(60 * attempt) } + sshPublisher( + continueOnError: true, failOnError: false, + publishers: [ + sshPublisherDesc( + configName: "Nightlies", + transfers: [ sshTransfer( sourceFiles: sourceFiles, remoteDirectory: remotePath) ] + ) + ]) + } + echo "archived to https://nightlies.apache.org/${remotePath}" + } +} + +def cleanAgent(job_name) { + if (isCanonical()) { + def maxJobHours = 12 + echo "Cleaning project, processes, docker for '${job_name}' on ${NODE_NAME}…" ; + sh """ + git clean -qxdff -e build/test/jmh-result.json || true; + if pgrep -xa docker || pgrep -af "build/docker" || pgrep -af "cassandra-builds/build-scripts" ; then docker system prune --all --force --filter "until=${maxJobHours}h" || true ; else docker system prune --force --volumes || true ; fi; + """ + } +} + +// CASSANDRA-18130 +def saveAgentReport(build_name) { + if (isCanonical()) { + // + // echo "Updating disk usage report…"; + // sh """ + // ( echo "----" ; + // echo \$(date) ; + // echo "${JOB_NAME} ${BUILD_NUMBER} ${build_name}" ; + // du -xm / 2>/dev/null | sort -rn | head -n 30 ; + // df -h ) | tee -a \$(date +"%Y%m%d%H%M")-disk-usage-stats.txt + // """ + // copyToNightlies("*-disk-usage-stats.txt", "cassandra/agents/${NODE_NAME}/disk-usage/") + // sh 'rm *-disk-usage-stats.txt' + } +} + +///////////////////////////////////////// +////// scripting support for summary //// +///////////////////////////////////////// + +// FIXME – we need first to collect all the test result files from each job, putting them under buid/test/output/ +def generateUnifiedTestReport() { + sh "ant generate-unified-test-report" + sh "xz -f build/TESTS-TestSuites.xml" +} + +def collectConsoleLog() { + sh "wget --retry-connrefused --waitretry=1 \"\${BUILD_URL}/timestamps/?time=HH:mm:ss&timeZone=UTC&appendLog\" -qO console.log || echo wget failed" + sh "xz -f console.log" +} + +def copyTestResults(build_name, build_number) { + try { + step([$class: 'CopyArtifact', + projectName: "${build_name}", + optional: true, + fingerprintArtifacts: true, + selector: specific("${build_number}"), + target: build_name]); + } catch (Exception ex) { + echo 'Exception occurred getting test results for ' + build_name + '#' + build_number + ex.toString() + } +} + +def sendNotifications() { + if (isPostCommit() && isCanonical()) { + // the following is expected only to work on ci-cassandra.apache.org + try { + script { + changes = formatChangeLogChanges(currentBuild.changeSets) + echo "changes: ${changes}" + } + slackSend channel: '#cassandra-builds', message: ":apache: <${BUILD_URL}|${currentBuild.fullDisplayName}> completed: ${currentBuild.result}. \n${changes}" + emailext to: 'builds@cassandra.apache.org', subject: "Build complete: ${currentBuild.fullDisplayName} [${currentBuild.result}] ${GIT_COMMIT}", presendScript: 'msg.removeHeader("In-Reply-To"); msg.removeHeader("References")', body: emailContent() + } catch (Exception ex) { + echo 'failed to send notifications ' + ex.toString() + } + } +} + +def formatChangeLogChanges(changeLogSets) { + def result = '' + for (int i = 0; i < changeLogSets.size(); i++) { + def entries = changeLogSets[i].items + for (int j = 0; j < entries.length; j++) { + def entry = entries[j] + result = result + "${entry.commitId} by ${entry.author} on ${new Date(entry.timestamp)}: ${entry.msg}\n" + } + } + return result +} + +def emailContent() { + return ''' + ------------------------------------------------------------------------------- + Build ${ENV,var="JOB_NAME"} #${BUILD_NUMBER} ${BUILD_STATUS} + URL: ${BUILD_URL} + ------------------------------------------------------------------------------- + Changes: + ${CHANGES} + ------------------------------------------------------------------------------- + Failed Tests: + ${FAILED_TESTS,maxTests=500,showMessage=false,showStack=false} + ------------------------------------------------------------------------------- + For complete test report and logs see https://nightlies.apache.org/cassandra/${JOB_NAME}/${BUILD_NUMBER}/ + ''' +} From 3b0d97fd34a00371d474e3dfe62ab19dcf6c17cf Mon Sep 17 00:00:00 2001 From: Nbarola Date: Thu, 31 Aug 2023 15:07:34 +0530 Subject: [PATCH 012/426] update pipeline path in dsl job --- .jenkins/job/DslJob.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/job/DslJob.jenkins b/.jenkins/job/DslJob.jenkins index d9cfdd764ef4..5ee99d1a0838 100644 --- a/.jenkins/job/DslJob.jenkins +++ b/.jenkins/job/DslJob.jenkins @@ -11,7 +11,7 @@ pipelineJob('k8s-e2e') { branches('*/infracloud/cassandra-5.0') } } - scriptPath('.jenkins/Jenkinsfile') + scriptPath('.jenkins/pipeline.jenkins') } } } From 2eb1bafc68c95abd58b0e23aa4af571e8b559f8d Mon Sep 17 00:00:00 2001 From: Nbarola Date: Thu, 31 Aug 2023 15:15:37 +0530 Subject: [PATCH 013/426] update pipeline.jenkins file --- .jenkins/pipeline.jenkins | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index bc9d4acd71da..a793b777152d 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -58,7 +58,7 @@ pipeline { script { currentBuild.result='SUCCESS' } } } - stage('Builds') { + /** stage('Builds') { parallel { stage('artifacts') { steps { @@ -74,7 +74,7 @@ pipeline { buildJob(".build/docker/check-code.sh", "") } } -/** stage('debian') { + stage('debian') { steps { buildJob(".build/docker/build-debian.sh", "cassandra_*,cassandra-tools_*") } From 913bff3a1a5fce4220180d0b7fe890f66c552850 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Thu, 31 Aug 2023 15:18:01 +0530 Subject: [PATCH 014/426] update pipeline.jenkins file --- .jenkins/pipeline.jenkins | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index a793b777152d..b8478a5f1e54 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -98,7 +98,7 @@ pipeline { steps { testJob(".build/docker/run-tests.sh", "fqltool-test", 1) } - }**/ + } // XXX – commented out for infracloud/cassandra-5.0 branch // stage('units') { // steps { @@ -171,7 +171,7 @@ pipeline { // } // } } - } + }**/ stage('Summary') { steps { // FIXME is this needed if each job is submitting its own results to the overall pipeline ?? From 65a3437ceeddbb3b71336645fd49f8262f7e705a Mon Sep 17 00:00:00 2001 From: Nbarola Date: Thu, 31 Aug 2023 15:23:32 +0530 Subject: [PATCH 015/426] update pipeline.jenkins file --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index b8478a5f1e54..c8c9fa4ad117 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -41,7 +41,7 @@ // `curl -X POST -F "jenkinsfile=<.jenkins/Jenkinsfile" https://ci-cassandra.apache.org/pipeline-model-converter/validate` pipeline { - agent { label 'cassandra' } + agent any options { githubProjectProperty('https://github.com/apache/cassandra') parallelsAlwaysFailFast() From a8a49ff8978d7defa8f16528d0078f985ddd0944 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Thu, 31 Aug 2023 15:42:27 +0530 Subject: [PATCH 016/426] add k8s agent and update step to run in a container --- .jenkins/pipeline.jenkins | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index c8c9fa4ad117..ce428dbdf655 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -41,7 +41,25 @@ // `curl -X POST -F "jenkinsfile=<.jenkins/Jenkinsfile" https://ci-cassandra.apache.org/pipeline-model-converter/validate` pipeline { - agent any + agent { + kubernetes { + yaml ''' + apiVersion: v1 + kind: Pod + metadata: + labels: + label: cassandra + spec: + containers: + - name: busybox + image: busybox + command: + - cat + tty: true + ''' + retries 2 + } + } options { githubProjectProperty('https://github.com/apache/cassandra') parallelsAlwaysFailFast() @@ -54,8 +72,10 @@ pipeline { stages { stage('Init') { steps { - cleanWs() - script { currentBuild.result='SUCCESS' } + container('busybox') { + cleanWs() + script { currentBuild.result='SUCCESS' } + } } } /** stage('Builds') { From 482d65f7d834692d99f939315a58a319a4f32bcc Mon Sep 17 00:00:00 2001 From: Nbarola Date: Thu, 31 Aug 2023 15:59:49 +0530 Subject: [PATCH 017/426] add k8s agent and update step to run in a container --- .jenkins/pipeline.jenkins | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index ce428dbdf655..c94e32907862 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -43,21 +43,22 @@ pipeline { agent { kubernetes { + label 'cassandra' + defaultContainer 'alpine' yaml ''' apiVersion: v1 kind: Pod metadata: labels: - label: cassandra + jenkins: label spec: containers: - - name: busybox - image: busybox + - name: alpine + image: alpine:3.11 command: - cat tty: true ''' - retries 2 } } options { @@ -72,9 +73,10 @@ pipeline { stages { stage('Init') { steps { - container('busybox') { - cleanWs() - script { currentBuild.result='SUCCESS' } + container('alpine') { + //cleanWs() + //script { currentBuild.result='SUCCESS' } + echo "in container" } } } From 4a3e4121f7aa9e73c83119800dd49d78a503db19 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Thu, 31 Aug 2023 16:14:05 +0530 Subject: [PATCH 018/426] add dummy.jenkins file --- .jenkins/dummy.jenkins | 28 ++++++++++++++++++++++++++++ .jenkins/job/DslJob.jenkins | 2 +- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 .jenkins/dummy.jenkins diff --git a/.jenkins/dummy.jenkins b/.jenkins/dummy.jenkins new file mode 100644 index 000000000000..c479fe06e9d7 --- /dev/null +++ b/.jenkins/dummy.jenkins @@ -0,0 +1,28 @@ +pipeline { + agent { + kubernetes { + yaml ''' +apiVersion: v1 +kind: Pod +metadata: + name: andreas-test +spec: + containers: + - name: jnlp + image: jenkins/inbound-agent:4.3-4-jdk11 + command: ["sleep", "10000"] +''' + + } + } + + stages { + stage('Say Hello World') { + steps { + container("jnlp") { + echo "Hello World!" + } + } + } + } +} diff --git a/.jenkins/job/DslJob.jenkins b/.jenkins/job/DslJob.jenkins index 5ee99d1a0838..4540b0b47c4a 100644 --- a/.jenkins/job/DslJob.jenkins +++ b/.jenkins/job/DslJob.jenkins @@ -11,7 +11,7 @@ pipelineJob('k8s-e2e') { branches('*/infracloud/cassandra-5.0') } } - scriptPath('.jenkins/pipeline.jenkins') + scriptPath('.jenkins/dummy.jenkins') } } } From d1ddb74d655bac3850233b2b0b6b83f35ee0717a Mon Sep 17 00:00:00 2001 From: Nbarola Date: Thu, 31 Aug 2023 17:40:57 +0530 Subject: [PATCH 019/426] update dls job with pipeline file path --- .jenkins/job/DslJob.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/job/DslJob.jenkins b/.jenkins/job/DslJob.jenkins index 4540b0b47c4a..5ee99d1a0838 100644 --- a/.jenkins/job/DslJob.jenkins +++ b/.jenkins/job/DslJob.jenkins @@ -11,7 +11,7 @@ pipelineJob('k8s-e2e') { branches('*/infracloud/cassandra-5.0') } } - scriptPath('.jenkins/dummy.jenkins') + scriptPath('.jenkins/pipeline.jenkins') } } } From 02ded5b96e5e1d9428b2be924c7401c2fd8e62e2 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Fri, 1 Sep 2023 12:09:06 +0530 Subject: [PATCH 020/426] update pipeline.jenkins file --- .jenkins/pipeline.jenkins | 32 ++++++++++++++++++++------------ 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index c94e32907862..fca25db8e848 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -76,15 +76,16 @@ pipeline { container('alpine') { //cleanWs() //script { currentBuild.result='SUCCESS' } - echo "in container" + sh 'echo "stage init"' } } } - /** stage('Builds') { + stage('Builds') { parallel { stage('artifacts') { steps { - buildJob(".build/docker/build-artifacts.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") + //buildJob(".build/docker/build-artifacts.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") + sh 'echo "stage artifacts"' } } } @@ -93,32 +94,38 @@ pipeline { parallel { stage('lint') { steps { - buildJob(".build/docker/check-code.sh", "") + //buildJob(".build/docker/check-code.sh", "") + sh 'echo "stage lint"' } } stage('debian') { steps { - buildJob(".build/docker/build-debian.sh", "cassandra_*,cassandra-tools_*") + //buildJob(".build/docker/build-debian.sh", "cassandra_*,cassandra-tools_*") + sh 'echo "stage debian"' } } stage('redhat') { steps { - buildJob(".build/docker/build-redhat.sh rpm", "*.rpm") + //buildJob(".build/docker/build-redhat.sh rpm", "*.rpm") + sh 'echo "stage redhat"' } } stage('centos7') { steps { - buildJob(".build/docker/build-redhat.sh noboolean", "*.rpm") + //buildJob(".build/docker/build-redhat.sh noboolean", "*.rpm") + sh 'echo "stage centos7"' } } stage('stress') { steps { - testJob(".build/docker/run-tests.sh", "stress-test", 1) + //testJob(".build/docker/run-tests.sh", "stress-test", 1) + sh 'echo "stage stress"' } } stage('fqltool') { steps { - testJob(".build/docker/run-tests.sh", "fqltool-test", 1) + //testJob(".build/docker/run-tests.sh", "fqltool-test", 1) + sh 'echo "stage fqltool"' } } // XXX – commented out for infracloud/cassandra-5.0 branch @@ -193,7 +200,7 @@ pipeline { // } // } } - }**/ + } stage('Summary') { steps { // FIXME is this needed if each job is submitting its own results to the overall pipeline ?? @@ -204,8 +211,9 @@ pipeline { // FIXME how to collect and build one test report file ?? //generateUnifiedTestReport() - collectConsoleLog() // FIXME should this be in a final instead ? (we always want the console log archived) - copyToNightlies('console.log.xz,TESTS-TestSuites.xml.xz') + //collectConsoleLog() // FIXME should this be in a final instead ? (we always want the console log archived) + //copyToNightlies('console.log.xz,TESTS-TestSuites.xml.xz') + sh 'echo "stage summary"' } } } From c14b8609c91a6465d06f349f0232c16358d7bbea Mon Sep 17 00:00:00 2001 From: richamishra Date: Fri, 1 Sep 2023 16:34:38 +0530 Subject: [PATCH 021/426] updated build job --- .jenkins/pipeline.jenkins | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index fca25db8e848..6fe19f10371e 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -74,9 +74,9 @@ pipeline { stage('Init') { steps { container('alpine') { - //cleanWs() - //script { currentBuild.result='SUCCESS' } - sh 'echo "stage init"' + cleanWs() + script { currentBuild.result='SUCCESS' } + //sh 'echo "stage init"' } } } @@ -84,7 +84,7 @@ pipeline { parallel { stage('artifacts') { steps { - //buildJob(".build/docker/build-artifacts.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") + buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") sh 'echo "stage artifacts"' } } From e9331f30c1aff6a80573c5217ad8b60cfe6a61cd Mon Sep 17 00:00:00 2001 From: richamishra Date: Fri, 1 Sep 2023 16:41:12 +0530 Subject: [PATCH 022/426] updated build job --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 6fe19f10371e..87f1f14d65aa 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -76,7 +76,7 @@ pipeline { container('alpine') { cleanWs() script { currentBuild.result='SUCCESS' } - //sh 'echo "stage init"' + sh 'echo "stage init"' } } } From fcfcaa5c939b67d605f4a6e2a8e9965e8cbc85d2 Mon Sep 17 00:00:00 2001 From: richamishra Date: Fri, 1 Sep 2023 16:45:01 +0530 Subject: [PATCH 023/426] updated build job --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 87f1f14d65aa..19200d5e5c3c 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -84,7 +84,7 @@ pipeline { parallel { stage('artifacts') { steps { - buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") + buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh jdk_11_latest", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") sh 'echo "stage artifacts"' } } From bb64ff6ed9159e5a7746b1ee8f02975532c1520f Mon Sep 17 00:00:00 2001 From: richamishra Date: Fri, 1 Sep 2023 16:45:42 +0530 Subject: [PATCH 024/426] updated build job --- .jenkins/pipeline.jenkins | 1 + 1 file changed, 1 insertion(+) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 19200d5e5c3c..1d15a39609d4 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -84,6 +84,7 @@ pipeline { parallel { stage('artifacts') { steps { + sh 'echo "starting artifacts stage"' buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh jdk_11_latest", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") sh 'echo "stage artifacts"' } From 5ee3d8e3e4aa3f51c4bc13be88e4bd84bc59c022 Mon Sep 17 00:00:00 2001 From: richamishra Date: Fri, 1 Sep 2023 16:48:54 +0530 Subject: [PATCH 025/426] updated build job --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 1d15a39609d4..f7f5e102127e 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -85,7 +85,7 @@ pipeline { stage('artifacts') { steps { sh 'echo "starting artifacts stage"' - buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh jdk_11_latest", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") + buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh openjdk-11-jdk", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") sh 'echo "stage artifacts"' } } From 522a162217fa84cf4ab25bca70007d2d2fc4d35e Mon Sep 17 00:00:00 2001 From: richamishra Date: Fri, 1 Sep 2023 16:53:26 +0530 Subject: [PATCH 026/426] updated build job --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index f7f5e102127e..fb8cc02b776d 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -85,7 +85,7 @@ pipeline { stage('artifacts') { steps { sh 'echo "starting artifacts stage"' - buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh openjdk-11-jdk", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") + buildJob(".build/docker/_docker_run.sh .buid/docker/bullseye-build.docker .build/build-jars.sh openjdk-11-jdk", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") sh 'echo "stage artifacts"' } } From 5539bf4e7fe1579af1e998ce35fd1f1105d5d790 Mon Sep 17 00:00:00 2001 From: richamishra Date: Fri, 1 Sep 2023 16:59:23 +0530 Subject: [PATCH 027/426] updated build job --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index fb8cc02b776d..61c556b3b3dd 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -85,7 +85,7 @@ pipeline { stage('artifacts') { steps { sh 'echo "starting artifacts stage"' - buildJob(".build/docker/_docker_run.sh .buid/docker/bullseye-build.docker .build/build-jars.sh openjdk-11-jdk", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") + buildJob(".build/docker/_docker_run.sh", "bullseye-build.docker", "build-jars.sh") sh 'echo "stage artifacts"' } } From 536b1c0f9662cd68854a972d98e097c7e205d6b7 Mon Sep 17 00:00:00 2001 From: richamishra Date: Fri, 1 Sep 2023 17:04:19 +0530 Subject: [PATCH 028/426] updated build job --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 61c556b3b3dd..2b0a5a9cedb6 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -85,7 +85,7 @@ pipeline { stage('artifacts') { steps { sh 'echo "starting artifacts stage"' - buildJob(".build/docker/_docker_run.sh", "bullseye-build.docker", "build-jars.sh") + buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh") sh 'echo "stage artifacts"' } } From 3d0eb68e7e40c94bf9f4c332470e60928720e902 Mon Sep 17 00:00:00 2001 From: richamishra Date: Fri, 1 Sep 2023 17:17:57 +0530 Subject: [PATCH 029/426] updated build job --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 2b0a5a9cedb6..49f87462c753 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -85,7 +85,7 @@ pipeline { stage('artifacts') { steps { sh 'echo "starting artifacts stage"' - buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh") + buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") sh 'echo "stage artifacts"' } } From f4e6d0a4414c07dfe9ba0a7589d09412cbe67786 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Fri, 1 Sep 2023 17:37:57 +0530 Subject: [PATCH 030/426] update DslJob.jenkins file --- .jenkins/job/DslJob.jenkins | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.jenkins/job/DslJob.jenkins b/.jenkins/job/DslJob.jenkins index 5ee99d1a0838..aba3ea9a7fbf 100644 --- a/.jenkins/job/DslJob.jenkins +++ b/.jenkins/job/DslJob.jenkins @@ -1,3 +1,19 @@ +#!/usr/bin/env groovy + +job('jenkins-operator-job-dsl-seed') { + description('Seed Job that generates and triggers the GeneratedPipelineJob') + configure { project -> + project / 'publishers' << 'hudson.tasks.BuildTrigger' { + childProjects('k8s-e2e') + threshold { + name('SUCCESS') + } + } + } +} + + + pipelineJob('k8s-e2e') { displayName('Kubernetes Plugin E2E Test') From 27eb9e723d54b1a2f8fd7ddce2cd8397ba33895d Mon Sep 17 00:00:00 2001 From: richamishra Date: Fri, 1 Sep 2023 17:42:23 +0530 Subject: [PATCH 031/426] added jenkins deployment file --- .build/jenkins-deployment.yaml | 95 ++++++++++++++++++++++++++++++++++ 1 file changed, 95 insertions(+) create mode 100644 .build/jenkins-deployment.yaml diff --git a/.build/jenkins-deployment.yaml b/.build/jenkins-deployment.yaml new file mode 100644 index 000000000000..d0b4fe9005e6 --- /dev/null +++ b/.build/jenkins-deployment.yaml @@ -0,0 +1,95 @@ +apiVersion: jenkins.io/v1alpha2 +kind: Jenkins +metadata: + name: example +spec: + service: + type: ClusterIP + port: 8080 + configurationAsCode: + configurations: [] + secret: + name: "" + groovyScripts: + configurations: [] + secret: + name: "" + jenkinsAPISettings: + authorizationStrategy: createUser + master: + plugins: + - name: ws-cleanup + version: "0.45" + - name: javadoc + version: "243.vb_b_503b_b_45537" + - name: description-setter + version: "1.10" + - name: throttle-concurrents + version: "2.14" + - name: test-stability + version: "2.3" + - name: postbuildscript + version: "3.2.0-550.v88192b_d3e922" + - name: github + version: "1.37.3" + - name: timestamper + version: "1.26" + basePlugins: + - name: kubernetes + version: "4029.v5712230ccb_f8" + - name: workflow-job + version: "1342.v046651d5b_dfe" + - name: workflow-aggregator + version: "596.v8c21c963d92d" + - name: git + version: "5.2.0" + - name: job-dsl + version: "1.84" + - name: configuration-as-code + version: "1670.v564dc8b_982d0" + - name: kubernetes-credentials-provider + version: "1.225.v14f9e6b_28f53" + disableCSRFProtection: false + containers: + - name: jenkins-master + image: jenkins/jenkins:2.414.1-lts-jdk11 + # env: + # - name: JAVA_OPTS + # value: "-Dhudson.cli.CLI.HTTPS=true -Djenkins.websocket=false" + imagePullPolicy: Always + livenessProbe: + failureThreshold: 12 + httpGet: + path: /login + port: http + scheme: HTTP + initialDelaySeconds: 100 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 + readinessProbe: + failureThreshold: 10 + httpGet: + path: /login + port: http + scheme: HTTP + initialDelaySeconds: 80 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 1 + resources: + limits: + cpu: 1500m + memory: 3Gi + requests: + cpu: 500m + memory: 500Mi + securityContext: + fsGroup: 1000 + runAsUser: 1000 + seedJobs: + - id: jenkins-operator + targets: ".jenkins/job/*.jenkins" + description: "Casandra Repo" + repositoryBranch: infracloud/cassandra-5.0 + repositoryUrl: https://github.com/infracloudio/cassandra.git \ No newline at end of file From 016d2d4593cd9e40d58946a69dddb76dc8eb55db Mon Sep 17 00:00:00 2001 From: Nbarola Date: Fri, 1 Sep 2023 17:42:35 +0530 Subject: [PATCH 032/426] add run-ci.sh script to run the jenkins operator then the pipeline jobs --- .build/run-ci.sh | 72 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 .build/run-ci.sh diff --git a/.build/run-ci.sh b/.build/run-ci.sh new file mode 100644 index 000000000000..22d091d002f6 --- /dev/null +++ b/.build/run-ci.sh @@ -0,0 +1,72 @@ +#!/bin/bash + +# Parse command-line arguments +while [[ $# -gt 0 ]]; do + key="$1" + case $key in + -c|--kubeconfig) + KUBECONFIG="$2" # This sets the KUBECONFIG variable to the next argument. + shift # This shifts the arguments to the left, discarding the current argument and moving to the next one. + shift # This is an additional shift to move to the argument after the option value. + ;; + -ctx|--kubecontext) + KUBECONTEXT="$2" # This sets the KUBECONTEXT variable to the next argument. + shift # This shifts the arguments to the left, discarding the current argument and moving to the next one. + shift # This is an additional shift to move to the argument after the option value. + ;; + *) + echo "Unknown option: $1" + exit 1 + ;; + esac +done + +if [ -z "$KUBECONFIG" ] && [ -z "$KUBECONTEXT" ]; then + echo "Please provide either the path to the kubeconfig using -c|--kubeconfig option or the kubecontext using -ctx|--kubecontext option." + exit 1 +fi + +# This sets the kubeconfig and kubecontext if provided +if [ -n "$KUBECONFIG" ]; then + export KUBECONFIG="$KUBECONFIG" +fi + +if [ -n "$KUBECONTEXT" ]; then + kubectl config use-context "$KUBECONTEXT" +fi + +# Install Helm + +# Check if Helm is already installed +if ! command -v helm &>/dev/null; then + echo "Helm not found. Installing Helm..." + curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 # enhance without downloading the script + chmod 700 get_helm.sh + ./get_helm.sh +else + echo "Helm is already installed." +fi + +# Add Helm Jenkins Operator repository +echo "Adding Helm repository for Jenkins Operator..." +helm repo add jenkins https://raw.githubusercontent.com/jenkinsci/kubernetes-operator/master/chart + +# Install Jenkins Operator using Helm +echo "Installing Jenkins Operator..." +helm upgrade --install jenkins-operator jenkins/jenkins-operator --set jenkins.enabled=false --set jenkins.backup.enabled=false --version 0.8.0-beta.2 + +echo "Jenkins Operator installed successfully!" # condition to check if above command was success + +# deploy jenkins Instance TODO jenkins file parameter +kubectl apply -f jenkins-deployment.yaml + +# TODO wait for job pods +#kubectl rollout wait pod/ [--for=] + +#sleep 120 + +# get job pod name - TODO parametrise the job name +#jobPodName=$(kubectl get po | grep k8sagent-e2e | cut -d " " -f1) + +# get the file - TODO parameterize the path to fetch path +#kubectl exec -n default $jobPodName -- tar cf - /home/jenkins/agent/workspace/k8s-e2e | tar xf - -C . From e7c96f763ab1d03ef38abc060f885a0f16d9215e Mon Sep 17 00:00:00 2001 From: richamishra Date: Fri, 1 Sep 2023 17:50:28 +0530 Subject: [PATCH 033/426] runnign stress job --- .jenkins/pipeline.jenkins | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 49f87462c753..b2016b4eaf64 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -85,7 +85,7 @@ pipeline { stage('artifacts') { steps { sh 'echo "starting artifacts stage"' - buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") + #buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") sh 'echo "stage artifacts"' } } @@ -119,7 +119,7 @@ pipeline { } stage('stress') { steps { - //testJob(".build/docker/run-tests.sh", "stress-test", 1) + testJob(".build/docker/run-tests.sh", "stress-test", 1) sh 'echo "stage stress"' } } From 54aef1b25749e9cf940c0e198678a47154ba69b6 Mon Sep 17 00:00:00 2001 From: richamishra Date: Fri, 1 Sep 2023 17:51:19 +0530 Subject: [PATCH 034/426] runnign stress job --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index b2016b4eaf64..0ec7ecf9db21 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -85,7 +85,7 @@ pipeline { stage('artifacts') { steps { sh 'echo "starting artifacts stage"' - #buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") + //buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") sh 'echo "stage artifacts"' } } From 5426f1160b58fef0706c8b05de837defc04d1298 Mon Sep 17 00:00:00 2001 From: richamishra Date: Fri, 1 Sep 2023 18:06:42 +0530 Subject: [PATCH 035/426] reverted stess stage and only running artifact --- .jenkins/pipeline.jenkins | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 0ec7ecf9db21..49f87462c753 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -85,7 +85,7 @@ pipeline { stage('artifacts') { steps { sh 'echo "starting artifacts stage"' - //buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") + buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") sh 'echo "stage artifacts"' } } @@ -119,7 +119,7 @@ pipeline { } stage('stress') { steps { - testJob(".build/docker/run-tests.sh", "stress-test", 1) + //testJob(".build/docker/run-tests.sh", "stress-test", 1) sh 'echo "stage stress"' } } From f1775f9386614c64f3ecbc94637d1e5ae4242316 Mon Sep 17 00:00:00 2001 From: Mick Semb Wever Date: Sat, 2 Sep 2023 18:46:05 +0200 Subject: [PATCH 036/426] =?UTF-8?q?SQUASH=20=E2=80=93=C2=A0Add=20license,?= =?UTF-8?q?=20defaults,=20preconditions,=20namespace,=20teardown?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .build/run-ci.sh | 58 ++++++++++++++++++++++++++++++++++-------------- 1 file changed, 41 insertions(+), 17 deletions(-) mode change 100644 => 100755 .build/run-ci.sh diff --git a/.build/run-ci.sh b/.build/run-ci.sh old mode 100644 new mode 100755 index 22d091d002f6..d4e004da2c01 --- a/.build/run-ci.sh +++ b/.build/run-ci.sh @@ -1,4 +1,30 @@ #!/bin/bash +# +# 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. +# + +# variables, with defaults +[ "x${CASSANDRA_DIR}" != "x" ] || CASSANDRA_DIR="$(readlink -f $(dirname "$0")/..)" +[ "x${KUBECONFIG}" != "x" ] || KUBECONFIG="${HOME}/.kube/config" +[ "x${KUBE_NS}" != "x" ] || KUBE_NS="default" # FIXME – doesn't work in other namespaces :shrug: + +# pre-conditions +command -v kubectl >/dev/null 2>&1 || { echo >&2 "kubectl needs to be installed"; exit 1; } +command -v helm >/dev/null 2>&1 || { echo >&2 "helm needs to be installed"; exit 1; } # Parse command-line arguments while [[ $# -gt 0 ]]; do @@ -10,6 +36,7 @@ while [[ $# -gt 0 ]]; do shift # This is an additional shift to move to the argument after the option value. ;; -ctx|--kubecontext) + unset KUBECONFIG KUBECONTEXT="$2" # This sets the KUBECONTEXT variable to the next argument. shift # This shifts the arguments to the left, discarding the current argument and moving to the next one. shift # This is an additional shift to move to the argument after the option value. @@ -35,38 +62,35 @@ if [ -n "$KUBECONTEXT" ]; then kubectl config use-context "$KUBECONTEXT" fi -# Install Helm - -# Check if Helm is already installed -if ! command -v helm &>/dev/null; then - echo "Helm not found. Installing Helm..." - curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 # enhance without downloading the script - chmod 700 get_helm.sh - ./get_helm.sh -else - echo "Helm is already installed." +if ! kubectl get namespace ${KUBE_NS} >/dev/null 2>/dev/null ; then + kubectl create namespace ${KUBE_NS} fi # Add Helm Jenkins Operator repository echo "Adding Helm repository for Jenkins Operator..." -helm repo add jenkins https://raw.githubusercontent.com/jenkinsci/kubernetes-operator/master/chart +helm repo add --namespace ${KUBE_NS} jenkins https://raw.githubusercontent.com/jenkinsci/kubernetes-operator/master/chart # Install Jenkins Operator using Helm echo "Installing Jenkins Operator..." -helm upgrade --install jenkins-operator jenkins/jenkins-operator --set jenkins.enabled=false --set jenkins.backup.enabled=false --version 0.8.0-beta.2 +helm upgrade --namespace ${KUBE_NS} --install jenkins-operator jenkins/jenkins-operator --set jenkins.enabled=false --set jenkins.backup.enabled=false --version 0.8.0-beta.2 echo "Jenkins Operator installed successfully!" # condition to check if above command was success # deploy jenkins Instance TODO jenkins file parameter -kubectl apply -f jenkins-deployment.yaml +kubectl apply --namespace ${KUBE_NS} -f ${CASSANDRA_DIR}/.build/jenkins-deployment.yaml # TODO wait for job pods -#kubectl rollout wait pod/ [--for=] +#kubectl rollout --namespace ${KUBE_NS} wait pod/ [--for=] #sleep 120 -# get job pod name - TODO parametrise the job name -#jobPodName=$(kubectl get po | grep k8sagent-e2e | cut -d " " -f1) +# get job pod name - TODO parameterise the job name +#jobPodName=$(kubectl --namespace ${KUBE_NS} get po | grep k8sagent-e2e | cut -d " " -f1) # get the file - TODO parameterize the path to fetch path -#kubectl exec -n default $jobPodName -- tar cf - /home/jenkins/agent/workspace/k8s-e2e | tar xf - -C . +#kubectl exec --namespace ${KUBE_NS} $jobPodName -- tar cf - /home/jenkins/agent/workspace/k8s-e2e | tar xf - -C . + +# teardown # TODO add option to skip teardown +#kubectl delete --namespace ${KUBE_NS} -f ${CASSANDRA_DIR}/.build/jenkins-deployment.yaml +#kubectl delete "$(kubectl api-resources --namespaced=true --verbs=delete -o name | tr "\n" "," | sed -e 's/,$//')" --all +#kubectl delete namespace ${KUBE_NS} \ No newline at end of file From 97b6a69aec8faee3aba069fe88852308c4a8cef1 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Mon, 4 Sep 2023 17:39:26 +0530 Subject: [PATCH 037/426] add env variable for debug logs --- .jenkins/pipeline.jenkins | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 49f87462c753..9658759f6e76 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -41,6 +41,12 @@ // `curl -X POST -F "jenkinsfile=<.jenkins/Jenkinsfile" https://ci-cassandra.apache.org/pipeline-model-converter/validate` pipeline { + + environment { + // Enable debug mode for the entire pipeline + PIPELINE_SCRIPT_DEBUG = 'true' + } + agent { kubernetes { label 'cassandra' From e10415025623955cf782738c5485307180cad174 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Mon, 4 Sep 2023 17:41:32 +0530 Subject: [PATCH 038/426] add env variable for debug logs --- .jenkins/pipeline.jenkins | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 9658759f6e76..09c9cdef632b 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -41,12 +41,6 @@ // `curl -X POST -F "jenkinsfile=<.jenkins/Jenkinsfile" https://ci-cassandra.apache.org/pipeline-model-converter/validate` pipeline { - - environment { - // Enable debug mode for the entire pipeline - PIPELINE_SCRIPT_DEBUG = 'true' - } - agent { kubernetes { label 'cassandra' @@ -75,6 +69,7 @@ pipeline { environment { javaVersionDefault = javaVersionDefault() javaVersionsSupported = javaVersionsSupported() + PIPELINE_SCRIPT_DEBUG = 'true' } stages { stage('Init') { From 46718bde22ce1a76eb72359d281821c608ca1054 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Mon, 4 Sep 2023 18:05:07 +0530 Subject: [PATCH 039/426] add env variable for debug logs --- .jenkins/pipeline.jenkins | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 09c9cdef632b..f964359d70a2 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -290,7 +290,9 @@ def _buildAxis(build_script, toCopy, arch, jdk) { branchName: "${build_script} ${jdk} ${NODE_NAME}" cleanWs() checkout scm + sh "echo scm success" tool type: 'jdk', name: "jdk_${jdk}_latest" + sh "echo tool success" def statusCode = 0, attempt = 1 retry(2) { if (attempt > 1) { sleep(60 * attempt) } From 400816a3ada2b7296da73f0de2f6b34df5055dce Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 5 Sep 2023 12:23:09 +0530 Subject: [PATCH 040/426] updated file --- .build/jenkins-deployment.yaml | 19 ++++++++++++++++++- .build/run-ci.sh | 0 .jenkins/pipeline.jenkins | 22 ++-------------------- 3 files changed, 20 insertions(+), 21 deletions(-) mode change 100644 => 100755 .build/run-ci.sh diff --git a/.build/jenkins-deployment.yaml b/.build/jenkins-deployment.yaml index d0b4fe9005e6..2fe0ed79b973 100644 --- a/.build/jenkins-deployment.yaml +++ b/.build/jenkins-deployment.yaml @@ -1,8 +1,25 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: jenkins-operator-user-configuration +data: + 1-system-message.yaml: | + jenkins: + tool: + installations: + - name: "OpenJDK 11" # jdk_11_latest + home: "/usr/lib/jvm/java-11-openjdk-amd64" + - name: "OpenJDK 17" + home: "/usr/lib/jvm/java-17-openjdk-amd64" +--- apiVersion: jenkins.io/v1alpha2 kind: Jenkins metadata: name: example spec: + configurationAsCode: + configurations: + - name: jenkins-operator-user-configuration service: type: ClusterIP port: 8080 @@ -46,7 +63,7 @@ spec: - name: job-dsl version: "1.84" - name: configuration-as-code - version: "1670.v564dc8b_982d0" + version: "1700.v6f448841296e" - name: kubernetes-credentials-provider version: "1.225.v14f9e6b_28f53" disableCSRFProtection: false diff --git a/.build/run-ci.sh b/.build/run-ci.sh old mode 100644 new mode 100755 diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index f964359d70a2..7cac07bffc4a 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -41,26 +41,8 @@ // `curl -X POST -F "jenkinsfile=<.jenkins/Jenkinsfile" https://ci-cassandra.apache.org/pipeline-model-converter/validate` pipeline { - agent { - kubernetes { - label 'cassandra' - defaultContainer 'alpine' - yaml ''' - apiVersion: v1 - kind: Pod - metadata: - labels: - jenkins: label - spec: - containers: - - name: alpine - image: alpine:3.11 - command: - - cat - tty: true - ''' - } - } + agent any + options { githubProjectProperty('https://github.com/apache/cassandra') parallelsAlwaysFailFast() From 89209de3b16f4974ac9041af13ee533793f9e802 Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 5 Sep 2023 12:55:01 +0530 Subject: [PATCH 041/426] updated file --- .build/jenkins-deployment.yaml | 4 ++-- .jenkins/pipeline.jenkins | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.build/jenkins-deployment.yaml b/.build/jenkins-deployment.yaml index 2fe0ed79b973..91e40bd227b0 100644 --- a/.build/jenkins-deployment.yaml +++ b/.build/jenkins-deployment.yaml @@ -8,9 +8,9 @@ data: tool: installations: - name: "OpenJDK 11" # jdk_11_latest - home: "/usr/lib/jvm/java-11-openjdk-amd64" + home: "/opt/java/" - name: "OpenJDK 17" - home: "/usr/lib/jvm/java-17-openjdk-amd64" + home: "/opt/java/" --- apiVersion: jenkins.io/v1alpha2 kind: Jenkins diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 7cac07bffc4a..8192c11fc1fb 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -42,7 +42,7 @@ pipeline { agent any - + options { githubProjectProperty('https://github.com/apache/cassandra') parallelsAlwaysFailFast() @@ -56,11 +56,11 @@ pipeline { stages { stage('Init') { steps { - container('alpine') { + //container('alpine') { cleanWs() script { currentBuild.result='SUCCESS' } sh 'echo "stage init"' - } + // } } } stage('Builds') { From 3dd07b655579109468fb1f02d66ab11445ceebc4 Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 5 Sep 2023 13:16:45 +0530 Subject: [PATCH 042/426] reverted change --- .jenkins/pipeline.jenkins | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 8192c11fc1fb..4320215a3972 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -41,7 +41,26 @@ // `curl -X POST -F "jenkinsfile=<.jenkins/Jenkinsfile" https://ci-cassandra.apache.org/pipeline-model-converter/validate` pipeline { - agent any + agent { + kubernetes { + label 'cassandra' + defaultContainer 'alpine' + yaml ''' + apiVersion: v1 + kind: Pod + metadata: + labels: + jenkins: label + spec: + containers: + - name: alpine + image: alpine:3.11 + command: + - cat + tty: true + ''' + } + } options { githubProjectProperty('https://github.com/apache/cassandra') @@ -56,11 +75,11 @@ pipeline { stages { stage('Init') { steps { - //container('alpine') { + container('alpine') { cleanWs() script { currentBuild.result='SUCCESS' } sh 'echo "stage init"' - // } + } } } stage('Builds') { From 87d279a992a5481b591b7be79d37567298ec4f9f Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 5 Sep 2023 13:57:28 +0530 Subject: [PATCH 043/426] updated tool section --- .build/jenkins-deployment.yaml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.build/jenkins-deployment.yaml b/.build/jenkins-deployment.yaml index 91e40bd227b0..0889488aa9a2 100644 --- a/.build/jenkins-deployment.yaml +++ b/.build/jenkins-deployment.yaml @@ -6,11 +6,15 @@ data: 1-system-message.yaml: | jenkins: tool: - installations: - - name: "OpenJDK 11" # jdk_11_latest - home: "/opt/java/" - - name: "OpenJDK 17" - home: "/opt/java/" + jdk: + installations: + - name: jdk11 + home: "/jdk" + properties: + - installSource: + installers: + - adoptOpenJdkInstaller: + id: "jdk-11.0.14+9" --- apiVersion: jenkins.io/v1alpha2 kind: Jenkins From 9e6f553c5c6380eb9fa680469782e83e47868195 Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 5 Sep 2023 14:00:22 +0530 Subject: [PATCH 044/426] updated tool section --- .build/jenkins-deployment.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.build/jenkins-deployment.yaml b/.build/jenkins-deployment.yaml index 0889488aa9a2..6bbcedf92ec3 100644 --- a/.build/jenkins-deployment.yaml +++ b/.build/jenkins-deployment.yaml @@ -55,6 +55,8 @@ spec: version: "1.37.3" - name: timestamper version: "1.26" + - name: openJDK-native-plugin + version: "1.7" basePlugins: - name: kubernetes version: "4029.v5712230ccb_f8" From 5f9ba6845970239f13cb7156909d9e64230c25ba Mon Sep 17 00:00:00 2001 From: Nbarola Date: Tue, 5 Sep 2023 17:10:15 +0530 Subject: [PATCH 045/426] make jnlp default container --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index f964359d70a2..5c827745b3b2 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -44,7 +44,7 @@ pipeline { agent { kubernetes { label 'cassandra' - defaultContainer 'alpine' + defaultContainer 'jnlp' yaml ''' apiVersion: v1 kind: Pod From 5159e5600d06b6519de095ed3497dd9201851d2e Mon Sep 17 00:00:00 2001 From: Nbarola Date: Tue, 5 Sep 2023 17:34:34 +0530 Subject: [PATCH 046/426] update JCasC --- .build/jenkins-deployment.yaml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.build/jenkins-deployment.yaml b/.build/jenkins-deployment.yaml index 6bbcedf92ec3..87db5d9c211c 100644 --- a/.build/jenkins-deployment.yaml +++ b/.build/jenkins-deployment.yaml @@ -8,13 +8,10 @@ data: tool: jdk: installations: - - name: jdk11 - home: "/jdk" - properties: - - installSource: - installers: - - adoptOpenJdkInstaller: - id: "jdk-11.0.14+9" + - name: jdk_11_latest + home: "/opt/java/openjdk/bin/java" + - name: jdk_17_latest + home: "/opt/java/openjdk/bin/java" --- apiVersion: jenkins.io/v1alpha2 kind: Jenkins @@ -115,4 +112,4 @@ spec: targets: ".jenkins/job/*.jenkins" description: "Casandra Repo" repositoryBranch: infracloud/cassandra-5.0 - repositoryUrl: https://github.com/infracloudio/cassandra.git \ No newline at end of file + repositoryUrl: https://github.com/infracloudio/cassandra.git From c9223e21b40769858bf3b13b9aace1b2fde2b669 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Tue, 5 Sep 2023 17:57:00 +0530 Subject: [PATCH 047/426] update JCasC --- .build/jenkins-deployment.yaml | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/.build/jenkins-deployment.yaml b/.build/jenkins-deployment.yaml index 87db5d9c211c..9cb92c0ce7b0 100644 --- a/.build/jenkins-deployment.yaml +++ b/.build/jenkins-deployment.yaml @@ -12,6 +12,27 @@ data: home: "/opt/java/openjdk/bin/java" - name: jdk_17_latest home: "/opt/java/openjdk/bin/java" +--- +apiVersion: v1 +kind: ConfigMap +metadata: + name: jenkins-operator-user-configuration2 +data: + jdk.groovy: | + import hudson.model.JDK + + def jdkName = 'MyCustomJDK' + def jdkPath = '/path/to/your/jdk' + + def jdk = Jenkins.instance.getDescriptorByType(JDK.DescriptorImpl.class).getInstallations().find { it.getName() == jdkName } + + if (!jdk) { + jdk = new JDK(jdkName, jdkPath) + Jenkins.instance.getDescriptorByType(JDK.DescriptorImpl.class).setInstallations(jdk) + Jenkins.instance.save() + } + + return jdk.getName() --- apiVersion: jenkins.io/v1alpha2 kind: Jenkins @@ -21,17 +42,16 @@ spec: configurationAsCode: configurations: - name: jenkins-operator-user-configuration - service: - type: ClusterIP - port: 8080 - configurationAsCode: - configurations: [] secret: name: "" groovyScripts: - configurations: [] + configurations: + - name: jenkins-operator-user-configuration2 secret: name: "" + service: + type: ClusterIP + port: 8080 jenkinsAPISettings: authorizationStrategy: createUser master: From 004362e0035dd8b866d978b56238ce7ee0d8e9b3 Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 5 Sep 2023 18:41:23 +0530 Subject: [PATCH 048/426] updated file --- .build/jenkins-deployment.yaml | 27 ++------------------------- 1 file changed, 2 insertions(+), 25 deletions(-) diff --git a/.build/jenkins-deployment.yaml b/.build/jenkins-deployment.yaml index 9cb92c0ce7b0..802fb6b7e31b 100644 --- a/.build/jenkins-deployment.yaml +++ b/.build/jenkins-deployment.yaml @@ -4,7 +4,6 @@ metadata: name: jenkins-operator-user-configuration data: 1-system-message.yaml: | - jenkins: tool: jdk: installations: @@ -12,28 +11,7 @@ data: home: "/opt/java/openjdk/bin/java" - name: jdk_17_latest home: "/opt/java/openjdk/bin/java" ---- -apiVersion: v1 -kind: ConfigMap -metadata: - name: jenkins-operator-user-configuration2 -data: - jdk.groovy: | - import hudson.model.JDK - - def jdkName = 'MyCustomJDK' - def jdkPath = '/path/to/your/jdk' - - def jdk = Jenkins.instance.getDescriptorByType(JDK.DescriptorImpl.class).getInstallations().find { it.getName() == jdkName } - - if (!jdk) { - jdk = new JDK(jdkName, jdkPath) - Jenkins.instance.getDescriptorByType(JDK.DescriptorImpl.class).setInstallations(jdk) - Jenkins.instance.save() - } - - return jdk.getName() ---- +--- apiVersion: jenkins.io/v1alpha2 kind: Jenkins metadata: @@ -45,8 +23,7 @@ spec: secret: name: "" groovyScripts: - configurations: - - name: jenkins-operator-user-configuration2 + configurations: [] secret: name: "" service: From e3fce26cb5a25cdc3bef6f242c520bd51edeb3e5 Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 6 Sep 2023 10:33:30 +0530 Subject: [PATCH 049/426] updated deployment --- .build/jenkins-deployment.yaml | 4 ++-- .jenkins/pipeline.jenkins | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.build/jenkins-deployment.yaml b/.build/jenkins-deployment.yaml index 802fb6b7e31b..9724e584151f 100644 --- a/.build/jenkins-deployment.yaml +++ b/.build/jenkins-deployment.yaml @@ -8,9 +8,9 @@ data: jdk: installations: - name: jdk_11_latest - home: "/opt/java/openjdk/bin/java" + home: "/usr/bin/java" - name: jdk_17_latest - home: "/opt/java/openjdk/bin/java" + home: "/usr/bin/java" --- apiVersion: jenkins.io/v1alpha2 kind: Jenkins diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index e48220d2ee01..c148611f0acc 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -44,7 +44,7 @@ pipeline { agent { kubernetes { label 'cassandra' - defaultContainer 'jnlp' + defaultContainer 'alpine' yaml ''' apiVersion: v1 kind: Pod @@ -54,7 +54,7 @@ pipeline { spec: containers: - name: alpine - image: alpine:3.11 + image: richamishra006/apache-k8s-agent:v1 command: - cat tty: true @@ -84,7 +84,7 @@ pipeline { } stage('Builds') { parallel { - stage('artifacts') { + stage('alpine') { steps { sh 'echo "starting artifacts stage"' buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") From 31e78e26c8c765ddbda35dcc9282231ecefaf933 Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 6 Sep 2023 11:43:18 +0530 Subject: [PATCH 050/426] added new image tag --- .build/docker/agent-build.docker | 31 +++++++++++++++++++++++++++++++ .build/jenkins-deployment.yaml | 4 ++-- .jenkins/pipeline.jenkins | 2 +- 3 files changed, 34 insertions(+), 3 deletions(-) create mode 100644 .build/docker/agent-build.docker diff --git a/.build/docker/agent-build.docker b/.build/docker/agent-build.docker new file mode 100644 index 000000000000..a33600c0785b --- /dev/null +++ b/.build/docker/agent-build.docker @@ -0,0 +1,31 @@ +# Use Alpine Linux as the base image +FROM alpine:latest + +# Install required packages +RUN apk --no-cache add python3 xz + +ENV JAVA_HOME_11=/usr/bin/jdk_11 +ENV PATH="$JAVA_HOME_11/bin:$PATH" + +# Set environment variables for JDK 17 +ENV JAVA_HOME_17=/usr/bin/jdk_17 +ENV PATH="$JAVA_HOME_17/bin:$PATH" + +# Create directories for JDK installations +RUN mkdir -p $JAVA_HOME_11 && \ + mkdir -p $JAVA_HOME_17 + +# Download and install OpenJDK 11 +RUN apk --no-cache add openjdk11-jdk && \ + mv /usr/lib/jvm/java-11-openjdk/* $JAVA_HOME_11 + +# Download and install OpenJDK 17 +RUN apk --no-cache add openjdk17-jdk && \ + mv /usr/lib/jvm/java-17-openjdk/* $JAVA_HOME_17 + +# Verify installations +RUN python3 --version +RUN xz --version + +# Set the working directory (optional) +WORKDIR /app \ No newline at end of file diff --git a/.build/jenkins-deployment.yaml b/.build/jenkins-deployment.yaml index 9724e584151f..2ff7f85c257e 100644 --- a/.build/jenkins-deployment.yaml +++ b/.build/jenkins-deployment.yaml @@ -8,9 +8,9 @@ data: jdk: installations: - name: jdk_11_latest - home: "/usr/bin/java" + home: "/usr/bin/jdk_11/bin/java" - name: jdk_17_latest - home: "/usr/bin/java" + home: "/usr/bin/jdk_17/bin/java" --- apiVersion: jenkins.io/v1alpha2 kind: Jenkins diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index c148611f0acc..6c2fee964c66 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -54,7 +54,7 @@ pipeline { spec: containers: - name: alpine - image: richamishra006/apache-k8s-agent:v1 + image: richamishra006/apache-k8s-agent:v4 command: - cat tty: true From ea3f330f5f3af3f479975c88f1c14b96d18ebea2 Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 6 Sep 2023 12:38:54 +0530 Subject: [PATCH 051/426] updated sleep command --- .jenkins/pipeline.jenkins | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 6c2fee964c66..bb121ece1e56 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -84,11 +84,12 @@ pipeline { } stage('Builds') { parallel { - stage('alpine') { + stage('artifacts') { steps { sh 'echo "starting artifacts stage"' buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") sh 'echo "stage artifacts"' + sh 'sleep 8000' } } } From f854314fc736c8ca3808d359739ba5b23bf7a43a Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 6 Sep 2023 13:29:38 +0530 Subject: [PATCH 052/426] updated imagetag --- .build/docker/agent-build.docker | 15 +++++++++------ .jenkins/pipeline.jenkins | 2 +- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.build/docker/agent-build.docker b/.build/docker/agent-build.docker index a33600c0785b..57d9efd29110 100644 --- a/.build/docker/agent-build.docker +++ b/.build/docker/agent-build.docker @@ -1,8 +1,11 @@ # Use Alpine Linux as the base image -FROM alpine:latest +FROM jenkins/inbound-agent:latest +USER root # Install required packages -RUN apk --no-cache add python3 xz +RUN apt-get update +RUN apt-get install python3 -y +RUN apt-get install xz-utils -y ENV JAVA_HOME_11=/usr/bin/jdk_11 ENV PATH="$JAVA_HOME_11/bin:$PATH" @@ -16,12 +19,12 @@ RUN mkdir -p $JAVA_HOME_11 && \ mkdir -p $JAVA_HOME_17 # Download and install OpenJDK 11 -RUN apk --no-cache add openjdk11-jdk && \ - mv /usr/lib/jvm/java-11-openjdk/* $JAVA_HOME_11 +RUN apt-get install openjdk-11-jdk -y && \ + mv /usr/lib/jvm/java-11-openjdk-amd64/* $JAVA_HOME_11 # Download and install OpenJDK 17 -RUN apk --no-cache add openjdk17-jdk && \ - mv /usr/lib/jvm/java-17-openjdk/* $JAVA_HOME_17 +RUN apt-get install openjdk-17-jdk -y && \ + mv /usr/lib/jvm/java-17-openjdk-amd64/* $JAVA_HOME_17 # Verify installations RUN python3 --version diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index bb121ece1e56..2d9c994167ce 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -54,7 +54,7 @@ pipeline { spec: containers: - name: alpine - image: richamishra006/apache-k8s-agent:v4 + image: richamishra006/apache-k8s-agent:v5 command: - cat tty: true From fe5467b4ab275d9cca74c0d5009261856a635595 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Wed, 6 Sep 2023 14:12:22 +0530 Subject: [PATCH 053/426] Update pipeline.jenkins --- .jenkins/pipeline.jenkins | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 2d9c994167ce..9f9f436d6acd 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -87,6 +87,8 @@ pipeline { stage('artifacts') { steps { sh 'echo "starting artifacts stage"' + sh '$JAVA_HOME_11/bin/java -version' + sh 'which xz' buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") sh 'echo "stage artifacts"' sh 'sleep 8000' From ea4bfabcf66aa527b92f6f2f2abb55f31794acf9 Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 6 Sep 2023 15:48:50 +0530 Subject: [PATCH 054/426] updated imagetag --- .build/docker/agent-build.docker | 4 ++-- .jenkins/pipeline.jenkins | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.build/docker/agent-build.docker b/.build/docker/agent-build.docker index 57d9efd29110..6161c2a11746 100644 --- a/.build/docker/agent-build.docker +++ b/.build/docker/agent-build.docker @@ -5,7 +5,7 @@ USER root # Install required packages RUN apt-get update RUN apt-get install python3 -y -RUN apt-get install xz-utils -y +#RUN apt-get install xz-utils -y ENV JAVA_HOME_11=/usr/bin/jdk_11 ENV PATH="$JAVA_HOME_11/bin:$PATH" @@ -28,7 +28,7 @@ RUN apt-get install openjdk-17-jdk -y && \ # Verify installations RUN python3 --version -RUN xz --version +#RUN xz --version # Set the working directory (optional) WORKDIR /app \ No newline at end of file diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 2d9c994167ce..342b3c61a5c3 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -54,7 +54,7 @@ pipeline { spec: containers: - name: alpine - image: richamishra006/apache-k8s-agent:v5 + image: richamishra006/apache-k8s-agent:v6 command: - cat tty: true From 0363f99f6b8ce7c5dcb39e2083f9606557d3f587 Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 6 Sep 2023 15:52:40 +0530 Subject: [PATCH 055/426] removed xz command --- .jenkins/pipeline.jenkins | 2 -- 1 file changed, 2 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index e9181d403929..2852efccfd2a 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -88,10 +88,8 @@ pipeline { steps { sh 'echo "starting artifacts stage"' sh '$JAVA_HOME_11/bin/java -version' - sh 'which xz' buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") sh 'echo "stage artifacts"' - sh 'sleep 8000' } } } From b1d9e78c21df9f7528ab0c798221e13a08b0daa2 Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 6 Sep 2023 16:01:11 +0530 Subject: [PATCH 056/426] changed image --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 2852efccfd2a..3687709a59ec 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -54,7 +54,7 @@ pipeline { spec: containers: - name: alpine - image: richamishra006/apache-k8s-agent:v6 + image: jenkins/inbound-agent:4.10-3 command: - cat tty: true From 48114a93402010f7bbfffd33e89c8202d98c4b98 Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 6 Sep 2023 16:07:00 +0530 Subject: [PATCH 057/426] changed image --- .jenkins/pipeline.jenkins | 1 - 1 file changed, 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 3687709a59ec..845747582a6a 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -87,7 +87,6 @@ pipeline { stage('artifacts') { steps { sh 'echo "starting artifacts stage"' - sh '$JAVA_HOME_11/bin/java -version' buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") sh 'echo "stage artifacts"' } From 0f7a03c6993cf16272cef4494da28dcc4ca1c1b1 Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 6 Sep 2023 16:17:59 +0530 Subject: [PATCH 058/426] changed image --- .jenkins/pipeline.jenkins | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 845747582a6a..63755dee12a7 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -44,7 +44,7 @@ pipeline { agent { kubernetes { label 'cassandra' - defaultContainer 'alpine' + defaultContainer 'jnlp' yaml ''' apiVersion: v1 kind: Pod @@ -75,7 +75,7 @@ pipeline { stages { stage('Init') { steps { - container('alpine') { + container('jnlp') { cleanWs() script { currentBuild.result='SUCCESS' } sh 'echo "stage init"' From 7523e3aeb7aa040bb633ecf6c13885cc4835729f Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 6 Sep 2023 16:39:47 +0530 Subject: [PATCH 059/426] changed image --- .jenkins/pipeline.jenkins | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 63755dee12a7..2c3a11fccdf4 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -44,7 +44,7 @@ pipeline { agent { kubernetes { label 'cassandra' - defaultContainer 'jnlp' + //defaultContainer 'jnlp' yaml ''' apiVersion: v1 kind: Pod @@ -55,9 +55,6 @@ pipeline { containers: - name: alpine image: jenkins/inbound-agent:4.10-3 - command: - - cat - tty: true ''' } } @@ -75,7 +72,7 @@ pipeline { stages { stage('Init') { steps { - container('jnlp') { + container('alpine') { cleanWs() script { currentBuild.result='SUCCESS' } sh 'echo "stage init"' @@ -86,10 +83,12 @@ pipeline { parallel { stage('artifacts') { steps { + container('alpine') { sh 'echo "starting artifacts stage"' buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") sh 'echo "stage artifacts"' } + } } } } From ec3d9953f88dbb5b71f01365836adb48cb81683b Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 6 Sep 2023 16:43:34 +0530 Subject: [PATCH 060/426] changed image --- .jenkins/pipeline.jenkins | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 2c3a11fccdf4..5026e30c9157 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -55,6 +55,8 @@ pipeline { containers: - name: alpine image: jenkins/inbound-agent:4.10-3 + command: + - "cat" ''' } } From 9285e38ec139be09fedd2b45b63d935bf9472428 Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 6 Sep 2023 16:46:31 +0530 Subject: [PATCH 061/426] changed image --- .jenkins/pipeline.jenkins | 1 + 1 file changed, 1 insertion(+) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 5026e30c9157..f539f54346ca 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -57,6 +57,7 @@ pipeline { image: jenkins/inbound-agent:4.10-3 command: - "cat" + tty: true ''' } } From c0ca53586234fb75f47b22cf7a05bf9d9bc08097 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Wed, 6 Sep 2023 16:54:41 +0530 Subject: [PATCH 062/426] update pipeline.jenkins --- .jenkins/pipeline.jenkins | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index f539f54346ca..00f96041e2cb 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -44,7 +44,7 @@ pipeline { agent { kubernetes { label 'cassandra' - //defaultContainer 'jnlp' + defaultContainer 'jnlp' yaml ''' apiVersion: v1 kind: Pod @@ -54,7 +54,7 @@ pipeline { spec: containers: - name: alpine - image: jenkins/inbound-agent:4.10-3 + image: richamishra006/apache-k8s-agent:v10 command: - "cat" tty: true @@ -86,11 +86,11 @@ pipeline { parallel { stage('artifacts') { steps { - container('alpine') { + sh 'echo "starting artifacts stage"' buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") sh 'echo "stage artifacts"' - } + } } } From b9652b25fd2bcc54bdbfc90488f52d7e41aac711 Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 6 Sep 2023 17:01:47 +0530 Subject: [PATCH 063/426] updated image --- .build/docker/agent-build.docker | 34 ++------------------------------ 1 file changed, 2 insertions(+), 32 deletions(-) diff --git a/.build/docker/agent-build.docker b/.build/docker/agent-build.docker index 6161c2a11746..347c5fbe900d 100644 --- a/.build/docker/agent-build.docker +++ b/.build/docker/agent-build.docker @@ -1,34 +1,4 @@ # Use Alpine Linux as the base image -FROM jenkins/inbound-agent:latest +FROM alpine:latest +RUN apk add xz -USER root -# Install required packages -RUN apt-get update -RUN apt-get install python3 -y -#RUN apt-get install xz-utils -y - -ENV JAVA_HOME_11=/usr/bin/jdk_11 -ENV PATH="$JAVA_HOME_11/bin:$PATH" - -# Set environment variables for JDK 17 -ENV JAVA_HOME_17=/usr/bin/jdk_17 -ENV PATH="$JAVA_HOME_17/bin:$PATH" - -# Create directories for JDK installations -RUN mkdir -p $JAVA_HOME_11 && \ - mkdir -p $JAVA_HOME_17 - -# Download and install OpenJDK 11 -RUN apt-get install openjdk-11-jdk -y && \ - mv /usr/lib/jvm/java-11-openjdk-amd64/* $JAVA_HOME_11 - -# Download and install OpenJDK 17 -RUN apt-get install openjdk-17-jdk -y && \ - mv /usr/lib/jvm/java-17-openjdk-amd64/* $JAVA_HOME_17 - -# Verify installations -RUN python3 --version -#RUN xz --version - -# Set the working directory (optional) -WORKDIR /app \ No newline at end of file From 7dc1ddfb8ff527283cdd8f36d953c53972422584 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Wed, 6 Sep 2023 17:28:41 +0530 Subject: [PATCH 064/426] update pipeline.jenkins --- .jenkins/pipeline.jenkins | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 00f96041e2cb..3cfaef67bedb 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -53,8 +53,8 @@ pipeline { jenkins: label spec: containers: - - name: alpine - image: richamishra006/apache-k8s-agent:v10 + - name: jnlp + image: richamishra006/apache-k8s-agent:v5 command: - "cat" tty: true @@ -75,7 +75,7 @@ pipeline { stages { stage('Init') { steps { - container('alpine') { + container('jnlp') { cleanWs() script { currentBuild.result='SUCCESS' } sh 'echo "stage init"' From 4791654a1abe992b683f79a6d4d04fc4a44f4fb5 Mon Sep 17 00:00:00 2001 From: richamishra Date: Thu, 7 Sep 2023 10:57:53 +0530 Subject: [PATCH 065/426] updated pipeline --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 3cfaef67bedb..bd96f7adbe35 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -54,7 +54,7 @@ pipeline { spec: containers: - name: jnlp - image: richamishra006/apache-k8s-agent:v5 + image: jenkins/inbound-agent command: - "cat" tty: true From a91cca95887a53a7d42bc44b0cd788bcabb9e35c Mon Sep 17 00:00:00 2001 From: richamishra Date: Thu, 7 Sep 2023 11:09:42 +0530 Subject: [PATCH 066/426] updated pipeline --- .jenkins/pipeline.jenkins | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index bd96f7adbe35..98612b17b06d 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -53,8 +53,8 @@ pipeline { jenkins: label spec: containers: - - name: jnlp - image: jenkins/inbound-agent + - name: alpine + image: richamishra006/apache-k8s-agent:v5 command: - "cat" tty: true @@ -82,11 +82,21 @@ pipeline { } } } + stages { + stage('Checkout') { + steps { + // Checkout your Git repository + container(name: 'alpine', shell: '/bin/sh') { + sh 'git clone https://github.com/infracloudio/cassandra.git' + } + } + } + } + stage('Builds') { parallel { stage('artifacts') { - steps { - + steps { sh 'echo "starting artifacts stage"' buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") sh 'echo "stage artifacts"' From e8622f9f80f3d7cf52bf8bad29fc2e7b201f5381 Mon Sep 17 00:00:00 2001 From: richamishra Date: Thu, 7 Sep 2023 11:11:22 +0530 Subject: [PATCH 067/426] updated pipeline --- .jenkins/pipeline.jenkins | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 98612b17b06d..7fd9cd6522f4 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -82,17 +82,16 @@ pipeline { } } } - stages { - stage('Checkout') { - steps { - // Checkout your Git repository - container(name: 'alpine', shell: '/bin/sh') { - sh 'git clone https://github.com/infracloudio/cassandra.git' - } + stage('Checkout') { + steps { + // Checkout your Git repository + container(name: 'alpine', shell: '/bin/sh') { + sh 'git clone https://github.com/infracloudio/cassandra.git' } } } + stage('Builds') { parallel { stage('artifacts') { From 373d7a0cbc7146b90668aa7f8e355225693c0f67 Mon Sep 17 00:00:00 2001 From: richamishra Date: Thu, 7 Sep 2023 11:16:52 +0530 Subject: [PATCH 068/426] updated pipeline --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 7fd9cd6522f4..9fd64674b0b9 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -75,7 +75,7 @@ pipeline { stages { stage('Init') { steps { - container('jnlp') { + container('alpine') { cleanWs() script { currentBuild.result='SUCCESS' } sh 'echo "stage init"' From b49dea9b32a16fd1590c457b9ec4cf648001e84f Mon Sep 17 00:00:00 2001 From: richamishra Date: Thu, 7 Sep 2023 11:21:12 +0530 Subject: [PATCH 069/426] updated pipeline --- .jenkins/pipeline.jenkins | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 9fd64674b0b9..7cc5e64fabac 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -53,8 +53,8 @@ pipeline { jenkins: label spec: containers: - - name: alpine - image: richamishra006/apache-k8s-agent:v5 + - name: jnlp + image: jenkins/inbound-agent command: - "cat" tty: true @@ -75,7 +75,7 @@ pipeline { stages { stage('Init') { steps { - container('alpine') { + container('jnlp') { cleanWs() script { currentBuild.result='SUCCESS' } sh 'echo "stage init"' From 77eb6b4105dcbf364ab26fce22ea6345c7dd2160 Mon Sep 17 00:00:00 2001 From: richamishra Date: Thu, 7 Sep 2023 11:43:08 +0530 Subject: [PATCH 070/426] updated pipeline --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 7cc5e64fabac..8d8c5df4567d 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -54,7 +54,7 @@ pipeline { spec: containers: - name: jnlp - image: jenkins/inbound-agent + image: jenkins/inbound-agent:3.35-5-alpine command: - "cat" tty: true From fe12d046ac62411e4682787fe87d334decbcda61 Mon Sep 17 00:00:00 2001 From: richamishra Date: Thu, 7 Sep 2023 11:45:38 +0530 Subject: [PATCH 071/426] updated pipeline --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 8d8c5df4567d..9e125e56eedc 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -54,7 +54,7 @@ pipeline { spec: containers: - name: jnlp - image: jenkins/inbound-agent:3.35-5-alpine + image: jenkins/inbound-agent:latest-jdk17 command: - "cat" tty: true From ebb7d8786d54e4dc832bdc5a7485948be455769c Mon Sep 17 00:00:00 2001 From: richamishra Date: Thu, 7 Sep 2023 13:53:14 +0530 Subject: [PATCH 072/426] updated image tag --- .build/docker/agent-build.docker | 11 +++++++++-- .jenkins/pipeline.jenkins | 2 +- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.build/docker/agent-build.docker b/.build/docker/agent-build.docker index 347c5fbe900d..7b6407b795bf 100644 --- a/.build/docker/agent-build.docker +++ b/.build/docker/agent-build.docker @@ -1,4 +1,11 @@ # Use Alpine Linux as the base image -FROM alpine:latest -RUN apk add xz +FROM jenkins/inbound-agent:latest-jdk17 +USER root + +RUN apt-get update +RUN apt-get install xz-utils -y + +USER jenkins + +ENTRYPOINT ['/bin/sh' '-c', '/usr/local/bin/jenkins-agent'] diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 9e125e56eedc..2038e5768f2a 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -54,7 +54,7 @@ pipeline { spec: containers: - name: jnlp - image: jenkins/inbound-agent:latest-jdk17 + image: richamishra006/apache-k8s-agent:v15 command: - "cat" tty: true From 91808656c2de9afa0a5ae1e8ff94e6a0ab85ad28 Mon Sep 17 00:00:00 2001 From: richamishra Date: Thu, 7 Sep 2023 14:00:20 +0530 Subject: [PATCH 073/426] updated pipeline --- .build/run-new-ci.sh | 96 +++++++++++++++++++++++++++++++++++++++ .jenkins/pipeline.jenkins | 11 +---- 2 files changed, 97 insertions(+), 10 deletions(-) create mode 100644 .build/run-new-ci.sh diff --git a/.build/run-new-ci.sh b/.build/run-new-ci.sh new file mode 100644 index 000000000000..b975d6374ac8 --- /dev/null +++ b/.build/run-new-ci.sh @@ -0,0 +1,96 @@ +#!/bin/bash +# +# 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. +# + +# variables, with defaults +[ "x${CASSANDRA_DIR}" != "x" ] || CASSANDRA_DIR="$(readlink -f $(dirname "$0")/..)" +[ "x${KUBECONFIG}" != "x" ] || KUBECONFIG="${HOME}/.kube/apache-config" +[ "x${KUBE_NS}" != "x" ] || KUBE_NS="default" # FIXME – doesn't work in other namespaces :shrug: + +# pre-conditions +command -v kubectl >/dev/null 2>&1 || { echo >&2 "kubectl needs to be installed"; exit 1; } +command -v helm >/dev/null 2>&1 || { echo >&2 "helm needs to be installed"; exit 1; } + +# Parse command-line arguments +while [[ $# -gt 0 ]]; do + key="$1" + case $key in + -c|--kubeconfig) + KUBECONFIG="$2" # This sets the KUBECONFIG variable to the next argument. + shift # This shifts the arguments to the left, discarding the current argument and moving to the next one. + shift # This is an additional shift to move to the argument after the option value. + ;; + -ctx|--kubecontext) + unset KUBECONFIG + KUBECONTEXT="$2" # This sets the KUBECONTEXT variable to the next argument. + shift # This shifts the arguments to the left, discarding the current argument and moving to the next one. + shift # This is an additional shift to move to the argument after the option value. + ;; + *) + echo "Unknown option: $1" + exit 1 + ;; + esac +done + +if [ -z "$KUBECONFIG" ] && [ -z "$KUBECONTEXT" ]; then + echo "Please provide either the path to the kubeconfig using -c|--kubeconfig option or the kubecontext using -ctx|--kubecontext option." + exit 1 +fi + +# This sets the kubeconfig and kubecontext if provided +if [ -n "$KUBECONFIG" ]; then + export KUBECONFIG="$KUBECONFIG" +fi + +if [ -n "$KUBECONTEXT" ]; then + kubectl config use-context "$KUBECONTEXT" +fi + +if ! kubectl get namespace ${KUBE_NS} >/dev/null 2>/dev/null ; then + kubectl create namespace ${KUBE_NS} +fi + +# Add Helm Jenkins Operator repository +echo "Adding Helm repository for Jenkins Operator..." +helm repo add --namespace ${KUBE_NS} jenkins https://raw.githubusercontent.com/jenkinsci/kubernetes-operator/master/chart + +# Install Jenkins Operator using Helm +echo "Installing Jenkins Operator..." +helm upgrade --namespace ${KUBE_NS} --install jenkins-operator jenkins/jenkins-operator --set jenkins.enabled=false --set jenkins.backup.enabled=false --version 0.8.0-beta.2 + +echo "Jenkins Operator installed successfully!" # condition to check if above command was success + +# deploy jenkins Instance TODO jenkins file parameter +kubectl apply --namespace ${KUBE_NS} -f ${CASSANDRA_DIR}/.build/jenkins-deployment.yaml + +# TODO wait for job pods +#kubectl rollout --namespace ${KUBE_NS} wait pod/ [--for=] + +#sleep 120 + +# get job pod name - TODO parameterise the job name +#jobPodName=$(kubectl --namespace ${KUBE_NS} get po | grep k8sagent-e2e | cut -d " " -f1) + +# get the file - TODO parameterize the path to fetch path +#kubectl exec --namespace ${KUBE_NS} $jobPodName -- tar cf - /home/jenkins/agent/workspace/k8s-e2e | tar xf - -C . + +# teardown # TODO add option to skip teardown +#kubectl delete --namespace ${KUBE_NS} -f ${CASSANDRA_DIR}/.build/jenkins-deployment.yaml +#kubectl delete "$(kubectl api-resources --namespaced=true --verbs=delete -o name | tr "\n" "," | sed -e 's/,$//')" --all +#kubectl delete namespace ${KUBE_NS} \ No newline at end of file diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 2038e5768f2a..df324f787a5b 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -56,7 +56,7 @@ pipeline { - name: jnlp image: richamishra006/apache-k8s-agent:v15 command: - - "cat" + - ['/bin/sh', '-c', '/usr/local/bin/jenkins-agent'] tty: true ''' } @@ -82,15 +82,6 @@ pipeline { } } } - stage('Checkout') { - steps { - // Checkout your Git repository - container(name: 'alpine', shell: '/bin/sh') { - sh 'git clone https://github.com/infracloudio/cassandra.git' - } - } - } - stage('Builds') { parallel { From 75f8ae6fedb6204fe7636043ebd05a44e9054a7e Mon Sep 17 00:00:00 2001 From: Nbarola Date: Thu, 7 Sep 2023 14:10:12 +0530 Subject: [PATCH 074/426] update pipeline.jenkins --- .jenkins/pipeline.jenkins | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index df324f787a5b..330df30da152 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -56,7 +56,9 @@ pipeline { - name: jnlp image: richamishra006/apache-k8s-agent:v15 command: - - ['/bin/sh', '-c', '/usr/local/bin/jenkins-agent'] + - /bin/sh + - -c + - /usr/local/bin/jenkins-agent tty: true ''' } From 233e4c76756c6fc95d2cf7513b82f7368ed9e028 Mon Sep 17 00:00:00 2001 From: richamishra Date: Thu, 7 Sep 2023 18:15:36 +0530 Subject: [PATCH 075/426] updated docker file --- .build/docker/agent-build.docker | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.build/docker/agent-build.docker b/.build/docker/agent-build.docker index 7b6407b795bf..e1a01fd5b651 100644 --- a/.build/docker/agent-build.docker +++ b/.build/docker/agent-build.docker @@ -6,6 +6,23 @@ USER root RUN apt-get update RUN apt-get install xz-utils -y +RUN apt-get update && \ + apt-get install -y openjdk-11-jdk openjdk-17-jdk && \ + update-alternatives --set java /usr/lib/jvm/java-11-openjdk-amd64/bin/java && \ + update-alternatives --set javac /usr/lib/jvm/java-11-openjdk-amd64/bin/javac && \ + update-alternatives --install /usr/local/bin/jdk_11 java /usr/lib/jvm/java-11-openjdk-amd64/bin/java 1 && \ + update-alternatives --install /usr/local/bin/jdk_17 java /usr/lib/jvm/java-17-openjdk-amd64/bin/java 1 + +# Install Docker +RUN apt-get install -y gnupg +# Install Docker for Debian Bullseye +RUN apt-get update && \ + apt-get install -y apt-transport-https ca-certificates curl gnupg lsb-release && \ + curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg && \ + echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian $(lsb_release -cs) stable" > /etc/apt/sources.list.d/docker.list && \ + apt-get update && \ + apt-get install -y docker-ce docker-ce-cli containerd.io + USER jenkins -ENTRYPOINT ['/bin/sh' '-c', '/usr/local/bin/jenkins-agent'] +#ENTRYPOINT ['/bin/sh' '-c', '/usr/local/bin/jenkins-agent'] From 9e7f56297ad405d6889e2ca8aefea2411c5fab8b Mon Sep 17 00:00:00 2001 From: richamishra Date: Thu, 7 Sep 2023 18:16:45 +0530 Subject: [PATCH 076/426] added imagetag --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 330df30da152..13cb8a973d1c 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -54,7 +54,7 @@ pipeline { spec: containers: - name: jnlp - image: richamishra006/apache-k8s-agent:v15 + image: richamishra006/apache-k8s-agent:v16 command: - /bin/sh - -c From 023dd90223602ab0a045f1016e9e6adf5bb0b236 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Thu, 7 Sep 2023 18:37:30 +0530 Subject: [PATCH 077/426] add .build/docker/_docker_run.sh script check with OR condition in build script --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 13cb8a973d1c..abf9559a7af5 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -314,7 +314,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { } echo "Executing `build_dir=${build_dir} ${build_script} ${jdk} 2>&1 | tee ${logfile}` on ${NODE_NAME}" statusCode = sh returnStatus:true, script:"build_dir=\"${build_dir}\" ${build_script} ${jdk} 2>&1 | tee ${logfile}" - if (".build/docker/build-artifacts.sh" == build_script) { + if (".build/docker/build-artifacts.sh" == build_script || ".build/docker/_docker_run.sh" == build_script) { dir("${build_dir}") { // only stash the project built files. all dependency libraries are restored from the local maven repo using `ant resolver-dist-lib` stash name: "${arch}_${jdk}", includes: "*.jar,classes/**,test/classes/**,tools/**", excludes: "dist/**,**/lib/**/*.jar," From 1d68b8729123b6930ac7fd9831a95916c90c80fc Mon Sep 17 00:00:00 2001 From: Nbarola Date: Thu, 7 Sep 2023 18:47:17 +0530 Subject: [PATCH 078/426] add contains function in if condition in buildAxis func --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index abf9559a7af5..af9455d42384 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -314,7 +314,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { } echo "Executing `build_dir=${build_dir} ${build_script} ${jdk} 2>&1 | tee ${logfile}` on ${NODE_NAME}" statusCode = sh returnStatus:true, script:"build_dir=\"${build_dir}\" ${build_script} ${jdk} 2>&1 | tee ${logfile}" - if (".build/docker/build-artifacts.sh" == build_script || ".build/docker/_docker_run.sh" == build_script) { + if (".build/docker/build-artifacts.sh" == build_script || build_script.contains(".build/docker/_docker_run.sh")) { dir("${build_dir}") { // only stash the project built files. all dependency libraries are restored from the local maven repo using `ant resolver-dist-lib` stash name: "${arch}_${jdk}", includes: "*.jar,classes/**,test/classes/**,tools/**", excludes: "dist/**,**/lib/**/*.jar," From d554f9efd71df79f469b5a908f300d95c70bcf4a Mon Sep 17 00:00:00 2001 From: Nbarola Date: Thu, 7 Sep 2023 18:53:52 +0530 Subject: [PATCH 079/426] add contains function in if condition in buildAxis func --- .jenkins/pipeline.jenkins | 1 + 1 file changed, 1 insertion(+) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index af9455d42384..c06f44c2ad02 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -322,6 +322,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { } } finally { attempt = attempt + 1 + sh "ls" sh "xz -f *_attempt_*.log" copyToNightlies("*_attempt_*.log.xz", "${build_script_safe_name}/jdk${jdk}/${arch}/") if (0 == statusCode) { From 0f5d5950f26e72d431d511284dd9df0094c5d5b3 Mon Sep 17 00:00:00 2001 From: richamishra Date: Fri, 8 Sep 2023 12:02:25 +0530 Subject: [PATCH 080/426] commented few lines --- .jenkins/pipeline.jenkins | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index c06f44c2ad02..31e8cedc6a9d 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -306,12 +306,12 @@ def _buildAxis(build_script, toCopy, arch, jdk) { sh "mkdir -p build" def build_dir = sh( returnStdout: true, script:"mktemp -d ${WORKSPACE}/build/build_docker_run.XXXXXXXXXX" ) try { - if (".build/docker/build-artifacts.sh" != build_script) { + //if (".build/docker/build-artifacts.sh" != build_script) { // build-artifacts.sh must be run in an earlier completed stage for the stash to exist - dir(build_dir) { - unstash name: "${arch}_${jdk}" - } - } + //dir(build_dir) { + //unstash name: "${arch}_${jdk}" + //} + //} echo "Executing `build_dir=${build_dir} ${build_script} ${jdk} 2>&1 | tee ${logfile}` on ${NODE_NAME}" statusCode = sh returnStatus:true, script:"build_dir=\"${build_dir}\" ${build_script} ${jdk} 2>&1 | tee ${logfile}" if (".build/docker/build-artifacts.sh" == build_script || build_script.contains(".build/docker/_docker_run.sh")) { From 42b1ea24e85f80830e5ff1dd79294bbc1ba290f1 Mon Sep 17 00:00:00 2001 From: richamishra Date: Fri, 8 Sep 2023 16:40:59 +0530 Subject: [PATCH 081/426] updated dockerfile and imagetag --- .build/docker/agent-build.docker | 6 +++++- .jenkins/pipeline.jenkins | 13 +++++++++++-- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.build/docker/agent-build.docker b/.build/docker/agent-build.docker index e1a01fd5b651..c8551b3b3f3c 100644 --- a/.build/docker/agent-build.docker +++ b/.build/docker/agent-build.docker @@ -23,6 +23,10 @@ RUN apt-get update && \ apt-get update && \ apt-get install -y docker-ce docker-ce-cli containerd.io +VOLUME /run/containerd/containerd.sock +RUN usermod -aG docker jenkins + + USER jenkins -#ENTRYPOINT ['/bin/sh' '-c', '/usr/local/bin/jenkins-agent'] + diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 31e8cedc6a9d..b3bc219cd3cf 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -54,12 +54,20 @@ pipeline { spec: containers: - name: jnlp - image: richamishra006/apache-k8s-agent:v16 + image: richamishra006/apache-k8s-agent:v17 command: - /bin/sh - -c - /usr/local/bin/jenkins-agent + - service docker start + volumeMounts: + - name: containerd-socket + mountPath: /run/containerd/containerd.sock tty: true + volumes: + - name: containerd-socket + hostPath: + path: /run/containerd/containerd.sock ''' } } @@ -90,8 +98,9 @@ pipeline { stage('artifacts') { steps { sh 'echo "starting artifacts stage"' + sh 'service docker status' buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") - sh 'echo "stage artifacts"' + sh 'echo "finishing stage artifacts"' } } From 608e33eec43e10c957aecb0b44cbf17503c33e23 Mon Sep 17 00:00:00 2001 From: richamishra Date: Fri, 8 Sep 2023 16:45:20 +0530 Subject: [PATCH 082/426] updated pipeline --- .jenkins/pipeline.jenkins | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index b3bc219cd3cf..c23922b9f58f 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -58,8 +58,7 @@ pipeline { command: - /bin/sh - -c - - /usr/local/bin/jenkins-agent - - service docker start + - /usr/local/bin/jenkins-agent && service docker start volumeMounts: - name: containerd-socket mountPath: /run/containerd/containerd.sock From 4825d17363e184768263f09fd3b9d5a0daf56f6e Mon Sep 17 00:00:00 2001 From: richamishra Date: Fri, 8 Sep 2023 16:51:48 +0530 Subject: [PATCH 083/426] updated pipeline --- .jenkins/pipeline.jenkins | 1 + 1 file changed, 1 insertion(+) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index c23922b9f58f..b690838d23ee 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -97,6 +97,7 @@ pipeline { stage('artifacts') { steps { sh 'echo "starting artifacts stage"' + sh 'service docker start' sh 'service docker status' buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") sh 'echo "finishing stage artifacts"' From f5e37be0f4448068bced85fb1dbbfe2ce3b5de05 Mon Sep 17 00:00:00 2001 From: richamishra Date: Fri, 8 Sep 2023 16:55:39 +0530 Subject: [PATCH 084/426] updated pipeline --- .jenkins/pipeline.jenkins | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index b690838d23ee..1f64c42643d9 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -97,6 +97,8 @@ pipeline { stage('artifacts') { steps { sh 'echo "starting artifacts stage"' + sh 'ls /run/containerd/' + sh 'ls /var/run/' sh 'service docker start' sh 'service docker status' buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") From ce7873d3f6a338c85c1ecb6e5f67a2ae28a8d0e5 Mon Sep 17 00:00:00 2001 From: richamishra Date: Fri, 8 Sep 2023 17:43:09 +0530 Subject: [PATCH 085/426] added security context --- .jenkins/pipeline.jenkins | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 1f64c42643d9..ba025a92962a 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -63,6 +63,8 @@ pipeline { - name: containerd-socket mountPath: /run/containerd/containerd.sock tty: true + securityContext: + privileged: true volumes: - name: containerd-socket hostPath: From 8a8451ab3ec7fa161c2c5261369394275e6d0071 Mon Sep 17 00:00:00 2001 From: richamishra Date: Fri, 8 Sep 2023 20:07:18 +0530 Subject: [PATCH 086/426] updated image --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index ba025a92962a..6459bf274eac 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -54,7 +54,7 @@ pipeline { spec: containers: - name: jnlp - image: richamishra006/apache-k8s-agent:v17 + image: richamishra006/apache-k8s-agent:v20 command: - /bin/sh - -c From cf8e898f86bd54c50be44b198b4c8a8862236c3b Mon Sep 17 00:00:00 2001 From: richamishra Date: Fri, 8 Sep 2023 20:28:21 +0530 Subject: [PATCH 087/426] updated image --- .jenkins/pipeline.jenkins | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 6459bf274eac..4851ff5b43a8 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -99,10 +99,10 @@ pipeline { stage('artifacts') { steps { sh 'echo "starting artifacts stage"' - sh 'ls /run/containerd/' - sh 'ls /var/run/' - sh 'service docker start' - sh 'service docker status' + //sh 'ls /run/containerd/' + //sh 'ls /var/run/' + //sh 'service docker start' + //sh 'service docker status' buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") sh 'echo "finishing stage artifacts"' From 88cac066519547d8c805a320818141642bb85141 Mon Sep 17 00:00:00 2001 From: richamishra Date: Mon, 11 Sep 2023 10:04:46 +0530 Subject: [PATCH 088/426] dockerfile --- .build/docker/agent-build.docker | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.build/docker/agent-build.docker b/.build/docker/agent-build.docker index c8551b3b3f3c..80c07ee12b18 100644 --- a/.build/docker/agent-build.docker +++ b/.build/docker/agent-build.docker @@ -24,9 +24,10 @@ RUN apt-get update && \ apt-get install -y docker-ce docker-ce-cli containerd.io VOLUME /run/containerd/containerd.sock -RUN usermod -aG docker jenkins +CMD ["service docker start"] +#RUN usermod -aG docker jenkins -USER jenkins +#USER jenkins From 9e07d502640919a19390d0febac8b660e8a305f5 Mon Sep 17 00:00:00 2001 From: richamishra Date: Mon, 11 Sep 2023 10:34:06 +0530 Subject: [PATCH 089/426] added image --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 4851ff5b43a8..00a96b9eefd5 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -54,7 +54,7 @@ pipeline { spec: containers: - name: jnlp - image: richamishra006/apache-k8s-agent:v20 + image: richamishra006/apache-k8s-agent:v21 command: - /bin/sh - -c From 48580d187a6c56a2b32f5ff491bfe103e5d06995 Mon Sep 17 00:00:00 2001 From: richamishra Date: Mon, 11 Sep 2023 12:09:21 +0530 Subject: [PATCH 090/426] updated branch --- .build/docker/agent-build.docker | 8 ++++---- .jenkins/pipeline.jenkins | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.build/docker/agent-build.docker b/.build/docker/agent-build.docker index 80c07ee12b18..4b1fd6c25fdf 100644 --- a/.build/docker/agent-build.docker +++ b/.build/docker/agent-build.docker @@ -23,11 +23,11 @@ RUN apt-get update && \ apt-get update && \ apt-get install -y docker-ce docker-ce-cli containerd.io -VOLUME /run/containerd/containerd.sock -CMD ["service docker start"] -#RUN usermod -aG docker jenkins +#VOLUME /var/run/docker.sock +RUN echo 'jenkins ALL=(ALL:ALL) NOPASSWD:ALL' >> /etc/sudoers +RUN usermod -aG docker jenkins -#USER jenkins +USER jenkins diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 00a96b9eefd5..f05203a7efc8 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -54,21 +54,21 @@ pipeline { spec: containers: - name: jnlp - image: richamishra006/apache-k8s-agent:v21 + image: richamishra006/apache-k8s-agent:v23 command: - /bin/sh - -c - /usr/local/bin/jenkins-agent && service docker start volumeMounts: - - name: containerd-socket - mountPath: /run/containerd/containerd.sock + - name: docker-socket + mountPath: /var/run/docker.sock tty: true securityContext: privileged: true volumes: - - name: containerd-socket + - name: docker-socket hostPath: - path: /run/containerd/containerd.sock + path: /var/run/docker.sock ''' } } From 1eb47c3d4101df0147f7c57c64309a9746da0266 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Tue, 12 Sep 2023 13:39:31 +0530 Subject: [PATCH 091/426] update pipeline.jenkins k8s agent config --- .jenkins/pipeline.jenkins | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index f05203a7efc8..48bb57d69570 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -54,17 +54,17 @@ pipeline { spec: containers: - name: jnlp - image: richamishra006/apache-k8s-agent:v23 + image: richamishra006/apache-k8s-agent:v24 command: - /bin/sh - -c - - /usr/local/bin/jenkins-agent && service docker start + - /usr/local/bin/jenkins-agent volumeMounts: - name: docker-socket mountPath: /var/run/docker.sock tty: true securityContext: - privileged: true + runAsUser: 0 volumes: - name: docker-socket hostPath: From c45e4a8a14e4a0b83e180b474aa9e7ced64b15a9 Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 12 Sep 2023 16:45:28 +0530 Subject: [PATCH 092/426] updated image tag --- .build/docker/agent-build.docker | 32 +++++++++++++++++++++++++++++--- .jenkins/pipeline.jenkins | 2 +- 2 files changed, 30 insertions(+), 4 deletions(-) diff --git a/.build/docker/agent-build.docker b/.build/docker/agent-build.docker index 4b1fd6c25fdf..f641e5c448e0 100644 --- a/.build/docker/agent-build.docker +++ b/.build/docker/agent-build.docker @@ -22,12 +22,38 @@ RUN apt-get update && \ echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian $(lsb_release -cs) stable" > /etc/apt/sources.list.d/docker.list && \ apt-get update && \ apt-get install -y docker-ce docker-ce-cli containerd.io +RUN apt-get install wget + +ENV MAVEN_VERSION 3.0.4 + +# Set the base URL for downloading Maven +ENV MAVEN_BASE_URL https://archive.apache.org/dist/maven/maven-3/${MAVEN_VERSION}/binaries + +# Define the installation directory for Maven +ENV MAVEN_HOME /usr/share/maven + +# Define the directory where Maven will store its repository +ENV MAVEN_REPO /root/.m2/repository + +# Create the Maven installation directory +RUN mkdir -p $MAVEN_HOME + +# Download and install Maven +RUN wget -q -O /tmp/apache-maven-${MAVEN_VERSION}-bin.tar.gz $MAVEN_BASE_URL/apache-maven-${MAVEN_VERSION}-bin.tar.gz + +RUN tar -xzvf /tmp/apache-maven-${MAVEN_VERSION}-bin.tar.gz -C $MAVEN_HOME --strip-components=1 +RUN rm -f /tmp/apache-maven-${MAVEN_VERSION}-bin.tar.gz + +# Set Maven environment variables +ENV PATH $MAVEN_HOME/bin:$PATH + +# Create the .m2/repository directory and set permissions +RUN mkdir -p $MAVEN_REPO && chmod 777 -R $MAVEN_REPO #VOLUME /var/run/docker.sock -RUN echo 'jenkins ALL=(ALL:ALL) NOPASSWD:ALL' >> /etc/sudoers -RUN usermod -aG docker jenkins -USER jenkins + + diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 48bb57d69570..db80ae809e79 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -54,7 +54,7 @@ pipeline { spec: containers: - name: jnlp - image: richamishra006/apache-k8s-agent:v24 + image: richamishra006/apache-k8s-agent:v25 command: - /bin/sh - -c From 60e9b8e2d7b39c8da06650604619ce3f5c3b3127 Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 12 Sep 2023 17:16:28 +0530 Subject: [PATCH 093/426] updated tag --- .build/docker/agent-build.docker | 2 +- .jenkins/pipeline.jenkins | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.build/docker/agent-build.docker b/.build/docker/agent-build.docker index f641e5c448e0..c34ab98d289f 100644 --- a/.build/docker/agent-build.docker +++ b/.build/docker/agent-build.docker @@ -48,7 +48,7 @@ RUN rm -f /tmp/apache-maven-${MAVEN_VERSION}-bin.tar.gz ENV PATH $MAVEN_HOME/bin:$PATH # Create the .m2/repository directory and set permissions -RUN mkdir -p $MAVEN_REPO && chmod 777 -R $MAVEN_REPO +RUN mkdir -p $MAVEN_REPO && chmod 777 -R /root/.m2 #VOLUME /var/run/docker.sock diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index db80ae809e79..4bb2f045b81d 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -54,7 +54,7 @@ pipeline { spec: containers: - name: jnlp - image: richamishra006/apache-k8s-agent:v25 + image: richamishra006/apache-k8s-agent:v26 command: - /bin/sh - -c From 0406be9f1e29998a833a083661cfe0d4746c7d10 Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 13 Sep 2023 11:31:20 +0530 Subject: [PATCH 094/426] added init container --- .build/docker/agent-build.docker | 28 +++------------------------- .jenkins/pipeline.jenkins | 11 +++++++++-- 2 files changed, 12 insertions(+), 27 deletions(-) diff --git a/.build/docker/agent-build.docker b/.build/docker/agent-build.docker index c34ab98d289f..6a0342195f4c 100644 --- a/.build/docker/agent-build.docker +++ b/.build/docker/agent-build.docker @@ -23,34 +23,12 @@ RUN apt-get update && \ apt-get update && \ apt-get install -y docker-ce docker-ce-cli containerd.io RUN apt-get install wget +VOLUME /var/run/docker.sock +#RUN chown -R jenkins:jenkins /var/run/docker.sock -ENV MAVEN_VERSION 3.0.4 -# Set the base URL for downloading Maven -ENV MAVEN_BASE_URL https://archive.apache.org/dist/maven/maven-3/${MAVEN_VERSION}/binaries +USER jenkins -# Define the installation directory for Maven -ENV MAVEN_HOME /usr/share/maven - -# Define the directory where Maven will store its repository -ENV MAVEN_REPO /root/.m2/repository - -# Create the Maven installation directory -RUN mkdir -p $MAVEN_HOME - -# Download and install Maven -RUN wget -q -O /tmp/apache-maven-${MAVEN_VERSION}-bin.tar.gz $MAVEN_BASE_URL/apache-maven-${MAVEN_VERSION}-bin.tar.gz - -RUN tar -xzvf /tmp/apache-maven-${MAVEN_VERSION}-bin.tar.gz -C $MAVEN_HOME --strip-components=1 -RUN rm -f /tmp/apache-maven-${MAVEN_VERSION}-bin.tar.gz - -# Set Maven environment variables -ENV PATH $MAVEN_HOME/bin:$PATH - -# Create the .m2/repository directory and set permissions -RUN mkdir -p $MAVEN_REPO && chmod 777 -R /root/.m2 - -#VOLUME /var/run/docker.sock diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 4bb2f045b81d..0f419d6bff4e 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -52,9 +52,16 @@ pipeline { labels: jenkins: label spec: + initContainers: + - name: init-docker-docket + image: alpine:latest + command: ["sh", "-c", "chown jenkins:jenkins /var/run/docker.sock"] + volumeMounts: + - name: docker-socket + mountPath: /var/run/docker.sock containers: - name: jnlp - image: richamishra006/apache-k8s-agent:v26 + image: richamishra006/apache-k8s-agent:v30 command: - /bin/sh - -c @@ -64,7 +71,7 @@ pipeline { mountPath: /var/run/docker.sock tty: true securityContext: - runAsUser: 0 + privileged: true volumes: - name: docker-socket hostPath: From 83bdf2a6557d25f3367ed701202b2bca50516de7 Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 13 Sep 2023 11:37:27 +0530 Subject: [PATCH 095/426] added init container --- .jenkins/pipeline.jenkins | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 0f419d6bff4e..8f6bc08c334a 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -44,7 +44,7 @@ pipeline { agent { kubernetes { label 'cassandra' - defaultContainer 'jnlp' + //defaultContainer 'jnlp' yaml ''' apiVersion: v1 kind: Pod @@ -53,7 +53,7 @@ pipeline { jenkins: label spec: initContainers: - - name: init-docker-docket + - name: init-docker-socket image: alpine:latest command: ["sh", "-c", "chown jenkins:jenkins /var/run/docker.sock"] volumeMounts: From 794ce23d0953eeb095272bcc6cd8734718a9aff0 Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 13 Sep 2023 11:40:49 +0530 Subject: [PATCH 096/426] added init container --- .jenkins/pipeline.jenkins | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 8f6bc08c334a..917aa1482e0f 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -55,7 +55,8 @@ pipeline { initContainers: - name: init-docker-socket image: alpine:latest - command: ["sh", "-c", "chown jenkins:jenkins /var/run/docker.sock"] + imagePullPolicy: Always + command: ["sh", "-c", "sleep 600"] volumeMounts: - name: docker-socket mountPath: /var/run/docker.sock From 4d716d4c45d3f4338af2812073a851a971af2324 Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 13 Sep 2023 11:46:06 +0530 Subject: [PATCH 097/426] added init container --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 917aa1482e0f..920b76b9ef2d 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -56,7 +56,7 @@ pipeline { - name: init-docker-socket image: alpine:latest imagePullPolicy: Always - command: ["sh", "-c", "sleep 600"] + command: ["sh", "-c", "chown jenkins:jenkins /var/run/docker.sock"] volumeMounts: - name: docker-socket mountPath: /var/run/docker.sock From 5edb5e97b4f994a1642883a318a2022163e1b34f Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 13 Sep 2023 11:55:15 +0530 Subject: [PATCH 098/426] added init container --- .jenkins/pipeline.jenkins | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 920b76b9ef2d..ad7e321de18f 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -60,6 +60,8 @@ pipeline { volumeMounts: - name: docker-socket mountPath: /var/run/docker.sock + securityContext: + runAsUser: 0 containers: - name: jnlp image: richamishra006/apache-k8s-agent:v30 From 61d8bac08062e637a03f870f6001b026d22993b7 Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 13 Sep 2023 11:58:46 +0530 Subject: [PATCH 099/426] added init container --- .jenkins/pipeline.jenkins | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index ad7e321de18f..59be17031fe0 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -107,7 +107,8 @@ pipeline { stage('Builds') { parallel { stage('artifacts') { - steps { + steps { + container('jnlp') { sh 'echo "starting artifacts stage"' //sh 'ls /run/containerd/' //sh 'ls /var/run/' @@ -117,6 +118,7 @@ pipeline { sh 'echo "finishing stage artifacts"' } + } } } } From 92d1108a824308cceeb53e3f82c0ea56a22138c1 Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 13 Sep 2023 12:03:45 +0530 Subject: [PATCH 100/426] added init container --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 59be17031fe0..19bbad3b021e 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -56,7 +56,7 @@ pipeline { - name: init-docker-socket image: alpine:latest imagePullPolicy: Always - command: ["sh", "-c", "chown jenkins:jenkins /var/run/docker.sock"] + command: ["sh", "-c", "chown -R jenkins:jenkins /var/run/docker.sock"] volumeMounts: - name: docker-socket mountPath: /var/run/docker.sock From a5eb1c1d57880051f45a28afc34061e216caff17 Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 13 Sep 2023 12:08:22 +0530 Subject: [PATCH 101/426] added init container --- .jenkins/pipeline.jenkins | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 19bbad3b021e..843952ff04e3 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -52,16 +52,6 @@ pipeline { labels: jenkins: label spec: - initContainers: - - name: init-docker-socket - image: alpine:latest - imagePullPolicy: Always - command: ["sh", "-c", "chown -R jenkins:jenkins /var/run/docker.sock"] - volumeMounts: - - name: docker-socket - mountPath: /var/run/docker.sock - securityContext: - runAsUser: 0 containers: - name: jnlp image: richamishra006/apache-k8s-agent:v30 @@ -74,7 +64,7 @@ pipeline { mountPath: /var/run/docker.sock tty: true securityContext: - privileged: true + runAsUser: 0 volumes: - name: docker-socket hostPath: From 9dee2bcc560d9c71a90251699277ce95f92809bb Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 13 Sep 2023 12:16:57 +0530 Subject: [PATCH 102/426] reverted change --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 843952ff04e3..ee733a490c04 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -64,7 +64,7 @@ pipeline { mountPath: /var/run/docker.sock tty: true securityContext: - runAsUser: 0 + privileged: true volumes: - name: docker-socket hostPath: From 63e8ef29dbb1865bbc65b7885c4aa2e43d2ef005 Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 13 Sep 2023 12:21:57 +0530 Subject: [PATCH 103/426] reverted change --- .jenkins/pipeline.jenkins | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index ee733a490c04..7b79ba8fc404 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -44,7 +44,7 @@ pipeline { agent { kubernetes { label 'cassandra' - //defaultContainer 'jnlp' + defaultContainer 'jnlp' yaml ''' apiVersion: v1 kind: Pod @@ -97,8 +97,7 @@ pipeline { stage('Builds') { parallel { stage('artifacts') { - steps { - container('jnlp') { + steps { sh 'echo "starting artifacts stage"' //sh 'ls /run/containerd/' //sh 'ls /var/run/' @@ -111,7 +110,6 @@ pipeline { } } } - } stage('Test') { parallel { stage('lint') { From bd82b2b8d23a55b7ef92efa1dfcf0bc85586ca52 Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 13 Sep 2023 12:29:07 +0530 Subject: [PATCH 104/426] updated --- .build/docker/agent-build.docker | 6 +++--- .jenkins/pipeline.jenkins | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.build/docker/agent-build.docker b/.build/docker/agent-build.docker index 6a0342195f4c..1397669a0c9b 100644 --- a/.build/docker/agent-build.docker +++ b/.build/docker/agent-build.docker @@ -22,10 +22,10 @@ RUN apt-get update && \ echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian $(lsb_release -cs) stable" > /etc/apt/sources.list.d/docker.list && \ apt-get update && \ apt-get install -y docker-ce docker-ce-cli containerd.io -RUN apt-get install wget -VOLUME /var/run/docker.sock -#RUN chown -R jenkins:jenkins /var/run/docker.sock +#VOLUME /var/run/docker.sock +RUN usermod -aG docker jenkins +#RUN chown -R 1000:1000 /var/run/docker.sock USER jenkins diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 7b79ba8fc404..25d04acc9378 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -54,7 +54,7 @@ pipeline { spec: containers: - name: jnlp - image: richamishra006/apache-k8s-agent:v30 + image: richamishra006/apache-k8s-agent:v31 command: - /bin/sh - -c From b67844c40b1617ef3b01535fb7b4f7eb12a2ca98 Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 13 Sep 2023 12:39:06 +0530 Subject: [PATCH 105/426] updated --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 25d04acc9378..5d2be28811e1 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -64,7 +64,7 @@ pipeline { mountPath: /var/run/docker.sock tty: true securityContext: - privileged: true + runAsUser: 0 volumes: - name: docker-socket hostPath: From efb3705bf70c893bee28a1eed3aa773e4c386aba Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 13 Sep 2023 12:58:35 +0530 Subject: [PATCH 106/426] updated init --- .jenkins/pipeline.jenkins | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 5d2be28811e1..a4b8e11de412 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -52,6 +52,19 @@ pipeline { labels: jenkins: label spec: + initContainers: + - name: init-docker-socket + image: alpine:latest + imagePullPolicy: Always + command: + - sh + - -c + - chown 1000:1000 /var/run/docker.sock + volumeMounts: + - name: docker-socket + mountPath: /var/run/docker.sock + securityContext: + runAsUser: 0 containers: - name: jnlp image: richamishra006/apache-k8s-agent:v31 From 846f0c33b85a5db19e18231b2ea5e74ef8e5436b Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 13 Sep 2023 13:00:15 +0530 Subject: [PATCH 107/426] updated init --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index a4b8e11de412..bbba9b041cf1 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -77,7 +77,7 @@ pipeline { mountPath: /var/run/docker.sock tty: true securityContext: - runAsUser: 0 + privileged: true volumes: - name: docker-socket hostPath: From 6bdd2b9de64b99e5d30531cf2a13fbc6d9bb260c Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 13 Sep 2023 13:18:35 +0530 Subject: [PATCH 108/426] updated docker script --- .build/docker/_docker_run.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.build/docker/_docker_run.sh b/.build/docker/_docker_run.sh index 12228d258f8a..9e980d7d38cc 100755 --- a/.build/docker/_docker_run.sh +++ b/.build/docker/_docker_run.sh @@ -124,7 +124,8 @@ container_id=$(docker run --name ${container_name} -d --security-opt seccomp=unc echo "Running container ${container_name} ${container_id}" -docker exec --user root ${container_name} bash -c "\${CASSANDRA_DIR}/.build/docker/_create_user.sh build $(id -u) $(id -g)" +#docker exec --user root ${container_name} bash -c "\${CASSANDRA_DIR}/.build/docker/_create_user.sh build $(id -u) $(id -g)" +docker exec --user root ${container_name} bash -c /home/build/cassandra/.build/docker/_create_user.sh build $(id -u) $(id -g)" docker exec --user build ${container_name} bash -c "${docker_command}" RETURN=$? From 30bfb977799435b4cfc528096e7cbad2571c1962 Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 13 Sep 2023 13:22:45 +0530 Subject: [PATCH 109/426] updated docker script --- .build/docker/_docker_run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.build/docker/_docker_run.sh b/.build/docker/_docker_run.sh index 9e980d7d38cc..eca45bcbc48c 100755 --- a/.build/docker/_docker_run.sh +++ b/.build/docker/_docker_run.sh @@ -125,7 +125,7 @@ container_id=$(docker run --name ${container_name} -d --security-opt seccomp=unc echo "Running container ${container_name} ${container_id}" #docker exec --user root ${container_name} bash -c "\${CASSANDRA_DIR}/.build/docker/_create_user.sh build $(id -u) $(id -g)" -docker exec --user root ${container_name} bash -c /home/build/cassandra/.build/docker/_create_user.sh build $(id -u) $(id -g)" +docker exec --user root ${container_name} bash -c "/home/build/cassandra/.build/docker/_create_user.sh build $(id -u) $(id -g)" docker exec --user build ${container_name} bash -c "${docker_command}" RETURN=$? From 56cafc923b7ff238ea304e6329b57dae8212d86e Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 13 Sep 2023 15:14:32 +0530 Subject: [PATCH 110/426] updated docker script --- .build/docker/_docker_run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.build/docker/_docker_run.sh b/.build/docker/_docker_run.sh index eca45bcbc48c..72685ed9f746 100755 --- a/.build/docker/_docker_run.sh +++ b/.build/docker/_docker_run.sh @@ -123,7 +123,7 @@ container_id=$(docker run --name ${container_name} -d --security-opt seccomp=unc ${image_name} sleep 1h) echo "Running container ${container_name} ${container_id}" - +sleep 600 #docker exec --user root ${container_name} bash -c "\${CASSANDRA_DIR}/.build/docker/_create_user.sh build $(id -u) $(id -g)" docker exec --user root ${container_name} bash -c "/home/build/cassandra/.build/docker/_create_user.sh build $(id -u) $(id -g)" docker exec --user build ${container_name} bash -c "${docker_command}" From 5db988dcd4f46044bd6665ee9ee042d022fbd11d Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 13 Sep 2023 15:29:08 +0530 Subject: [PATCH 111/426] updated docker script --- .build/docker/_docker_run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.build/docker/_docker_run.sh b/.build/docker/_docker_run.sh index 72685ed9f746..93fa7401b85f 100755 --- a/.build/docker/_docker_run.sh +++ b/.build/docker/_docker_run.sh @@ -123,7 +123,7 @@ container_id=$(docker run --name ${container_name} -d --security-opt seccomp=unc ${image_name} sleep 1h) echo "Running container ${container_name} ${container_id}" -sleep 600 +sleep 1800 #docker exec --user root ${container_name} bash -c "\${CASSANDRA_DIR}/.build/docker/_create_user.sh build $(id -u) $(id -g)" docker exec --user root ${container_name} bash -c "/home/build/cassandra/.build/docker/_create_user.sh build $(id -u) $(id -g)" docker exec --user build ${container_name} bash -c "${docker_command}" From b33b7f52eacc470209bcefd280f35cf63d138f7b Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 13 Sep 2023 15:45:50 +0530 Subject: [PATCH 112/426] updated script --- .build/docker/_docker_run.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.build/docker/_docker_run.sh b/.build/docker/_docker_run.sh index 93fa7401b85f..bd0bd4711715 100755 --- a/.build/docker/_docker_run.sh +++ b/.build/docker/_docker_run.sh @@ -27,7 +27,8 @@ ################################ # variables, with defaults -[ "x${cassandra_dir}" != "x" ] || cassandra_dir="$(readlink -f $(dirname "$0")/../..)" +#[ "x${cassandra_dir}" != "x" ] || cassandra_dir="$(readlink -f $(dirname "$0")/../..)" +[ "x${cassandra_dir}" != "x" ] || cassandra_dir="$(readlink -f $(dirname "$0"))" [ "x${build_dir}" != "x" ] || build_dir="${cassandra_dir}/build" [ -d "${build_dir}" ] || { mkdir -p "${build_dir}" ; } @@ -123,7 +124,7 @@ container_id=$(docker run --name ${container_name} -d --security-opt seccomp=unc ${image_name} sleep 1h) echo "Running container ${container_name} ${container_id}" -sleep 1800 +#sleep 1800 #docker exec --user root ${container_name} bash -c "\${CASSANDRA_DIR}/.build/docker/_create_user.sh build $(id -u) $(id -g)" docker exec --user root ${container_name} bash -c "/home/build/cassandra/.build/docker/_create_user.sh build $(id -u) $(id -g)" docker exec --user build ${container_name} bash -c "${docker_command}" From 0af53a6ed5342cb6a06633ec422249b869159dce Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 13 Sep 2023 16:08:57 +0530 Subject: [PATCH 113/426] updated script --- .build/docker/_docker_run.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.build/docker/_docker_run.sh b/.build/docker/_docker_run.sh index bd0bd4711715..eab1df988cf1 100755 --- a/.build/docker/_docker_run.sh +++ b/.build/docker/_docker_run.sh @@ -112,9 +112,13 @@ container_name="cassandra_${dockerfile/.docker/}_${un_script_name}_jdk${java_ver # change ant's build directory to $DIST_DIR # set java to java_version # execute the run_script +# docker_command="export ANT_OPTS=\"-Dbuild.dir=\${DIST_DIR} ${CASSANDRA_DOCKER_ANT_OPTS}\" ; \ +# source \${CASSANDRA_DIR}/.build/docker/_set_java.sh ${java_version} ; \ +# \${CASSANDRA_DIR}/.build/${run_script} ${@:4} ; exit \$? " + docker_command="export ANT_OPTS=\"-Dbuild.dir=\${DIST_DIR} ${CASSANDRA_DOCKER_ANT_OPTS}\" ; \ - source \${CASSANDRA_DIR}/.build/docker/_set_java.sh ${java_version} ; \ - \${CASSANDRA_DIR}/.build/${run_script} ${@:4} ; exit \$? " + source /home/build/cassandra/.build/docker/_set_java.sh ${java_version} ; \ + /home/build/cassandra/.build/${run_script} ${@:4} ; exit \$? " # run without the default seccomp profile # re-use the host's maven repository From b654e3c2289043f57e1867c701aba89517f96648 Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 13 Sep 2023 16:14:31 +0530 Subject: [PATCH 114/426] updated script --- .build/build-jars.sh | 2 +- .build/docker/_set_java.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.build/build-jars.sh b/.build/build-jars.sh index cd60e5a130e3..ee5d27eaec3a 100755 --- a/.build/build-jars.sh +++ b/.build/build-jars.sh @@ -1,4 +1,4 @@ -#!/bin/sh -e +#!/bin/sh -e -x # 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 diff --git a/.build/docker/_set_java.sh b/.build/docker/_set_java.sh index 6770803c6c0b..52148b9e6142 100755 --- a/.build/docker/_set_java.sh +++ b/.build/docker/_set_java.sh @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -e -x # 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 From e87a4dfec1067d8056894ba6e5d2cd070fa86c4d Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 13 Sep 2023 16:21:25 +0530 Subject: [PATCH 115/426] added echo commands --- .build/docker/_set_java.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.build/docker/_set_java.sh b/.build/docker/_set_java.sh index 52148b9e6142..cd4e9cdbf958 100755 --- a/.build/docker/_set_java.sh +++ b/.build/docker/_set_java.sh @@ -24,7 +24,8 @@ # variables, with defaults [ "x${CASSANDRA_DIR}" != "x" ] || { CASSANDRA_DIR="$(pwd)"; } [ -d "${CASSANDRA_DIR}" ] || { echo >&2 "Directory ${CASSANDRA_DIR} must exist"; exit 1; } - +echo $CASSANDRA_DIR +echo $(pwd) # pre-conditions [ -f "${CASSANDRA_DIR}/build.xml" ] || { echo >&2 "${CASSANDRA_DIR}/build.xml must exist"; exit 1; } From 86184b191b0933ae84d3c45712c6edf0f4bdced9 Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 13 Sep 2023 16:27:22 +0530 Subject: [PATCH 116/426] added echo commands --- .build/build-jars.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.build/build-jars.sh b/.build/build-jars.sh index ee5d27eaec3a..dfc74990c2ee 100755 --- a/.build/build-jars.sh +++ b/.build/build-jars.sh @@ -19,7 +19,7 @@ # variables, with defaults [ "x${CASSANDRA_DIR}" != "x" ] || CASSANDRA_DIR="$(readlink -f $(dirname "$0")/..)" - +echo $CASSANDRA_DIR # pre-conditions command -v ant >/dev/null 2>&1 || { echo >&2 "ant needs to be installed"; exit 1; } [ -d "${CASSANDRA_DIR}" ] || { echo >&2 "Directory ${CASSANDRA_DIR} must exist"; exit 1; } From 43919d9c36bf4880bda53c4d5485d32095f2b768 Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 13 Sep 2023 16:37:39 +0530 Subject: [PATCH 117/426] commented stash --- .jenkins/pipeline.jenkins | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index bbba9b041cf1..ff943bf10f96 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -340,12 +340,12 @@ def _buildAxis(build_script, toCopy, arch, jdk) { //} echo "Executing `build_dir=${build_dir} ${build_script} ${jdk} 2>&1 | tee ${logfile}` on ${NODE_NAME}" statusCode = sh returnStatus:true, script:"build_dir=\"${build_dir}\" ${build_script} ${jdk} 2>&1 | tee ${logfile}" - if (".build/docker/build-artifacts.sh" == build_script || build_script.contains(".build/docker/_docker_run.sh")) { - dir("${build_dir}") { + //if (".build/docker/build-artifacts.sh" == build_script || build_script.contains(".build/docker/_docker_run.sh")) { + //dir("${build_dir}") { // only stash the project built files. all dependency libraries are restored from the local maven repo using `ant resolver-dist-lib` - stash name: "${arch}_${jdk}", includes: "*.jar,classes/**,test/classes/**,tools/**", excludes: "dist/**,**/lib/**/*.jar," - } - } + //stash name: "${arch}_${jdk}", includes: "*.jar,classes/**,test/classes/**,tools/**", excludes: "dist/**,**/lib/**/*.jar," + //} + //} } finally { attempt = attempt + 1 sh "ls" From 27feeb44aea55419d4811e8dc6f4d3cf79788244 Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 13 Sep 2023 16:46:26 +0530 Subject: [PATCH 118/426] updated script --- .build/docker/_docker_run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.build/docker/_docker_run.sh b/.build/docker/_docker_run.sh index eab1df988cf1..5c1413a96b53 100755 --- a/.build/docker/_docker_run.sh +++ b/.build/docker/_docker_run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -x # 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 From 02a0d1a3c167047c4822b9170d7ab96ff5b2060b Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 13 Sep 2023 16:55:16 +0530 Subject: [PATCH 119/426] added echo --- .build/build-jars.sh | 2 +- .build/docker/_set_java.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.build/build-jars.sh b/.build/build-jars.sh index dfc74990c2ee..66e051401571 100755 --- a/.build/build-jars.sh +++ b/.build/build-jars.sh @@ -19,7 +19,7 @@ # variables, with defaults [ "x${CASSANDRA_DIR}" != "x" ] || CASSANDRA_DIR="$(readlink -f $(dirname "$0")/..)" -echo $CASSANDRA_DIR +echo "$CASSANDRA_DIR from build_jar" # pre-conditions command -v ant >/dev/null 2>&1 || { echo >&2 "ant needs to be installed"; exit 1; } [ -d "${CASSANDRA_DIR}" ] || { echo >&2 "Directory ${CASSANDRA_DIR} must exist"; exit 1; } diff --git a/.build/docker/_set_java.sh b/.build/docker/_set_java.sh index cd4e9cdbf958..dcdd4f5a6fe7 100755 --- a/.build/docker/_set_java.sh +++ b/.build/docker/_set_java.sh @@ -24,7 +24,7 @@ # variables, with defaults [ "x${CASSANDRA_DIR}" != "x" ] || { CASSANDRA_DIR="$(pwd)"; } [ -d "${CASSANDRA_DIR}" ] || { echo >&2 "Directory ${CASSANDRA_DIR} must exist"; exit 1; } -echo $CASSANDRA_DIR +echo "$CASSANDRA_DIR from _set_java" echo $(pwd) # pre-conditions [ -f "${CASSANDRA_DIR}/build.xml" ] || { echo >&2 "${CASSANDRA_DIR}/build.xml must exist"; exit 1; } From 0a7fd36360b2a486d44e9d91c2002e671a0c11c4 Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 13 Sep 2023 17:03:47 +0530 Subject: [PATCH 120/426] added echo --- .build/docker/_docker_run.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.build/docker/_docker_run.sh b/.build/docker/_docker_run.sh index 5c1413a96b53..de5bec1aaa16 100755 --- a/.build/docker/_docker_run.sh +++ b/.build/docker/_docker_run.sh @@ -27,11 +27,11 @@ ################################ # variables, with defaults -#[ "x${cassandra_dir}" != "x" ] || cassandra_dir="$(readlink -f $(dirname "$0")/../..)" -[ "x${cassandra_dir}" != "x" ] || cassandra_dir="$(readlink -f $(dirname "$0"))" +[ "x${cassandra_dir}" != "x" ] || cassandra_dir="$(readlink -f $(dirname "$0")/../..)" +#[ "x${cassandra_dir}" != "x" ] || cassandra_dir="$(readlink -f $(dirname "$0"))" [ "x${build_dir}" != "x" ] || build_dir="${cassandra_dir}/build" [ -d "${build_dir}" ] || { mkdir -p "${build_dir}" ; } - +echo "$CASSANDRA_DIR from _docker_run" java_version_default=`grep 'property\s*name="java.default"' ${cassandra_dir}/build.xml |sed -ne 's/.*value="\([^"]*\)".*/\1/p'` java_version_supported=`grep 'property\s*name="java.supported"' ${cassandra_dir}/build.xml |sed -ne 's/.*value="\([^"]*\)".*/\1/p'` From 3ac92d49a794bcad33eb431ffdcdb67ac56b93dc Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 13 Sep 2023 17:13:36 +0530 Subject: [PATCH 121/426] added echo --- .build/docker/_docker_run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.build/docker/_docker_run.sh b/.build/docker/_docker_run.sh index de5bec1aaa16..d2ed1598e697 100755 --- a/.build/docker/_docker_run.sh +++ b/.build/docker/_docker_run.sh @@ -119,7 +119,7 @@ container_name="cassandra_${dockerfile/.docker/}_${un_script_name}_jdk${java_ver docker_command="export ANT_OPTS=\"-Dbuild.dir=\${DIST_DIR} ${CASSANDRA_DOCKER_ANT_OPTS}\" ; \ source /home/build/cassandra/.build/docker/_set_java.sh ${java_version} ; \ /home/build/cassandra/.build/${run_script} ${@:4} ; exit \$? " - +sleep 1800 # run without the default seccomp profile # re-use the host's maven repository container_id=$(docker run --name ${container_name} -d --security-opt seccomp=unconfined --rm \ From 40f11d7f441c78fe01b4c4b7b89fdfedbc44371d Mon Sep 17 00:00:00 2001 From: richamishra Date: Thu, 14 Sep 2023 13:32:22 +0530 Subject: [PATCH 122/426] updated sleep command --- .build/docker/_docker_run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.build/docker/_docker_run.sh b/.build/docker/_docker_run.sh index d2ed1598e697..9257f8c2bcd1 100755 --- a/.build/docker/_docker_run.sh +++ b/.build/docker/_docker_run.sh @@ -119,7 +119,7 @@ container_name="cassandra_${dockerfile/.docker/}_${un_script_name}_jdk${java_ver docker_command="export ANT_OPTS=\"-Dbuild.dir=\${DIST_DIR} ${CASSANDRA_DOCKER_ANT_OPTS}\" ; \ source /home/build/cassandra/.build/docker/_set_java.sh ${java_version} ; \ /home/build/cassandra/.build/${run_script} ${@:4} ; exit \$? " -sleep 1800 + # run without the default seccomp profile # re-use the host's maven repository container_id=$(docker run --name ${container_name} -d --security-opt seccomp=unconfined --rm \ @@ -128,7 +128,7 @@ container_id=$(docker run --name ${container_name} -d --security-opt seccomp=unc ${image_name} sleep 1h) echo "Running container ${container_name} ${container_id}" -#sleep 1800 +sleep 3600 #docker exec --user root ${container_name} bash -c "\${CASSANDRA_DIR}/.build/docker/_create_user.sh build $(id -u) $(id -g)" docker exec --user root ${container_name} bash -c "/home/build/cassandra/.build/docker/_create_user.sh build $(id -u) $(id -g)" docker exec --user build ${container_name} bash -c "${docker_command}" From cce70c73d365ffc35086e206d7e95c0c9aaa6bd5 Mon Sep 17 00:00:00 2001 From: richamishra Date: Fri, 15 Sep 2023 12:10:51 +0530 Subject: [PATCH 123/426] added volume mount --- .jenkins/pipeline.jenkins | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index ff943bf10f96..d2a971eafe3b 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -74,7 +74,9 @@ pipeline { - /usr/local/bin/jenkins-agent volumeMounts: - name: docker-socket - mountPath: /var/run/docker.sock + mountPath: /var/run/docker.sock + - name: cassandra-dir + mountPath: /home/jenkins/agent/workspace/k8s-e2e tty: true securityContext: privileged: true @@ -82,6 +84,9 @@ pipeline { - name: docker-socket hostPath: path: /var/run/docker.sock + - name: cassandra-dir + hostPath: + path: /home/jenkins/agent/workspace/k8s-e2e ''' } } From 6c69b412cb054d579e5f2b221640a59b5b036a65 Mon Sep 17 00:00:00 2001 From: richamishra Date: Fri, 15 Sep 2023 12:14:27 +0530 Subject: [PATCH 124/426] added volume mount --- .jenkins/pipeline.jenkins | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index d2a971eafe3b..c37357fbed05 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -105,7 +105,7 @@ pipeline { stage('Init') { steps { container('jnlp') { - cleanWs() + //cleanWs() script { currentBuild.result='SUCCESS' } sh 'echo "stage init"' } @@ -324,7 +324,7 @@ def buildJob(build_script, toCopy) { def _buildAxis(build_script, toCopy, arch, jdk) { node(arch) { branchName: "${build_script} ${jdk} ${NODE_NAME}" - cleanWs() + //cleanWs() checkout scm sh "echo scm success" tool type: 'jdk', name: "jdk_${jdk}_latest" From 5fd36f0d471ffa21df8fd6743efc0482cfed7153 Mon Sep 17 00:00:00 2001 From: richamishra Date: Fri, 15 Sep 2023 12:17:37 +0530 Subject: [PATCH 125/426] added volume mount --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index c37357fbed05..76db20a959e3 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -76,7 +76,7 @@ pipeline { - name: docker-socket mountPath: /var/run/docker.sock - name: cassandra-dir - mountPath: /home/jenkins/agent/workspace/k8s-e2e + mountPath: /tmp/k8s-e2e tty: true securityContext: privileged: true From 4c31fdf04a4e70f8ebd970a3b054347fe8f02b79 Mon Sep 17 00:00:00 2001 From: richamishra Date: Fri, 15 Sep 2023 16:46:09 +0530 Subject: [PATCH 126/426] updated pipeline --- .jenkins/pipeline.jenkins | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 76db20a959e3..8b758e08c522 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -74,9 +74,7 @@ pipeline { - /usr/local/bin/jenkins-agent volumeMounts: - name: docker-socket - mountPath: /var/run/docker.sock - - name: cassandra-dir - mountPath: /tmp/k8s-e2e + mountPath: /var/run/docker.sock tty: true securityContext: privileged: true @@ -84,9 +82,6 @@ pipeline { - name: docker-socket hostPath: path: /var/run/docker.sock - - name: cassandra-dir - hostPath: - path: /home/jenkins/agent/workspace/k8s-e2e ''' } } From 05ebf39e0ebce192c974e4348ed32e4fe4cd0d63 Mon Sep 17 00:00:00 2001 From: richamishra Date: Fri, 15 Sep 2023 16:50:09 +0530 Subject: [PATCH 127/426] updated pipeline --- .jenkins/pipeline.jenkins | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 8b758e08c522..2b41d099e20c 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -78,6 +78,8 @@ pipeline { tty: true securityContext: privileged: true + nodeSelector: + gke-node: first volumes: - name: docker-socket hostPath: From 4539fca7fe3eb0e79eac83fa3a7529bc40283c63 Mon Sep 17 00:00:00 2001 From: richamishra Date: Fri, 15 Sep 2023 16:57:03 +0530 Subject: [PATCH 128/426] updated pipeline --- .build/docker/_docker_run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.build/docker/_docker_run.sh b/.build/docker/_docker_run.sh index 9257f8c2bcd1..37c1590ce170 100755 --- a/.build/docker/_docker_run.sh +++ b/.build/docker/_docker_run.sh @@ -128,7 +128,7 @@ container_id=$(docker run --name ${container_name} -d --security-opt seccomp=unc ${image_name} sleep 1h) echo "Running container ${container_name} ${container_id}" -sleep 3600 +#sleep 3600 #docker exec --user root ${container_name} bash -c "\${CASSANDRA_DIR}/.build/docker/_create_user.sh build $(id -u) $(id -g)" docker exec --user root ${container_name} bash -c "/home/build/cassandra/.build/docker/_create_user.sh build $(id -u) $(id -g)" docker exec --user build ${container_name} bash -c "${docker_command}" From 42cc6d7f78d0c8914e491ae889a3d99ff99825fd Mon Sep 17 00:00:00 2001 From: richamishra Date: Fri, 15 Sep 2023 17:04:22 +0530 Subject: [PATCH 129/426] updated pipeline --- .build/docker/_docker_run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.build/docker/_docker_run.sh b/.build/docker/_docker_run.sh index 37c1590ce170..9257f8c2bcd1 100755 --- a/.build/docker/_docker_run.sh +++ b/.build/docker/_docker_run.sh @@ -128,7 +128,7 @@ container_id=$(docker run --name ${container_name} -d --security-opt seccomp=unc ${image_name} sleep 1h) echo "Running container ${container_name} ${container_id}" -#sleep 3600 +sleep 3600 #docker exec --user root ${container_name} bash -c "\${CASSANDRA_DIR}/.build/docker/_create_user.sh build $(id -u) $(id -g)" docker exec --user root ${container_name} bash -c "/home/build/cassandra/.build/docker/_create_user.sh build $(id -u) $(id -g)" docker exec --user build ${container_name} bash -c "${docker_command}" From 897ac1cd1c1ef2697edea0ee0c0ffea50283a652 Mon Sep 17 00:00:00 2001 From: richamishra Date: Fri, 15 Sep 2023 17:21:42 +0530 Subject: [PATCH 130/426] updated pipeline --- .build/docker/_docker_run.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.build/docker/_docker_run.sh b/.build/docker/_docker_run.sh index 9257f8c2bcd1..9360611c48d5 100755 --- a/.build/docker/_docker_run.sh +++ b/.build/docker/_docker_run.sh @@ -122,13 +122,18 @@ docker_command="export ANT_OPTS=\"-Dbuild.dir=\${DIST_DIR} ${CASSANDRA_DOCKER_AN # run without the default seccomp profile # re-use the host's maven repository +# container_id=$(docker run --name ${container_name} -d --security-opt seccomp=unconfined --rm \ +# -v "${cassandra_dir}":/home/build/cassandra -v ~/.m2/repository/:/home/build/.m2/repository/ -v "${build_dir}":/dist \ +# ${docker_volume_opt} \ +# ${image_name} sleep 1h) container_id=$(docker run --name ${container_name} -d --security-opt seccomp=unconfined --rm \ - -v "${cassandra_dir}":/home/build/cassandra -v ~/.m2/repository/:/home/build/.m2/repository/ -v "${build_dir}":/dist \ + -v "${cassandra_dir}":/home/build/ -v ~/.m2/repository/:/home/build/.m2/repository/ -v "${build_dir}":/dist \ ${docker_volume_opt} \ ${image_name} sleep 1h) + echo "Running container ${container_name} ${container_id}" -sleep 3600 +#sleep 3600 #docker exec --user root ${container_name} bash -c "\${CASSANDRA_DIR}/.build/docker/_create_user.sh build $(id -u) $(id -g)" docker exec --user root ${container_name} bash -c "/home/build/cassandra/.build/docker/_create_user.sh build $(id -u) $(id -g)" docker exec --user build ${container_name} bash -c "${docker_command}" From f83da386322e9d943fdf49fb0cfadf9e38b89718 Mon Sep 17 00:00:00 2001 From: richamishra Date: Fri, 15 Sep 2023 17:30:12 +0530 Subject: [PATCH 131/426] updated pipeline --- .build/docker/_docker_run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.build/docker/_docker_run.sh b/.build/docker/_docker_run.sh index 9360611c48d5..d08aa6857e8a 100755 --- a/.build/docker/_docker_run.sh +++ b/.build/docker/_docker_run.sh @@ -133,7 +133,7 @@ container_id=$(docker run --name ${container_name} -d --security-opt seccomp=unc echo "Running container ${container_name} ${container_id}" -#sleep 3600 +sleep 3600 #docker exec --user root ${container_name} bash -c "\${CASSANDRA_DIR}/.build/docker/_create_user.sh build $(id -u) $(id -g)" docker exec --user root ${container_name} bash -c "/home/build/cassandra/.build/docker/_create_user.sh build $(id -u) $(id -g)" docker exec --user build ${container_name} bash -c "${docker_command}" From 2405b0e25a693f2042e8fd384584c13b300e0504 Mon Sep 17 00:00:00 2001 From: richamishra Date: Fri, 15 Sep 2023 17:59:15 +0530 Subject: [PATCH 132/426] updated pipeline --- .build/docker/_docker_run.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.build/docker/_docker_run.sh b/.build/docker/_docker_run.sh index d08aa6857e8a..bc79bff42823 100755 --- a/.build/docker/_docker_run.sh +++ b/.build/docker/_docker_run.sh @@ -117,8 +117,8 @@ container_name="cassandra_${dockerfile/.docker/}_${un_script_name}_jdk${java_ver # \${CASSANDRA_DIR}/.build/${run_script} ${@:4} ; exit \$? " docker_command="export ANT_OPTS=\"-Dbuild.dir=\${DIST_DIR} ${CASSANDRA_DOCKER_ANT_OPTS}\" ; \ - source /home/build/cassandra/.build/docker/_set_java.sh ${java_version} ; \ - /home/build/cassandra/.build/${run_script} ${@:4} ; exit \$? " + source /home/build/cassandra/cassandra/.build/docker/_set_java.sh ${java_version} ; \ + /home/build/cassandra/cassandra/.build/${run_script} ${@:4} ; exit \$? " # run without the default seccomp profile # re-use the host's maven repository @@ -127,15 +127,15 @@ docker_command="export ANT_OPTS=\"-Dbuild.dir=\${DIST_DIR} ${CASSANDRA_DOCKER_AN # ${docker_volume_opt} \ # ${image_name} sleep 1h) container_id=$(docker run --name ${container_name} -d --security-opt seccomp=unconfined --rm \ - -v "${cassandra_dir}":/home/build/ -v ~/.m2/repository/:/home/build/.m2/repository/ -v "${build_dir}":/dist \ + -v "${cassandra_dir}":/home/build/cassandra -v ~/.m2/repository/:/home/build/.m2/repository/ -v "${build_dir}":/dist \ ${docker_volume_opt} \ ${image_name} sleep 1h) echo "Running container ${container_name} ${container_id}" -sleep 3600 +#sleep 3600 #docker exec --user root ${container_name} bash -c "\${CASSANDRA_DIR}/.build/docker/_create_user.sh build $(id -u) $(id -g)" -docker exec --user root ${container_name} bash -c "/home/build/cassandra/.build/docker/_create_user.sh build $(id -u) $(id -g)" +docker exec --user root ${container_name} bash -c "/home/build/cassandra/cassandra/.build/docker/_create_user.sh build $(id -u) $(id -g)" docker exec --user build ${container_name} bash -c "${docker_command}" RETURN=$? From 654fecca51022035e5a4bccf4ff6ca1a9091b136 Mon Sep 17 00:00:00 2001 From: richamishra Date: Fri, 15 Sep 2023 18:06:07 +0530 Subject: [PATCH 133/426] updated pipeline --- .build/docker/_docker_run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.build/docker/_docker_run.sh b/.build/docker/_docker_run.sh index bc79bff42823..79d2fea8cb90 100755 --- a/.build/docker/_docker_run.sh +++ b/.build/docker/_docker_run.sh @@ -133,7 +133,7 @@ container_id=$(docker run --name ${container_name} -d --security-opt seccomp=unc echo "Running container ${container_name} ${container_id}" -#sleep 3600 +sleep 3600 #docker exec --user root ${container_name} bash -c "\${CASSANDRA_DIR}/.build/docker/_create_user.sh build $(id -u) $(id -g)" docker exec --user root ${container_name} bash -c "/home/build/cassandra/cassandra/.build/docker/_create_user.sh build $(id -u) $(id -g)" docker exec --user build ${container_name} bash -c "${docker_command}" From 6c205891879858f21af993c81811989674511a38 Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 19 Sep 2023 15:47:44 +0530 Subject: [PATCH 134/426] added new files for testing --- .jenkins/job/dsljob-copy.jenkins | 34 ++ .jenkins/pipeline-copy.jenkins | 622 +++++++++++++++++++++++++++++++ 2 files changed, 656 insertions(+) create mode 100644 .jenkins/job/dsljob-copy.jenkins create mode 100644 .jenkins/pipeline-copy.jenkins diff --git a/.jenkins/job/dsljob-copy.jenkins b/.jenkins/job/dsljob-copy.jenkins new file mode 100644 index 000000000000..4132f47437a2 --- /dev/null +++ b/.jenkins/job/dsljob-copy.jenkins @@ -0,0 +1,34 @@ +#!/usr/bin/env groovy + +job('jenkins-operator-job-dsl-seed') { + description('Seed Job that generates and triggers the GeneratedPipelineJob') + configure { project -> + project / 'publishers' << 'hudson.tasks.BuildTrigger' { + childProjects('k8s-e2e') + threshold { + name('SUCCESS') + } + } + } +} + + + +pipelineJob('k8s-e2e') { + displayName('Kubernetes Plugin E2E Test') + + definition { + cpsScm { + scm { + git { + remote { + url('https://github.com/infracloudio/cassandra.git') + } + branches('*/infracloud/cassandra-5.0') + } + } + scriptPath('.jenkins/pipeline-copy.jenkins') + } + } +} + diff --git a/.jenkins/pipeline-copy.jenkins b/.jenkins/pipeline-copy.jenkins new file mode 100644 index 000000000000..001c129baf31 --- /dev/null +++ b/.jenkins/pipeline-copy.jenkins @@ -0,0 +1,622 @@ +// 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 +// +// https://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. +// +// +// Jenkins CI declaration. +// +// This file is declarative initially. +// The declarative component describes the pipeline stages and to what CI-agnostic scripts they map to. +// These CI-agnostic scripts are used as an intermediate dockerised layer above the ant build.xml +// The ant build.xml is never invoked directly. +// +// Below the declarative section there is groovy scripting methods for all the logic between +// the 10k ft declarative view and the CI-agnostic scripts. +// +// This Jenkinsfile is expected to work on any ci-cassandra.a.o clone. +// Functionality that depends upon ASF Infra and the canonical ci-cassandra.a.o setup (e.g. post-commit builds) +// is required to quietly fail when run on other environments. +// +// +// Job definitions are still being migrated from (where other CI jobs can also be found): +// https://github.com/apache/cassandra-builds/blob/trunk/jenkins-dsl/cassandra_job_dsl_seed.groovy +// +// +// Syntax help can be found at https://ci-cassandra.apache.org/pipeline-syntax/ +// +// Validate/lint this file using the following command +// `curl -X POST -F "jenkinsfile=<.jenkins/Jenkinsfile" https://ci-cassandra.apache.org/pipeline-model-converter/validate` + +pipeline { + agent { + kubernetes { + label 'cassandra' + defaultContainer 'jnlp' + yaml ''' + apiVersion: v1 + kind: Pod + metadata: + labels: + jenkins: label + spec: + initContainers: + - name: init-docker-socket + image: alpine:latest + imagePullPolicy: Always + command: + - sh + - -c + - chown 1000:1000 /var/run/docker.sock + volumeMounts: + - name: docker-socket + mountPath: /var/run/docker.sock + securityContext: + runAsUser: 0 + containers: + - name: jnlp + image: richamishra006/apache-k8s-agent:v31 + command: + - /bin/sh + - -c + - /usr/local/bin/jenkins-agent + volumeMounts: + - name: docker-socket + mountPath: /var/run/docker.sock + tty: true + securityContext: + privileged: true + nodeSelector: + gke-node: first + volumes: + - name: docker-socket + hostPath: + path: /var/run/docker.sock + ''' + } + } + + options { + githubProjectProperty('https://github.com/apache/cassandra') + parallelsAlwaysFailFast() + timestamps() + } + environment { + javaVersionDefault = javaVersionDefault() + javaVersionsSupported = javaVersionsSupported() + PIPELINE_SCRIPT_DEBUG = 'true' + } + stages { + stage('Init') { + steps { + container('jnlp') { + //cleanWs() + script { currentBuild.result='SUCCESS' } + sh 'echo "stage init"' + } + } + } + + stage('Builds') { + agent { + kubernetes { + yaml ''' + spec: + containers: + - name: bullseye + image: apache/cassandra-bullseye-build:5687c7b6dcee1866f97a493aef77794f + command: + - 'bash' + - '-c' + - | + "export ANT_OPTS=\"-Dbuild.dir=\dist ${CASSANDRA_DOCKER_ANT_OPTS}\" ; \ + source /home/build/cassandra/.build/docker/_set_java.sh 11 ; \ + /home/build/cassandra/.build/build-jar.sh ${@:4} ; exit \$? " + volumeMounts: + - name: cass-dir + mountPath: /home/build/cassandra + - name: m2-dir + mountPath: /home/build/.m2/repository + - name: dist-dir + mountPath: /dist + volumes: + - name: cass-dir + hostPath: + path: ~/jenkins/apache/cassandra + - name: m2-dir + hostPath: + path: ~/.m2/repository/ + - name: dist-dir + hostPath: + path: ~/jenkins/apache/cassandra/build + + ''' + } + } + parallel { + stage('artifacts') { + steps { + sh 'echo "starting artifacts stage"' + //buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") + sh 'echo "finishing stage artifacts"' + + } + } + } + } + stage('Test') { + parallel { + stage('lint') { + steps { + //buildJob(".build/docker/check-code.sh", "") + sh 'echo "stage lint"' + } + } + stage('debian') { + steps { + //buildJob(".build/docker/build-debian.sh", "cassandra_*,cassandra-tools_*") + sh 'echo "stage debian"' + } + } + stage('redhat') { + steps { + //buildJob(".build/docker/build-redhat.sh rpm", "*.rpm") + sh 'echo "stage redhat"' + } + } + stage('centos7') { + steps { + //buildJob(".build/docker/build-redhat.sh noboolean", "*.rpm") + sh 'echo "stage centos7"' + } + } + stage('stress') { + steps { + //testJob(".build/docker/run-tests.sh", "stress-test", 1) + sh 'echo "stage stress"' + } + } + stage('fqltool') { + steps { + //testJob(".build/docker/run-tests.sh", "fqltool-test", 1) + sh 'echo "stage fqltool"' + } + } + // XXX – commented out for infracloud/cassandra-5.0 branch + // stage('units') { + // steps { + // testJob(".build/docker/run-tests.sh", "test", 8) + // } + // } + // stage('long units') { + // steps { + // testJob(".build/docker/run-tests.sh", "long-test", 8) + // } + // } + // stage('burn') { + // steps { + // testJob(".build/docker/run-tests.sh", "test-burn", 8) + // } + // } + // stage('cdc') { + // steps { + // testJob(".build/docker/run-tests.sh", "test-cdc", 8) + // } + // } + // stage('compression') { + // steps { + // testJob(".build/docker/run-tests.sh", "test-compression", 8) + // } + // } + // stage('cqlsh') { + // steps { + // testJob(".build/docker/run-tests.sh", "cqlsh-test", 1) + // } + // } + // stage('jvm-dtest') { + // steps { + // testJob(".build/docker/run-tests.sh", "jvm-dtest", 8) + // } + // } + // stage('jvm-dtest-upgrade') { + // steps { + // testJob(".build/docker/run-tests.sh", "jvm-dtest-upgrade", 8) + // } + // } + // stage('dtest') { + // steps { + // testJob(".build/docker/run-tests.sh", "dtest", 64) + // } + // } + // stage('dtest-large') { + // steps { + // testJob(".build/docker/run-tests.sh", "dtest-large", 8) + // } + // } + // stage('dtest-novnode') { + // steps { + // testJob(".build/docker/run-tests.sh", "dtest-novnode", 64) + // } + // } + // stage('dtest-offheap') { + // steps { + // testJob(".build/docker/run-tests.sh", "dtest-offheap", 64) + // } + // } + // stage('dtest-large-novnode') { + // steps { + // testJob(".build/docker/run-tests.sh", "dtest-large-novnode", 8) + // } + // } + // stage('dtest-upgrade') { + // steps { + // testJob(".build/docker/run-tests.sh", "dtest-upgrade", 64) + // } + // } + } + } + stage('Summary') { + steps { + // FIXME is this needed if each job is submitting its own results to the overall pipeline ?? + //junit testResults: '**/build/test/**/TEST*.xml,**/cqlshlib.xml,**/nosetests.xml', testDataPublishers: [[$class: 'StabilityTestDataPublisher']] + + //sendNotifications() + + // FIXME how to collect and build one test report file ?? + //generateUnifiedTestReport() + + //collectConsoleLog() // FIXME should this be in a final instead ? (we always want the console log archived) + //copyToNightlies('console.log.xz,TESTS-TestSuites.xml.xz') + sh 'echo "stage summary"' + } + } + } +} + +/////////////////////////// +//// scripting support //// +/////////////////////////// + + +/** + * Return the default JDK defined by build.xml + **/ +def javaVersionDefault() { + sh (returnStdout: true, script: 'grep \'property\\s*name=\"java.default\"\' build.xml | sed -ne \'s/.*value=\"\\([^\"]*\\)\".*/\\1/p\'').trim() +} + +/** + * Return the supported JDKs defined by build.xml + **/ +def javaVersionsSupported() { + sh (returnStdout: true, script: 'grep \'property\\s*name=\"java.supported\"\' build.xml | sed -ne \'s/.*value=\"\\([^\"]*\\)\".*/\\1/p\'').trim() +} + +/** + * Is this a post-commit build (or a pre-commit build) + **/ +def isPostCommit() { + // any build of a branch found on github.com/apache/cassandra is considered a post-commit (post-merge) CI run + return "${GIT_URL}".contains("apache/cassandra") +} + +/** + * Are we running on ci-cassandra.apache.org ? + **/ +def isCanonical() { + return "${JENKINS_URL}".contains("ci-cassandra.apache.org") +} + +/** + * Executes `${build_script} ${jdk}` for each arch, and jdk. + * + * Stashes the jarfiles for `package-artifacts.sh` + * Copies build artifacts and logfiles to nightlies + * Cleans the agent (docker prune) afterwards + * Stops the pipeline on any failure + **/ +def buildJob(build_script, toCopy) { + //def archs = ['cassandra', 'cassandra-arm64'] // uncomment when ready for arm64 testing + def archs = ['cassandra'] + def jdks = "${javaVersionsSupported}".split(/,/, -1) + def builds_per_arch = [:] + for (a in archs) { + def arch = a + builds_per_arch[arch] = { + def builds_per_jdk = [:] + for (j in jdks) { + def jdk = j + builds_per_jdk[jdk] = { _buildAxis(build_script, toCopy, arch, jdk) } + } + parallel(builds_per_jdk) + } + } + parallel(builds_per_arch) +} + +/** + * Executes `${build_script} ${jdk}` for stated arch, and jdk. + **/ +def _buildAxis(build_script, toCopy, arch, jdk) { + node(arch) { + branchName: "${build_script} ${jdk} ${NODE_NAME}" + //cleanWs() + checkout scm + sh "echo scm success" + tool type: 'jdk', name: "jdk_${jdk}_latest" + sh "echo tool success" + def statusCode = 0, attempt = 1 + retry(2) { + if (attempt > 1) { sleep(60 * attempt) } + def build_script_safe_name = "${build_script}".replace(".build/docker/", "").replace(".sh", "_").replace(" ", "_") + def logfile = "${JOB_NAME}_${BUILD_NUMBER}_${build_script_safe_name}_jdk${jdk}_${arch}_attempt_${attempt}.log" + sh "mkdir -p build" + def build_dir = sh( returnStdout: true, script:"mktemp -d ${WORKSPACE}/build/build_docker_run.XXXXXXXXXX" ) + try { + //if (".build/docker/build-artifacts.sh" != build_script) { + // build-artifacts.sh must be run in an earlier completed stage for the stash to exist + //dir(build_dir) { + //unstash name: "${arch}_${jdk}" + //} + //} + echo "Executing `build_dir=${build_dir} ${build_script} ${jdk} 2>&1 | tee ${logfile}` on ${NODE_NAME}" + statusCode = sh returnStatus:true, script:"build_dir=\"${build_dir}\" ${build_script} ${jdk} 2>&1 | tee ${logfile}" + //if (".build/docker/build-artifacts.sh" == build_script || build_script.contains(".build/docker/_docker_run.sh")) { + //dir("${build_dir}") { + // only stash the project built files. all dependency libraries are restored from the local maven repo using `ant resolver-dist-lib` + //stash name: "${arch}_${jdk}", includes: "*.jar,classes/**,test/classes/**,tools/**", excludes: "dist/**,**/lib/**/*.jar," + //} + //} + } finally { + attempt = attempt + 1 + sh "ls" + sh "xz -f *_attempt_*.log" + copyToNightlies("*_attempt_*.log.xz", "${build_script_safe_name}/jdk${jdk}/${arch}/") + if (0 == statusCode) { + dir("${build_dir}") { + copyToNightlies("${toCopy}", "${build_script_safe_name}/jdk${jdk}/${arch}/") + } + } + cleanAgent(build_script) + if (0 != statusCode) { + currentBuild.result = 'FAILURE' + error("FAILED '${build_script} ${jdk}' on ${NODE_NAME}") + } else { + echo "Complete '${build_script} ${jdk}' on ${NODE_NAME}" + } + } + } + } +} + +/** + * Saves JUnit results, fails if no reports are found + * Copies (single-file unified) junit results and logfiles to nightlies + * Cleans the agent (docker prune) afterwards + * Stops the pipeline on any failure + **/ +def testJob(test_script, test_type, splits=1, toCopy='') { + //def archs = ['cassandra', 'cassandra-arm64'] // uncomment when ready for arm64 testing + def archs = ['cassandra'] + //def jdks = "${javaVersionsSupported}".split(/,/, -1) // TODO uncomment – this is the real mcoy + def jdks = ['11'] + def pythons = ['3.7'] + def cythons = ['no'] + def tests_per_arch = [:] + + // XXX – the following matrix over arrays should be better done with multi-arrays and recursion + + for (a in archs) { + def arch = a + tests_per_arch[arch] = { + def tests_per_jdk = [:] + for (j in jdks) { + def jdk = j + tests_per_jdk[jdk] = { + def tests_per_python = [:] + for (p in pythons) { + def python = p + tests_per_python[python] = { + def tests_per_cython = [:] + for (c in cythons) { + def cython = c + tests_per_cython[cython] = { + def tests_per_split = [:] + for (s in 1..splits) { + def split = s + tests_per_split[split] = { + _testAxis(test_script, test_type, toCopy, arch, jdk, python, cython, "${split}/${splits}") + } + } + parallel(tests_per_split) + } + } + parallel(tests_per_cython) + } + } + parallel(tests_per_python) + } + } + parallel(tests_per_jdk) + } + } + parallel(tests_per_arch) +} + +/** + * Executes `.build/test-docker.sh ${testDockerImage} ${test_type} ${split}` for the stated arch, jdk, python, cython, and split. + **/ +def _testAxis(test_script, test_type, toCopy, arch, jdk, python, cython, split) { + echo "Spawning `${test_script} ${test_type} ${split} ${jdk}` with arch=${arch} jdk=${jdk} python${python} cython=${cython}" + node(arch) { + branchName: "${test_script} ${test_type} ${split} ${jdk} ${NODE_NAME}" + echo "Starting `${test_script} ${test_type} ${split} ${jdk}` with arch=${arch} jdk=${jdk} python${python} cython=${cython} on ${NODE_NAME}" + cleanWs() + checkout scm + tool type: 'jdk', name: "jdk_${jdk}_latest" + // FIXME python – need a tool type (like jdk above) + // FIXME cython – need a tool type (like jdk above) + def statusCode = 0, attempt = 1 + retry(2) { + if (attempt > 1) { sleep(60 * attempt) } + def logfile = "${JOB_NAME}_${BUILD_NUMBER}_${test_type}_jdk${jdk}_python_${python}_${cython}_${arch}_attempt_${attempt}.log" + try { + dir("build") { + unstash name: "${arch}_${jdk}" + } + echo "Executing `${test_script} ${test_type} ${split} ${jdk} 2>&1 | tee ${logfile}` on ${NODE_NAME} with jdk=${jdk} python=${python} cython=${cython}" + statusCode = sh returnStatus:true, script:"${test_script} ${test_type} ${split} ${jdk} 2>&1 | tee ${logfile}" + } finally { + attempt = attempt + 1 + if (0 == statusCode) { + junit testResults: '**/build/test/**/TEST*.xml,**/cqlshlib.xml,**/nosetests.xml', testDataPublishers: [[$class: 'StabilityTestDataPublisher']] + } else { + toCopy = "" + } + sh "xz -f *_attempt_*.log" + copyToNightlies("*_attempt_*.log.xz,console.log.xz,TESTS-TestSuites.xml.xz,build/test/logs/**,${toCopy}", "${test_type}/${arch}/jdk${jdk}/python${python}/cython_${cython}/" + "split_${split}".replace("/", "_")) + cleanAgent(test_script) + if (0 != statusCode) { + currentBuild.result = 'FAILURE' + error("FAILED `${test_script} ${test_type} ${split} ${jdk}` with arch=${arch} jdk=${jdk} python=${python} cython=${cython} on ${NODE_NAME}") + } else { + echo "Complete `${test_script} ${test_type} ${split} ${jdk}` with arch=${arch} jdk=${jdk} python=${python} cython=${cython} on ${NODE_NAME}" + } + } + } + if (build_result.result != 'SUCCESS') unstable("${build_name} failures") + if (build_result.result == 'ABORTED' && currentBuild.result != 'FAILURE') currentBuild.result='ABORTED' + if (build_result.result == 'FAILURE') currentBuild.result='FAILURE' + } +} + +def copyToNightlies(sourceFiles, remoteDirectory='') { + if (isCanonical()) { + def remotePath = remoteDirectory.startsWith("cassandra/") ? "${remoteDirectory}" : "cassandra/${JOB_NAME}/${BUILD_NUMBER}/${remoteDirectory}" + def attempt = 1 + retry(9) { + if (attempt > 1) { sleep(60 * attempt) } + sshPublisher( + continueOnError: true, failOnError: false, + publishers: [ + sshPublisherDesc( + configName: "Nightlies", + transfers: [ sshTransfer( sourceFiles: sourceFiles, remoteDirectory: remotePath) ] + ) + ]) + } + echo "archived to https://nightlies.apache.org/${remotePath}" + } +} + +def cleanAgent(job_name) { + if (isCanonical()) { + def maxJobHours = 12 + echo "Cleaning project, processes, docker for '${job_name}' on ${NODE_NAME}…" ; + sh """ + git clean -qxdff -e build/test/jmh-result.json || true; + if pgrep -xa docker || pgrep -af "build/docker" || pgrep -af "cassandra-builds/build-scripts" ; then docker system prune --all --force --filter "until=${maxJobHours}h" || true ; else docker system prune --force --volumes || true ; fi; + """ + } +} + +// CASSANDRA-18130 +def saveAgentReport(build_name) { + if (isCanonical()) { + // + // echo "Updating disk usage report…"; + // sh """ + // ( echo "----" ; + // echo \$(date) ; + // echo "${JOB_NAME} ${BUILD_NUMBER} ${build_name}" ; + // du -xm / 2>/dev/null | sort -rn | head -n 30 ; + // df -h ) | tee -a \$(date +"%Y%m%d%H%M")-disk-usage-stats.txt + // """ + // copyToNightlies("*-disk-usage-stats.txt", "cassandra/agents/${NODE_NAME}/disk-usage/") + // sh 'rm *-disk-usage-stats.txt' + } +} + +///////////////////////////////////////// +////// scripting support for summary //// +///////////////////////////////////////// + +// FIXME – we need first to collect all the test result files from each job, putting them under buid/test/output/ +def generateUnifiedTestReport() { + sh "ant generate-unified-test-report" + sh "xz -f build/TESTS-TestSuites.xml" +} + +def collectConsoleLog() { + sh "wget --retry-connrefused --waitretry=1 \"\${BUILD_URL}/timestamps/?time=HH:mm:ss&timeZone=UTC&appendLog\" -qO console.log || echo wget failed" + sh "xz -f console.log" +} + +def copyTestResults(build_name, build_number) { + try { + step([$class: 'CopyArtifact', + projectName: "${build_name}", + optional: true, + fingerprintArtifacts: true, + selector: specific("${build_number}"), + target: build_name]); + } catch (Exception ex) { + echo 'Exception occurred getting test results for ' + build_name + '#' + build_number + ex.toString() + } +} + +def sendNotifications() { + if (isPostCommit() && isCanonical()) { + // the following is expected only to work on ci-cassandra.apache.org + try { + script { + changes = formatChangeLogChanges(currentBuild.changeSets) + echo "changes: ${changes}" + } + slackSend channel: '#cassandra-builds', message: ":apache: <${BUILD_URL}|${currentBuild.fullDisplayName}> completed: ${currentBuild.result}. \n${changes}" + emailext to: 'builds@cassandra.apache.org', subject: "Build complete: ${currentBuild.fullDisplayName} [${currentBuild.result}] ${GIT_COMMIT}", presendScript: 'msg.removeHeader("In-Reply-To"); msg.removeHeader("References")', body: emailContent() + } catch (Exception ex) { + echo 'failed to send notifications ' + ex.toString() + } + } +} + +def formatChangeLogChanges(changeLogSets) { + def result = '' + for (int i = 0; i < changeLogSets.size(); i++) { + def entries = changeLogSets[i].items + for (int j = 0; j < entries.length; j++) { + def entry = entries[j] + result = result + "${entry.commitId} by ${entry.author} on ${new Date(entry.timestamp)}: ${entry.msg}\n" + } + } + return result +} + +def emailContent() { + return ''' + ------------------------------------------------------------------------------- + Build ${ENV,var="JOB_NAME"} #${BUILD_NUMBER} ${BUILD_STATUS} + URL: ${BUILD_URL} + ------------------------------------------------------------------------------- + Changes: + ${CHANGES} + ------------------------------------------------------------------------------- + Failed Tests: + ${FAILED_TESTS,maxTests=500,showMessage=false,showStack=false} + ------------------------------------------------------------------------------- + For complete test report and logs see https://nightlies.apache.org/cassandra/${JOB_NAME}/${BUILD_NUMBER}/ + ''' +} From beaf074f1d73fc7e9f61cab28a3549b9d8e808c1 Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 19 Sep 2023 15:59:03 +0530 Subject: [PATCH 135/426] renamed file --- .jenkins/job/{dsljob-copy.jenkins => dsljobcopy.jenkins} | 2 +- .jenkins/{pipeline-copy.jenkins => pipelinecopy.jenkins} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename .jenkins/job/{dsljob-copy.jenkins => dsljobcopy.jenkins} (92%) rename .jenkins/{pipeline-copy.jenkins => pipelinecopy.jenkins} (100%) diff --git a/.jenkins/job/dsljob-copy.jenkins b/.jenkins/job/dsljobcopy.jenkins similarity index 92% rename from .jenkins/job/dsljob-copy.jenkins rename to .jenkins/job/dsljobcopy.jenkins index 4132f47437a2..adfaf3ccaa88 100644 --- a/.jenkins/job/dsljob-copy.jenkins +++ b/.jenkins/job/dsljobcopy.jenkins @@ -27,7 +27,7 @@ pipelineJob('k8s-e2e') { branches('*/infracloud/cassandra-5.0') } } - scriptPath('.jenkins/pipeline-copy.jenkins') + scriptPath('.jenkins/pipelinecopy.jenkins') } } } diff --git a/.jenkins/pipeline-copy.jenkins b/.jenkins/pipelinecopy.jenkins similarity index 100% rename from .jenkins/pipeline-copy.jenkins rename to .jenkins/pipelinecopy.jenkins From fa7f4878dca92d8e5d687a7770eb31ac795d5c92 Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 19 Sep 2023 16:11:09 +0530 Subject: [PATCH 136/426] renamed file --- .jenkins/pipelinecopy.jenkins | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.jenkins/pipelinecopy.jenkins b/.jenkins/pipelinecopy.jenkins index 001c129baf31..d5526c78f9e7 100644 --- a/.jenkins/pipelinecopy.jenkins +++ b/.jenkins/pipelinecopy.jenkins @@ -117,13 +117,13 @@ pipeline { containers: - name: bullseye image: apache/cassandra-bullseye-build:5687c7b6dcee1866f97a493aef77794f - command: - - 'bash' - - '-c' - - | - "export ANT_OPTS=\"-Dbuild.dir=\dist ${CASSANDRA_DOCKER_ANT_OPTS}\" ; \ - source /home/build/cassandra/.build/docker/_set_java.sh 11 ; \ - /home/build/cassandra/.build/build-jar.sh ${@:4} ; exit \$? " + command: ["bash", "-c"] + args: + - > + export ANT_OPTS="-Dbuild.dir=/dist ${CASSANDRA_DOCKER_ANT_OPTS}" ; + source /home/build/cassandra/.build/docker/_set_java.sh 11 ; + /home/build/cassandra/.build/build-jar.sh "${@:4}" ; + exit $? volumeMounts: - name: cass-dir mountPath: /home/build/cassandra From 716c53b68fd486af07012f55a1d578a33d9f4626 Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 19 Sep 2023 16:13:56 +0530 Subject: [PATCH 137/426] updated file --- .jenkins/pipelinecopy.jenkins | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.jenkins/pipelinecopy.jenkins b/.jenkins/pipelinecopy.jenkins index d5526c78f9e7..75ed3812448d 100644 --- a/.jenkins/pipelinecopy.jenkins +++ b/.jenkins/pipelinecopy.jenkins @@ -145,16 +145,16 @@ pipeline { ''' } } - parallel { - stage('artifacts') { - steps { + //parallel { + //stage('artifacts') { + //steps { sh 'echo "starting artifacts stage"' //buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") - sh 'echo "finishing stage artifacts"' + //sh 'echo "finishing stage artifacts"' - } - } - } + //} + //} + //} } stage('Test') { parallel { From 1b2947fd4660b1ea490d9387218c99dc927db013 Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 19 Sep 2023 16:15:52 +0530 Subject: [PATCH 138/426] updated file --- .jenkins/pipelinecopy.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipelinecopy.jenkins b/.jenkins/pipelinecopy.jenkins index 75ed3812448d..53816a95516f 100644 --- a/.jenkins/pipelinecopy.jenkins +++ b/.jenkins/pipelinecopy.jenkins @@ -148,7 +148,7 @@ pipeline { //parallel { //stage('artifacts') { //steps { - sh 'echo "starting artifacts stage"' + //sh 'echo "starting artifacts stage"' //buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") //sh 'echo "finishing stage artifacts"' From b7577004264e663aedbb8d93243f4f3186394256 Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 19 Sep 2023 16:20:50 +0530 Subject: [PATCH 139/426] updated file --- .jenkins/pipelinecopy.jenkins | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.jenkins/pipelinecopy.jenkins b/.jenkins/pipelinecopy.jenkins index 53816a95516f..50a9643ac776 100644 --- a/.jenkins/pipelinecopy.jenkins +++ b/.jenkins/pipelinecopy.jenkins @@ -110,7 +110,9 @@ pipeline { } stage('Builds') { - agent { + parallel { + stage('artifacts') { + agent { kubernetes { yaml ''' spec: @@ -144,7 +146,9 @@ pipeline { ''' } - } + } + } + } //parallel { //stage('artifacts') { //steps { From 32e09da4c4ab1e39327e3ff937cc28f34282a79e Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 19 Sep 2023 16:22:59 +0530 Subject: [PATCH 140/426] updated file --- .jenkins/pipelinecopy.jenkins | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.jenkins/pipelinecopy.jenkins b/.jenkins/pipelinecopy.jenkins index 50a9643ac776..6373291f4e9f 100644 --- a/.jenkins/pipelinecopy.jenkins +++ b/.jenkins/pipelinecopy.jenkins @@ -142,10 +142,12 @@ pipeline { path: ~/.m2/repository/ - name: dist-dir hostPath: - path: ~/jenkins/apache/cassandra/build - + path: ~/jenkins/apache/cassandra/build ''' } + steps { + sh 'echo "artifacts stage"' + } } } } From 36ddd012443277f0cee0716a40ac12b331c32d11 Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 19 Sep 2023 16:28:09 +0530 Subject: [PATCH 141/426] updated file --- .jenkins/pipelinecopy.jenkins | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.jenkins/pipelinecopy.jenkins b/.jenkins/pipelinecopy.jenkins index 6373291f4e9f..547ed187e2bb 100644 --- a/.jenkins/pipelinecopy.jenkins +++ b/.jenkins/pipelinecopy.jenkins @@ -145,11 +145,12 @@ pipeline { path: ~/jenkins/apache/cassandra/build ''' } + } steps { sh 'echo "artifacts stage"' } } - } + } } //parallel { //stage('artifacts') { From 0a1e8e3ce8ddb4b0db8b7a720bf215c311748848 Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 19 Sep 2023 16:29:20 +0530 Subject: [PATCH 142/426] updated file --- .jenkins/pipelinecopy.jenkins | 1 - 1 file changed, 1 deletion(-) diff --git a/.jenkins/pipelinecopy.jenkins b/.jenkins/pipelinecopy.jenkins index 547ed187e2bb..096472b9f40c 100644 --- a/.jenkins/pipelinecopy.jenkins +++ b/.jenkins/pipelinecopy.jenkins @@ -150,7 +150,6 @@ pipeline { sh 'echo "artifacts stage"' } } - } } //parallel { //stage('artifacts') { From c3f1d6708545e2241271f1a2a84bf2c6a3c98384 Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 19 Sep 2023 16:30:52 +0530 Subject: [PATCH 143/426] updated file --- .jenkins/pipelinecopy.jenkins | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.jenkins/pipelinecopy.jenkins b/.jenkins/pipelinecopy.jenkins index 096472b9f40c..d26695a2a538 100644 --- a/.jenkins/pipelinecopy.jenkins +++ b/.jenkins/pipelinecopy.jenkins @@ -78,8 +78,8 @@ pipeline { tty: true securityContext: privileged: true - nodeSelector: - gke-node: first + //nodeSelector: + //gke-node: first volumes: - name: docker-socket hostPath: From 3c5cdf6aa59d9156bd51fc5f5ad06967b832924d Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 19 Sep 2023 17:22:40 +0530 Subject: [PATCH 144/426] updated file --- .jenkins/pipelinecopy.jenkins | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.jenkins/pipelinecopy.jenkins b/.jenkins/pipelinecopy.jenkins index d26695a2a538..f49134d8b59a 100644 --- a/.jenkins/pipelinecopy.jenkins +++ b/.jenkins/pipelinecopy.jenkins @@ -44,7 +44,7 @@ pipeline { agent { kubernetes { label 'cassandra' - defaultContainer 'jnlp' + //defaultContainer 'jnlp' yaml ''' apiVersion: v1 kind: Pod @@ -114,6 +114,7 @@ pipeline { stage('artifacts') { agent { kubernetes { + label "artifacts" yaml ''' spec: containers: From 5fef6937f222e2dd0b5dd31fc4874c9729f8c5b1 Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 19 Sep 2023 17:32:50 +0530 Subject: [PATCH 145/426] updated file --- .jenkins/pipelinecopy.jenkins | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.jenkins/pipelinecopy.jenkins b/.jenkins/pipelinecopy.jenkins index f49134d8b59a..a8261ecd982e 100644 --- a/.jenkins/pipelinecopy.jenkins +++ b/.jenkins/pipelinecopy.jenkins @@ -148,7 +148,12 @@ pipeline { } } steps { - sh 'echo "artifacts stage"' + container('bulleseye') { + script { + sh 'echo "artifacts stage"' + } + } + } } } From a117106793ad7c73f4e0db6051a8ca14f69d0566 Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 19 Sep 2023 17:51:33 +0530 Subject: [PATCH 146/426] updated file --- .jenkins/pipelinecopy.jenkins | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.jenkins/pipelinecopy.jenkins b/.jenkins/pipelinecopy.jenkins index a8261ecd982e..1812ce931a61 100644 --- a/.jenkins/pipelinecopy.jenkins +++ b/.jenkins/pipelinecopy.jenkins @@ -118,6 +118,24 @@ pipeline { yaml ''' spec: containers: + - name: jnlp + image: richamishra006/apache-k8s-agent:v31 + command: + - /bin/sh + - -c + - /usr/local/bin/jenkins-agent + volumeMounts: + - name: docker-socket + mountPath: /var/run/docker.sock + tty: true + securityContext: + privileged: true + //nodeSelector: + //gke-node: first + volumes: + - name: docker-socket + hostPath: + path: /var/run/docker.sock - name: bullseye image: apache/cassandra-bullseye-build:5687c7b6dcee1866f97a493aef77794f command: ["bash", "-c"] From 86bdf31dec95df4243d3ef2adaadc14f6eed2b24 Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 19 Sep 2023 18:03:39 +0530 Subject: [PATCH 147/426] updated file --- .jenkins/pipelinecopy.jenkins | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.jenkins/pipelinecopy.jenkins b/.jenkins/pipelinecopy.jenkins index 1812ce931a61..6a8c99d24a1f 100644 --- a/.jenkins/pipelinecopy.jenkins +++ b/.jenkins/pipelinecopy.jenkins @@ -132,10 +132,6 @@ pipeline { privileged: true //nodeSelector: //gke-node: first - volumes: - - name: docker-socket - hostPath: - path: /var/run/docker.sock - name: bullseye image: apache/cassandra-bullseye-build:5687c7b6dcee1866f97a493aef77794f command: ["bash", "-c"] @@ -161,7 +157,10 @@ pipeline { path: ~/.m2/repository/ - name: dist-dir hostPath: - path: ~/jenkins/apache/cassandra/build + path: ~/jenkins/apache/cassandra/build + - name: docker-socket + hostPath: + path: /var/run/docker.sock ''' } } From 6ddf0e32d99a8cca721a86cd176c10cec3f0bca8 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Tue, 19 Sep 2023 18:10:19 +0530 Subject: [PATCH 148/426] update pipelinecopy jenkins file k8s agent yaml --- .jenkins/pipelinecopy.jenkins | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.jenkins/pipelinecopy.jenkins b/.jenkins/pipelinecopy.jenkins index 6a8c99d24a1f..44f1cddd4366 100644 --- a/.jenkins/pipelinecopy.jenkins +++ b/.jenkins/pipelinecopy.jenkins @@ -116,7 +116,7 @@ pipeline { kubernetes { label "artifacts" yaml ''' - spec: + spec: containers: - name: jnlp image: richamishra006/apache-k8s-agent:v31 @@ -130,8 +130,6 @@ pipeline { tty: true securityContext: privileged: true - //nodeSelector: - //gke-node: first - name: bullseye image: apache/cassandra-bullseye-build:5687c7b6dcee1866f97a493aef77794f command: ["bash", "-c"] From 897edb680b3c783591301268966b7aea83f03d84 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Tue, 19 Sep 2023 18:18:31 +0530 Subject: [PATCH 149/426] update pipelinecopy jenkins file --- .jenkins/pipelinecopy.jenkins | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.jenkins/pipelinecopy.jenkins b/.jenkins/pipelinecopy.jenkins index 44f1cddd4366..3cfa1154c9e2 100644 --- a/.jenkins/pipelinecopy.jenkins +++ b/.jenkins/pipelinecopy.jenkins @@ -149,13 +149,13 @@ pipeline { volumes: - name: cass-dir hostPath: - path: ~/jenkins/apache/cassandra + path: /home/nishant/jenkins/apache/cassandra - name: m2-dir hostPath: - path: ~/.m2/repository/ + path: /home/nishant/.m2/repository/ - name: dist-dir hostPath: - path: ~/jenkins/apache/cassandra/build + path: /home/nishant/jenkins/apache/cassandra/build - name: docker-socket hostPath: path: /var/run/docker.sock From fd7ea3861d337774e5de2b5502bedacec0c73813 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Tue, 19 Sep 2023 18:37:09 +0530 Subject: [PATCH 150/426] update pipelinecopy jenkins file --- .jenkins/pipelinecopy.jenkins | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.jenkins/pipelinecopy.jenkins b/.jenkins/pipelinecopy.jenkins index 3cfa1154c9e2..9e597388dd0b 100644 --- a/.jenkins/pipelinecopy.jenkins +++ b/.jenkins/pipelinecopy.jenkins @@ -132,13 +132,13 @@ pipeline { privileged: true - name: bullseye image: apache/cassandra-bullseye-build:5687c7b6dcee1866f97a493aef77794f - command: ["bash", "-c"] - args: - - > - export ANT_OPTS="-Dbuild.dir=/dist ${CASSANDRA_DOCKER_ANT_OPTS}" ; - source /home/build/cassandra/.build/docker/_set_java.sh 11 ; - /home/build/cassandra/.build/build-jar.sh "${@:4}" ; - exit $? + command: ["bash", "-c", "sleep 3000"] + //args: + //- > + // export ANT_OPTS="-Dbuild.dir=/dist ${CASSANDRA_DOCKER_ANT_OPTS}" ; + // source /home/build/cassandra/.build/docker/_set_java.sh 11 ; + // /home/build/cassandra/.build/build-jar.sh "${@:4}" ; + // exit $? volumeMounts: - name: cass-dir mountPath: /home/build/cassandra From c0a8fcefcc5b8951bd85f508cb7083e3bd731e93 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Tue, 19 Sep 2023 18:52:31 +0530 Subject: [PATCH 151/426] update pipeline.jenkins k8s agent config --- .jenkins/pipelinecopy.jenkins | 30 ++++++++++++------------------ 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/.jenkins/pipelinecopy.jenkins b/.jenkins/pipelinecopy.jenkins index 9e597388dd0b..261340ddb080 100644 --- a/.jenkins/pipelinecopy.jenkins +++ b/.jenkins/pipelinecopy.jenkins @@ -133,12 +133,6 @@ pipeline { - name: bullseye image: apache/cassandra-bullseye-build:5687c7b6dcee1866f97a493aef77794f command: ["bash", "-c", "sleep 3000"] - //args: - //- > - // export ANT_OPTS="-Dbuild.dir=/dist ${CASSANDRA_DOCKER_ANT_OPTS}" ; - // source /home/build/cassandra/.build/docker/_set_java.sh 11 ; - // /home/build/cassandra/.build/build-jar.sh "${@:4}" ; - // exit $? volumeMounts: - name: cass-dir mountPath: /home/build/cassandra @@ -147,18 +141,18 @@ pipeline { - name: dist-dir mountPath: /dist volumes: - - name: cass-dir - hostPath: - path: /home/nishant/jenkins/apache/cassandra - - name: m2-dir - hostPath: - path: /home/nishant/.m2/repository/ - - name: dist-dir - hostPath: - path: /home/nishant/jenkins/apache/cassandra/build - - name: docker-socket - hostPath: - path: /var/run/docker.sock + - name: cass-dir + hostPath: + path: /home/nishant/jenkins/apache/cassandra + - name: m2-dir + hostPath: + path: /home/nishant/.m2/repository/ + - name: dist-dir + hostPath: + path: /home/nishant/jenkins/apache/cassandra/build + - name: docker-socket + hostPath: + path: /var/run/docker.sock ''' } } From a36bcb8a970d738d24f67f94af8d1b0aaad65591 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Tue, 19 Sep 2023 18:59:01 +0530 Subject: [PATCH 152/426] update pipelinecopy jenkins file --- .jenkins/pipelinecopy.jenkins | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.jenkins/pipelinecopy.jenkins b/.jenkins/pipelinecopy.jenkins index 261340ddb080..f48d17bd2d26 100644 --- a/.jenkins/pipelinecopy.jenkins +++ b/.jenkins/pipelinecopy.jenkins @@ -140,6 +140,8 @@ pipeline { mountPath: /home/build/.m2/repository - name: dist-dir mountPath: /dist + securityContext: + runAsUser: 1000 volumes: - name: cass-dir hostPath: From 25425e66d69b4d14e99088852f3e499314f6e2af Mon Sep 17 00:00:00 2001 From: Nbarola Date: Tue, 19 Sep 2023 19:03:25 +0530 Subject: [PATCH 153/426] update pipelinecopy jenkins file --- .jenkins/pipelinecopy.jenkins | 1 + 1 file changed, 1 insertion(+) diff --git a/.jenkins/pipelinecopy.jenkins b/.jenkins/pipelinecopy.jenkins index f48d17bd2d26..803eca4a1a89 100644 --- a/.jenkins/pipelinecopy.jenkins +++ b/.jenkins/pipelinecopy.jenkins @@ -142,6 +142,7 @@ pipeline { mountPath: /dist securityContext: runAsUser: 1000 + runAsGroup: 1000 volumes: - name: cass-dir hostPath: From 88e9a2ba968d7dc81cef91d2c035337c49267b58 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Wed, 20 Sep 2023 11:32:27 +0530 Subject: [PATCH 154/426] update jenkinscopy jenkins file --- .jenkins/pipelinecopy.jenkins | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.jenkins/pipelinecopy.jenkins b/.jenkins/pipelinecopy.jenkins index 803eca4a1a89..10256e4a40d7 100644 --- a/.jenkins/pipelinecopy.jenkins +++ b/.jenkins/pipelinecopy.jenkins @@ -141,8 +141,7 @@ pipeline { - name: dist-dir mountPath: /dist securityContext: - runAsUser: 1000 - runAsGroup: 1000 + runAsUser: 0 volumes: - name: cass-dir hostPath: From bddeb8cd679d4431dfae7f723d4ad96bc9b4cd88 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Wed, 20 Sep 2023 11:45:24 +0530 Subject: [PATCH 155/426] update jenkinscopy jenkins file --- .jenkins/pipelinecopy.jenkins | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.jenkins/pipelinecopy.jenkins b/.jenkins/pipelinecopy.jenkins index 10256e4a40d7..afa41035de29 100644 --- a/.jenkins/pipelinecopy.jenkins +++ b/.jenkins/pipelinecopy.jenkins @@ -132,7 +132,13 @@ pipeline { privileged: true - name: bullseye image: apache/cassandra-bullseye-build:5687c7b6dcee1866f97a493aef77794f - command: ["bash", "-c", "sleep 3000"] + command: ["bash", "-c"] + args: + - > + export ANT_OPTS="-Dbuild.dir=/dist ${CASSANDRA_DOCKER_ANT_OPTS}" ; + source /home/build/cassandra/.build/docker/_set_java.sh 11 ; + /home/build/cassandra/.build/build-jar.sh "${@:4}" ; + exit $? volumeMounts: - name: cass-dir mountPath: /home/build/cassandra @@ -141,7 +147,7 @@ pipeline { - name: dist-dir mountPath: /dist securityContext: - runAsUser: 0 + runAsUser: 1000 volumes: - name: cass-dir hostPath: From 20bdac6c9fa9de86c00eb25eef40d798350a0f55 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Wed, 20 Sep 2023 11:57:22 +0530 Subject: [PATCH 156/426] update jenkinscopy jenkins file --- .jenkins/pipelinecopy.jenkins | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.jenkins/pipelinecopy.jenkins b/.jenkins/pipelinecopy.jenkins index afa41035de29..f48d17bd2d26 100644 --- a/.jenkins/pipelinecopy.jenkins +++ b/.jenkins/pipelinecopy.jenkins @@ -132,13 +132,7 @@ pipeline { privileged: true - name: bullseye image: apache/cassandra-bullseye-build:5687c7b6dcee1866f97a493aef77794f - command: ["bash", "-c"] - args: - - > - export ANT_OPTS="-Dbuild.dir=/dist ${CASSANDRA_DOCKER_ANT_OPTS}" ; - source /home/build/cassandra/.build/docker/_set_java.sh 11 ; - /home/build/cassandra/.build/build-jar.sh "${@:4}" ; - exit $? + command: ["bash", "-c", "sleep 3000"] volumeMounts: - name: cass-dir mountPath: /home/build/cassandra From 5596ddc8243e5be6dfaf85765b61bae7f7905968 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Wed, 20 Sep 2023 12:05:53 +0530 Subject: [PATCH 157/426] update jenkinscopy jenkins file --- .jenkins/pipelinecopy.jenkins | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.jenkins/pipelinecopy.jenkins b/.jenkins/pipelinecopy.jenkins index f48d17bd2d26..afa41035de29 100644 --- a/.jenkins/pipelinecopy.jenkins +++ b/.jenkins/pipelinecopy.jenkins @@ -132,7 +132,13 @@ pipeline { privileged: true - name: bullseye image: apache/cassandra-bullseye-build:5687c7b6dcee1866f97a493aef77794f - command: ["bash", "-c", "sleep 3000"] + command: ["bash", "-c"] + args: + - > + export ANT_OPTS="-Dbuild.dir=/dist ${CASSANDRA_DOCKER_ANT_OPTS}" ; + source /home/build/cassandra/.build/docker/_set_java.sh 11 ; + /home/build/cassandra/.build/build-jar.sh "${@:4}" ; + exit $? volumeMounts: - name: cass-dir mountPath: /home/build/cassandra From 4e066503a23a90a811851a8e48d613ace5b6cf65 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Wed, 20 Sep 2023 12:14:20 +0530 Subject: [PATCH 158/426] update jenkinscopy jenkins file --- .jenkins/pipelinecopy.jenkins | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.jenkins/pipelinecopy.jenkins b/.jenkins/pipelinecopy.jenkins index afa41035de29..417f2801359c 100644 --- a/.jenkins/pipelinecopy.jenkins +++ b/.jenkins/pipelinecopy.jenkins @@ -132,13 +132,16 @@ pipeline { privileged: true - name: bullseye image: apache/cassandra-bullseye-build:5687c7b6dcee1866f97a493aef77794f - command: ["bash", "-c"] + command: + - bash + - "-c" args: - - > - export ANT_OPTS="-Dbuild.dir=/dist ${CASSANDRA_DOCKER_ANT_OPTS}" ; - source /home/build/cassandra/.build/docker/_set_java.sh 11 ; - /home/build/cassandra/.build/build-jar.sh "${@:4}" ; - exit $? + - | + /home/build/cassandra/.build/docker/_create_user.sh build 1000 1000 ; + export ANT_OPTS="-Dbuild.dir=/dist ${CASSANDRA_DOCKER_ANT_OPTS}" ; + source /home/build/cassandra/.build/docker/_set_java.sh 11 ; + /home/build/cassandra/.build/build-jar.sh "${@:4}" ; + exit $? volumeMounts: - name: cass-dir mountPath: /home/build/cassandra From cb21a939679f1dac0600fda2f7ebfdfdec0222af Mon Sep 17 00:00:00 2001 From: Nbarola Date: Wed, 20 Sep 2023 12:15:04 +0530 Subject: [PATCH 159/426] update jenkinscopy jenkins file --- .jenkins/pipelinecopy.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipelinecopy.jenkins b/.jenkins/pipelinecopy.jenkins index 417f2801359c..15a4cd6dcc65 100644 --- a/.jenkins/pipelinecopy.jenkins +++ b/.jenkins/pipelinecopy.jenkins @@ -140,7 +140,7 @@ pipeline { /home/build/cassandra/.build/docker/_create_user.sh build 1000 1000 ; export ANT_OPTS="-Dbuild.dir=/dist ${CASSANDRA_DOCKER_ANT_OPTS}" ; source /home/build/cassandra/.build/docker/_set_java.sh 11 ; - /home/build/cassandra/.build/build-jar.sh "${@:4}" ; + /home/build/cassandra/.build/build-jars.sh "${@:4}" ; exit $? volumeMounts: - name: cass-dir From c4325aa74502f615091007834929b3dc88ae9664 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Wed, 20 Sep 2023 12:20:24 +0530 Subject: [PATCH 160/426] update jenkinscopy jenkins file --- .jenkins/pipelinecopy.jenkins | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.jenkins/pipelinecopy.jenkins b/.jenkins/pipelinecopy.jenkins index 15a4cd6dcc65..6524248a6492 100644 --- a/.jenkins/pipelinecopy.jenkins +++ b/.jenkins/pipelinecopy.jenkins @@ -138,6 +138,7 @@ pipeline { args: - | /home/build/cassandra/.build/docker/_create_user.sh build 1000 1000 ; + su build ; export ANT_OPTS="-Dbuild.dir=/dist ${CASSANDRA_DOCKER_ANT_OPTS}" ; source /home/build/cassandra/.build/docker/_set_java.sh 11 ; /home/build/cassandra/.build/build-jars.sh "${@:4}" ; @@ -150,7 +151,7 @@ pipeline { - name: dist-dir mountPath: /dist securityContext: - runAsUser: 1000 + runAsUser: 0 volumes: - name: cass-dir hostPath: From 4a09259796da7d982aeaa3c383053921990b2580 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Wed, 20 Sep 2023 12:30:34 +0530 Subject: [PATCH 161/426] update build-jars script from sh to bash --- .build/build-jars.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.build/build-jars.sh b/.build/build-jars.sh index 66e051401571..71ce4a0eb766 100755 --- a/.build/build-jars.sh +++ b/.build/build-jars.sh @@ -1,4 +1,4 @@ -#!/bin/sh -e -x +#!/bin/bash -e # 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 From c4748d38d035a623b3176a8848049c3ba1e2f475 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Wed, 20 Sep 2023 12:36:50 +0530 Subject: [PATCH 162/426] update jenkinscopy jenkins file --- .jenkins/pipelinecopy.jenkins | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.jenkins/pipelinecopy.jenkins b/.jenkins/pipelinecopy.jenkins index 6524248a6492..19c8cb2400eb 100644 --- a/.jenkins/pipelinecopy.jenkins +++ b/.jenkins/pipelinecopy.jenkins @@ -135,14 +135,7 @@ pipeline { command: - bash - "-c" - args: - - | - /home/build/cassandra/.build/docker/_create_user.sh build 1000 1000 ; - su build ; - export ANT_OPTS="-Dbuild.dir=/dist ${CASSANDRA_DOCKER_ANT_OPTS}" ; - source /home/build/cassandra/.build/docker/_set_java.sh 11 ; - /home/build/cassandra/.build/build-jars.sh "${@:4}" ; - exit $? + - "sleep 3000" volumeMounts: - name: cass-dir mountPath: /home/build/cassandra From 0330464abd5b3c2f11656abe4f085e616549bc2d Mon Sep 17 00:00:00 2001 From: Nbarola Date: Wed, 20 Sep 2023 12:41:48 +0530 Subject: [PATCH 163/426] update jenkinscopy jenkins file --- .jenkins/pipelinecopy.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipelinecopy.jenkins b/.jenkins/pipelinecopy.jenkins index 19c8cb2400eb..506993ba26f4 100644 --- a/.jenkins/pipelinecopy.jenkins +++ b/.jenkins/pipelinecopy.jenkins @@ -135,7 +135,7 @@ pipeline { command: - bash - "-c" - - "sleep 3000" + - "sleep 18000" volumeMounts: - name: cass-dir mountPath: /home/build/cassandra From c0f80e7d5ed29d0ca677365cc4a7db7105648dfd Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 20 Sep 2023 15:24:23 +0530 Subject: [PATCH 164/426] updated targets --- .build/jenkins-deployment.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.build/jenkins-deployment.yaml b/.build/jenkins-deployment.yaml index 2ff7f85c257e..0f04424e7154 100644 --- a/.build/jenkins-deployment.yaml +++ b/.build/jenkins-deployment.yaml @@ -106,7 +106,7 @@ spec: runAsUser: 1000 seedJobs: - id: jenkins-operator - targets: ".jenkins/job/*.jenkins" + targets: ".jenkins/job/DslJob.jenkins" description: "Casandra Repo" repositoryBranch: infracloud/cassandra-5.0 repositoryUrl: https://github.com/infracloudio/cassandra.git From cdba7fcfdd19e1edae2deadf87c5c2970badbd92 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Wed, 20 Sep 2023 15:28:57 +0530 Subject: [PATCH 165/426] update jenkinscopy jenkins file --- .jenkins/pipelinecopy.jenkins | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.jenkins/pipelinecopy.jenkins b/.jenkins/pipelinecopy.jenkins index 506993ba26f4..2d202b493225 100644 --- a/.jenkins/pipelinecopy.jenkins +++ b/.jenkins/pipelinecopy.jenkins @@ -145,6 +145,10 @@ pipeline { mountPath: /dist securityContext: runAsUser: 0 + resources: + requests: + cpu: 100m + memory: 1Gi volumes: - name: cass-dir hostPath: From d0ab770ce4c5caad260b8e393b62332b869fceac Mon Sep 17 00:00:00 2001 From: Nbarola Date: Wed, 20 Sep 2023 15:37:09 +0530 Subject: [PATCH 166/426] update jenkinscopy jenkins file --- .jenkins/pipelinecopy.jenkins | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.jenkins/pipelinecopy.jenkins b/.jenkins/pipelinecopy.jenkins index 2d202b493225..4cae60d4d4aa 100644 --- a/.jenkins/pipelinecopy.jenkins +++ b/.jenkins/pipelinecopy.jenkins @@ -132,10 +132,7 @@ pipeline { privileged: true - name: bullseye image: apache/cassandra-bullseye-build:5687c7b6dcee1866f97a493aef77794f - command: - - bash - - "-c" - - "sleep 18000" + command: ["bash", "-c", "sleep 30000"] volumeMounts: - name: cass-dir mountPath: /home/build/cassandra From e74086957f17c4d52e73f97a9983afb9e9a2b1b5 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Wed, 20 Sep 2023 15:44:37 +0530 Subject: [PATCH 167/426] update jenkinscopy jenkins file --- .jenkins/pipelinecopy.jenkins | 1 + 1 file changed, 1 insertion(+) diff --git a/.jenkins/pipelinecopy.jenkins b/.jenkins/pipelinecopy.jenkins index 4cae60d4d4aa..296e16bd8526 100644 --- a/.jenkins/pipelinecopy.jenkins +++ b/.jenkins/pipelinecopy.jenkins @@ -166,6 +166,7 @@ pipeline { container('bulleseye') { script { sh 'echo "artifacts stage"' + sh 'sleep 30000' } } From 2d7bc575ca52e5bbdd0959b3ba15343686a22617 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Wed, 20 Sep 2023 15:47:28 +0530 Subject: [PATCH 168/426] update jenkinscopy jenkins file --- .jenkins/pipelinecopy.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipelinecopy.jenkins b/.jenkins/pipelinecopy.jenkins index 296e16bd8526..db835fb50d0f 100644 --- a/.jenkins/pipelinecopy.jenkins +++ b/.jenkins/pipelinecopy.jenkins @@ -163,7 +163,7 @@ pipeline { } } steps { - container('bulleseye') { + container('bullseye') { script { sh 'echo "artifacts stage"' sh 'sleep 30000' From cafd177a27ed275f62a060ee5614fb84826bafad Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 20 Sep 2023 16:03:10 +0530 Subject: [PATCH 169/426] removed sleep --- .build/docker/_docker_run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.build/docker/_docker_run.sh b/.build/docker/_docker_run.sh index 79d2fea8cb90..bc79bff42823 100755 --- a/.build/docker/_docker_run.sh +++ b/.build/docker/_docker_run.sh @@ -133,7 +133,7 @@ container_id=$(docker run --name ${container_name} -d --security-opt seccomp=unc echo "Running container ${container_name} ${container_id}" -sleep 3600 +#sleep 3600 #docker exec --user root ${container_name} bash -c "\${CASSANDRA_DIR}/.build/docker/_create_user.sh build $(id -u) $(id -g)" docker exec --user root ${container_name} bash -c "/home/build/cassandra/cassandra/.build/docker/_create_user.sh build $(id -u) $(id -g)" docker exec --user build ${container_name} bash -c "${docker_command}" From b422358d96c2c6934b8050448dd4f86776bc699a Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 20 Sep 2023 16:13:01 +0530 Subject: [PATCH 170/426] updated file --- .build/docker/_docker_run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.build/docker/_docker_run.sh b/.build/docker/_docker_run.sh index bc79bff42823..ef4b98f65624 100755 --- a/.build/docker/_docker_run.sh +++ b/.build/docker/_docker_run.sh @@ -118,7 +118,7 @@ container_name="cassandra_${dockerfile/.docker/}_${un_script_name}_jdk${java_ver docker_command="export ANT_OPTS=\"-Dbuild.dir=\${DIST_DIR} ${CASSANDRA_DOCKER_ANT_OPTS}\" ; \ source /home/build/cassandra/cassandra/.build/docker/_set_java.sh ${java_version} ; \ - /home/build/cassandra/cassandra/.build/${run_script} ${@:4} ; exit \$? " + /home/build/cassandra/.build/${run_script} ${@:4} ; exit \$? " # run without the default seccomp profile # re-use the host's maven repository @@ -135,7 +135,7 @@ container_id=$(docker run --name ${container_name} -d --security-opt seccomp=unc echo "Running container ${container_name} ${container_id}" #sleep 3600 #docker exec --user root ${container_name} bash -c "\${CASSANDRA_DIR}/.build/docker/_create_user.sh build $(id -u) $(id -g)" -docker exec --user root ${container_name} bash -c "/home/build/cassandra/cassandra/.build/docker/_create_user.sh build $(id -u) $(id -g)" +docker exec --user root ${container_name} bash -c "/home/build/cassandra/.build/docker/_create_user.sh build $(id -u) $(id -g)" docker exec --user build ${container_name} bash -c "${docker_command}" RETURN=$? From 548218254f98006baa9d5d766be4953fdea081af Mon Sep 17 00:00:00 2001 From: Nbarola Date: Wed, 20 Sep 2023 16:13:06 +0530 Subject: [PATCH 171/426] update jenkinscopy jenkins file --- .jenkins/pipelinecopy.jenkins | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.jenkins/pipelinecopy.jenkins b/.jenkins/pipelinecopy.jenkins index db835fb50d0f..000f63f071be 100644 --- a/.jenkins/pipelinecopy.jenkins +++ b/.jenkins/pipelinecopy.jenkins @@ -132,7 +132,6 @@ pipeline { privileged: true - name: bullseye image: apache/cassandra-bullseye-build:5687c7b6dcee1866f97a493aef77794f - command: ["bash", "-c", "sleep 30000"] volumeMounts: - name: cass-dir mountPath: /home/build/cassandra @@ -166,7 +165,12 @@ pipeline { container('bullseye') { script { sh 'echo "artifacts stage"' - sh 'sleep 30000' + sh 'bash /home/build/cassandra/.build/docker/_create_user.sh build 1000 1000' + sh 'su build' + sh 'ANT_OPTS="-Dbuild.dir=/dist' + sh 'source /home/build/cassandra/.build/docker/_set_java.sh 11' + sh '/home/build/cassandra/.build/build-jars.sh "${@:4}"' + sh 'exit $?' } } From 105c3c2cff571ed09e02bdcc8f553e873ca91557 Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 20 Sep 2023 16:18:28 +0530 Subject: [PATCH 172/426] updated file --- .build/docker/_docker_run.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/.build/docker/_docker_run.sh b/.build/docker/_docker_run.sh index ef4b98f65624..58fc27ff4440 100755 --- a/.build/docker/_docker_run.sh +++ b/.build/docker/_docker_run.sh @@ -136,6 +136,7 @@ echo "Running container ${container_name} ${container_id}" #sleep 3600 #docker exec --user root ${container_name} bash -c "\${CASSANDRA_DIR}/.build/docker/_create_user.sh build $(id -u) $(id -g)" docker exec --user root ${container_name} bash -c "/home/build/cassandra/.build/docker/_create_user.sh build $(id -u) $(id -g)" +sleep 3600 docker exec --user build ${container_name} bash -c "${docker_command}" RETURN=$? From 7902360fe4a316599924fccb8c35047bd54ef0e5 Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 20 Sep 2023 16:36:04 +0530 Subject: [PATCH 173/426] updated file --- .build/build-jars.sh | 2 +- .build/docker/_docker_run.sh | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.build/build-jars.sh b/.build/build-jars.sh index 71ce4a0eb766..cbbe0b5ba932 100755 --- a/.build/build-jars.sh +++ b/.build/build-jars.sh @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/sh -e # 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 diff --git a/.build/docker/_docker_run.sh b/.build/docker/_docker_run.sh index 58fc27ff4440..ef4b98f65624 100755 --- a/.build/docker/_docker_run.sh +++ b/.build/docker/_docker_run.sh @@ -136,7 +136,6 @@ echo "Running container ${container_name} ${container_id}" #sleep 3600 #docker exec --user root ${container_name} bash -c "\${CASSANDRA_DIR}/.build/docker/_create_user.sh build $(id -u) $(id -g)" docker exec --user root ${container_name} bash -c "/home/build/cassandra/.build/docker/_create_user.sh build $(id -u) $(id -g)" -sleep 3600 docker exec --user build ${container_name} bash -c "${docker_command}" RETURN=$? From 3bfb0f68589e1cd66309d61097cd6e4940cf445c Mon Sep 17 00:00:00 2001 From: Nbarola Date: Wed, 20 Sep 2023 16:41:05 +0530 Subject: [PATCH 174/426] update pipelinecopy.jenkins k8s agent config --- .jenkins/pipelinecopy.jenkins | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.jenkins/pipelinecopy.jenkins b/.jenkins/pipelinecopy.jenkins index 000f63f071be..7a8c5f0e9d87 100644 --- a/.jenkins/pipelinecopy.jenkins +++ b/.jenkins/pipelinecopy.jenkins @@ -164,13 +164,13 @@ pipeline { steps { container('bullseye') { script { - sh 'echo "artifacts stage"' - sh 'bash /home/build/cassandra/.build/docker/_create_user.sh build 1000 1000' - sh 'su build' - sh 'ANT_OPTS="-Dbuild.dir=/dist' - sh 'source /home/build/cassandra/.build/docker/_set_java.sh 11' - sh '/home/build/cassandra/.build/build-jars.sh "${@:4}"' - sh 'exit $?' + bash 'echo "artifacts stage"' + bash '/home/build/cassandra/.build/docker/_create_user.sh build 1000 1000' + bash 'su build' + bash 'export ANT_OPTS=-Dbuild.dir=/dist' + bash 'source /home/build/cassandra/.build/docker/_set_java.sh 11' + bash '/home/build/cassandra/.build/build-jars.sh "${@:4}"' + bash 'exit $?' } } From 550b5ccc3b7bb8a226ddac755b5007368a602ad3 Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 20 Sep 2023 16:44:04 +0530 Subject: [PATCH 175/426] updated file --- .jenkins/pipeline.jenkins | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 2b41d099e20c..b2f57921ea73 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -114,10 +114,6 @@ pipeline { stage('artifacts') { steps { sh 'echo "starting artifacts stage"' - //sh 'ls /run/containerd/' - //sh 'ls /var/run/' - //sh 'service docker start' - //sh 'service docker status' buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") sh 'echo "finishing stage artifacts"' @@ -153,7 +149,7 @@ pipeline { } stage('stress') { steps { - //testJob(".build/docker/run-tests.sh", "stress-test", 1) + testJob(".build/docker/run-tests.sh", "stress-test", 1) sh 'echo "stage stress"' } } @@ -350,7 +346,6 @@ def _buildAxis(build_script, toCopy, arch, jdk) { //} } finally { attempt = attempt + 1 - sh "ls" sh "xz -f *_attempt_*.log" copyToNightlies("*_attempt_*.log.xz", "${build_script_safe_name}/jdk${jdk}/${arch}/") if (0 == statusCode) { From 92948e306e8f7ff2e3fa3dcc2d3a4ce3fd58fba2 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Wed, 20 Sep 2023 16:48:31 +0530 Subject: [PATCH 176/426] update pipelinecopy.jenkins k8s agent config --- .jenkins/pipelinecopy.jenkins | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.jenkins/pipelinecopy.jenkins b/.jenkins/pipelinecopy.jenkins index 7a8c5f0e9d87..6199e5093015 100644 --- a/.jenkins/pipelinecopy.jenkins +++ b/.jenkins/pipelinecopy.jenkins @@ -132,6 +132,8 @@ pipeline { privileged: true - name: bullseye image: apache/cassandra-bullseye-build:5687c7b6dcee1866f97a493aef77794f + command: + - cat volumeMounts: - name: cass-dir mountPath: /home/build/cassandra From ea66284791d4869cc0ea1ffe84ad508ef5563763 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Wed, 20 Sep 2023 16:55:39 +0530 Subject: [PATCH 177/426] update pipelinecopy.jenkins k8s agent config --- .jenkins/pipelinecopy.jenkins | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.jenkins/pipelinecopy.jenkins b/.jenkins/pipelinecopy.jenkins index 6199e5093015..762590d58cb8 100644 --- a/.jenkins/pipelinecopy.jenkins +++ b/.jenkins/pipelinecopy.jenkins @@ -132,8 +132,8 @@ pipeline { privileged: true - name: bullseye image: apache/cassandra-bullseye-build:5687c7b6dcee1866f97a493aef77794f - command: - - cat + command: ["tail"] + args: ["-f", "/dev/null"] volumeMounts: - name: cass-dir mountPath: /home/build/cassandra From 0c56aecdcbe1d51f6f306218104d53879e9ef514 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Wed, 20 Sep 2023 17:03:02 +0530 Subject: [PATCH 178/426] update pipelinecopy.jenkins k8s agent config --- .jenkins/pipelinecopy.jenkins | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.jenkins/pipelinecopy.jenkins b/.jenkins/pipelinecopy.jenkins index 762590d58cb8..dc5e4c72a1f9 100644 --- a/.jenkins/pipelinecopy.jenkins +++ b/.jenkins/pipelinecopy.jenkins @@ -166,13 +166,13 @@ pipeline { steps { container('bullseye') { script { - bash 'echo "artifacts stage"' - bash '/home/build/cassandra/.build/docker/_create_user.sh build 1000 1000' - bash 'su build' - bash 'export ANT_OPTS=-Dbuild.dir=/dist' - bash 'source /home/build/cassandra/.build/docker/_set_java.sh 11' - bash '/home/build/cassandra/.build/build-jars.sh "${@:4}"' - bash 'exit $?' + sh 'echo "artifacts stage"' + sh 'bash /home/build/cassandra/.build/docker/_create_user.sh build 1000 1000' + sh 'su build' + sh 'export ANT_OPTS=-Dbuild.dir=/dist' + sh 'source /home/build/cassandra/.build/docker/_set_java.sh 11' + sh 'bash /home/build/cassandra/.build/build-jars.sh "${@:4}"' + sh 'exit $?' } } From d3e9c1f820d7ef7d86b7dbfea6c2807b8bd8ac5a Mon Sep 17 00:00:00 2001 From: Nbarola Date: Wed, 20 Sep 2023 17:11:09 +0530 Subject: [PATCH 179/426] update pipelinecopy.jenkins k8s agent config --- .jenkins/pipelinecopy.jenkins | 1 + 1 file changed, 1 insertion(+) diff --git a/.jenkins/pipelinecopy.jenkins b/.jenkins/pipelinecopy.jenkins index dc5e4c72a1f9..0dc0f1320302 100644 --- a/.jenkins/pipelinecopy.jenkins +++ b/.jenkins/pipelinecopy.jenkins @@ -170,6 +170,7 @@ pipeline { sh 'bash /home/build/cassandra/.build/docker/_create_user.sh build 1000 1000' sh 'su build' sh 'export ANT_OPTS=-Dbuild.dir=/dist' + sh 'sleep 3000' sh 'source /home/build/cassandra/.build/docker/_set_java.sh 11' sh 'bash /home/build/cassandra/.build/build-jars.sh "${@:4}"' sh 'exit $?' From 54693759a252f89e4fd854f1a40622f7ff9b1e6e Mon Sep 17 00:00:00 2001 From: Nbarola Date: Wed, 20 Sep 2023 17:19:24 +0530 Subject: [PATCH 180/426] update pipelinecopy.jenkins k8s agent config --- .jenkins/pipelinecopy.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipelinecopy.jenkins b/.jenkins/pipelinecopy.jenkins index 0dc0f1320302..41f5d2d043c0 100644 --- a/.jenkins/pipelinecopy.jenkins +++ b/.jenkins/pipelinecopy.jenkins @@ -171,7 +171,7 @@ pipeline { sh 'su build' sh 'export ANT_OPTS=-Dbuild.dir=/dist' sh 'sleep 3000' - sh 'source /home/build/cassandra/.build/docker/_set_java.sh 11' + sh '. /home/build/cassandra/.build/docker/_set_java.sh 11' sh 'bash /home/build/cassandra/.build/build-jars.sh "${@:4}"' sh 'exit $?' } From 3b260b23f4fb692ecfed97b48140ad9f8db7e8aa Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 20 Sep 2023 17:19:50 +0530 Subject: [PATCH 181/426] updated file --- .build/docker/run-tests.sh | 2 +- .jenkins/pipeline.jenkins | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.build/docker/run-tests.sh b/.build/docker/run-tests.sh index dda776597201..aba2e905d373 100755 --- a/.build/docker/run-tests.sh +++ b/.build/docker/run-tests.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash +x # 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 diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index b2f57921ea73..4830a095c12d 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -149,13 +149,13 @@ pipeline { } stage('stress') { steps { - testJob(".build/docker/run-tests.sh", "stress-test", 1) + //testJob(".build/docker/run-tests.sh", "stress-test", 1) sh 'echo "stage stress"' } } stage('fqltool') { steps { - //testJob(".build/docker/run-tests.sh", "fqltool-test", 1) + testJob(".build/docker/run-tests.sh", "fqltool-test", 1) sh 'echo "stage fqltool"' } } From 0a3dbac25cee4510dbc6f3d40c19d48d5a62d6ec Mon Sep 17 00:00:00 2001 From: Nbarola Date: Wed, 20 Sep 2023 17:24:51 +0530 Subject: [PATCH 182/426] update pipelinecopy.jenkins k8s agent config --- .jenkins/pipelinecopy.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipelinecopy.jenkins b/.jenkins/pipelinecopy.jenkins index 41f5d2d043c0..c4c90b24f56f 100644 --- a/.jenkins/pipelinecopy.jenkins +++ b/.jenkins/pipelinecopy.jenkins @@ -170,7 +170,7 @@ pipeline { sh 'bash /home/build/cassandra/.build/docker/_create_user.sh build 1000 1000' sh 'su build' sh 'export ANT_OPTS=-Dbuild.dir=/dist' - sh 'sleep 3000' + //sh 'sleep 3000' sh '. /home/build/cassandra/.build/docker/_set_java.sh 11' sh 'bash /home/build/cassandra/.build/build-jars.sh "${@:4}"' sh 'exit $?' From 37133a06d7ec5af27ee9cedfd15c23768c08256b Mon Sep 17 00:00:00 2001 From: Nbarola Date: Wed, 20 Sep 2023 17:31:13 +0530 Subject: [PATCH 183/426] update pipelinecopy.jenkins k8s agent config --- .jenkins/pipelinecopy.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipelinecopy.jenkins b/.jenkins/pipelinecopy.jenkins index c4c90b24f56f..02a6e5deb97d 100644 --- a/.jenkins/pipelinecopy.jenkins +++ b/.jenkins/pipelinecopy.jenkins @@ -171,7 +171,7 @@ pipeline { sh 'su build' sh 'export ANT_OPTS=-Dbuild.dir=/dist' //sh 'sleep 3000' - sh '. /home/build/cassandra/.build/docker/_set_java.sh 11' + sh 'bash /home/build/cassandra/.build/docker/_set_java.sh 11' sh 'bash /home/build/cassandra/.build/build-jars.sh "${@:4}"' sh 'exit $?' } From 224827c79953772567a1c45e05da1894f48db018 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Wed, 20 Sep 2023 17:52:35 +0530 Subject: [PATCH 184/426] update pipelinecopy.jenkins k8s agent config --- .jenkins/pipelinecopy.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipelinecopy.jenkins b/.jenkins/pipelinecopy.jenkins index 02a6e5deb97d..c62026ba9178 100644 --- a/.jenkins/pipelinecopy.jenkins +++ b/.jenkins/pipelinecopy.jenkins @@ -172,7 +172,7 @@ pipeline { sh 'export ANT_OPTS=-Dbuild.dir=/dist' //sh 'sleep 3000' sh 'bash /home/build/cassandra/.build/docker/_set_java.sh 11' - sh 'bash /home/build/cassandra/.build/build-jars.sh "${@:4}"' + sh 'bash /home/build/cassandra/.build/build-jars.sh' sh 'exit $?' } } From 7d2b55298d3ebcc65f8d0e05017d60218243b29f Mon Sep 17 00:00:00 2001 From: richamishra Date: Thu, 21 Sep 2023 16:27:37 +0530 Subject: [PATCH 185/426] updated echo command --- .jenkins/pipeline.jenkins | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 4830a095c12d..d1efab14942d 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -424,11 +424,14 @@ def testJob(test_script, test_type, splits=1, toCopy='') { **/ def _testAxis(test_script, test_type, toCopy, arch, jdk, python, cython, split) { echo "Spawning `${test_script} ${test_type} ${split} ${jdk}` with arch=${arch} jdk=${jdk} python${python} cython=${cython}" + echo "test" node(arch) { branchName: "${test_script} ${test_type} ${split} ${jdk} ${NODE_NAME}" + echo "test below branchname" echo "Starting `${test_script} ${test_type} ${split} ${jdk}` with arch=${arch} jdk=${jdk} python${python} cython=${cython} on ${NODE_NAME}" cleanWs() checkout scm + echo "test scm success" tool type: 'jdk', name: "jdk_${jdk}_latest" // FIXME python – need a tool type (like jdk above) // FIXME cython – need a tool type (like jdk above) From 96799add5069a1a2e43f8cc9c4ad607679735701 Mon Sep 17 00:00:00 2001 From: richamishra Date: Thu, 21 Sep 2023 16:37:13 +0530 Subject: [PATCH 186/426] updated echo command --- .jenkins/pipeline.jenkins | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index d1efab14942d..a8082969d8e3 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -426,8 +426,8 @@ def _testAxis(test_script, test_type, toCopy, arch, jdk, python, cython, split) echo "Spawning `${test_script} ${test_type} ${split} ${jdk}` with arch=${arch} jdk=${jdk} python${python} cython=${cython}" echo "test" node(arch) { - branchName: "${test_script} ${test_type} ${split} ${jdk} ${NODE_NAME}" - echo "test below branchname" + //branchName: "${test_script} ${test_type} ${split} ${jdk} ${NODE_NAME}" + echo "test below branchName" echo "Starting `${test_script} ${test_type} ${split} ${jdk}` with arch=${arch} jdk=${jdk} python${python} cython=${cython} on ${NODE_NAME}" cleanWs() checkout scm From b90db0a34d8be0c8009cdf60725dea5a0ea4e39a Mon Sep 17 00:00:00 2001 From: richamishra Date: Fri, 22 Sep 2023 11:47:02 +0530 Subject: [PATCH 187/426] updated file --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index a8082969d8e3..c533d5b23ccd 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -426,7 +426,7 @@ def _testAxis(test_script, test_type, toCopy, arch, jdk, python, cython, split) echo "Spawning `${test_script} ${test_type} ${split} ${jdk}` with arch=${arch} jdk=${jdk} python${python} cython=${cython}" echo "test" node(arch) { - //branchName: "${test_script} ${test_type} ${split} ${jdk} ${NODE_NAME}" + branchName: "${test_script} ${test_type} ${split} ${jdk} ${NODE_NAME}" echo "test below branchName" echo "Starting `${test_script} ${test_type} ${split} ${jdk}` with arch=${arch} jdk=${jdk} python${python} cython=${cython} on ${NODE_NAME}" cleanWs() From 9e0848ee82eb222e903775fca72fe3d77a5cce58 Mon Sep 17 00:00:00 2001 From: richamishra Date: Fri, 22 Sep 2023 11:53:14 +0530 Subject: [PATCH 188/426] updated file --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index c533d5b23ccd..412299402713 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -114,7 +114,7 @@ pipeline { stage('artifacts') { steps { sh 'echo "starting artifacts stage"' - buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") + //buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") sh 'echo "finishing stage artifacts"' } From 9d5c38e94d4c0032c43e712e1c93e408ede988f8 Mon Sep 17 00:00:00 2001 From: richamishra Date: Fri, 22 Sep 2023 11:55:27 +0530 Subject: [PATCH 189/426] updated file --- .jenkins/pipeline.jenkins | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 412299402713..6458186c70b5 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -149,13 +149,13 @@ pipeline { } stage('stress') { steps { - //testJob(".build/docker/run-tests.sh", "stress-test", 1) + testJob(".build/docker/run-tests.sh", "stress-test", 1) sh 'echo "stage stress"' } } stage('fqltool') { steps { - testJob(".build/docker/run-tests.sh", "fqltool-test", 1) + //testJob(".build/docker/run-tests.sh", "fqltool-test", 1) sh 'echo "stage fqltool"' } } From 6a1cdf63bbe28decd69adc34f5d6d8ca8a3b1974 Mon Sep 17 00:00:00 2001 From: richamishra Date: Fri, 22 Sep 2023 12:13:42 +0530 Subject: [PATCH 190/426] updated file --- .jenkins/pipeline.jenkins | 70 +++++++++++++++++++-------------------- 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 6458186c70b5..f5de5ed6d1b6 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -382,42 +382,42 @@ def testJob(test_script, test_type, splits=1, toCopy='') { // XXX – the following matrix over arrays should be better done with multi-arrays and recursion - for (a in archs) { - def arch = a - tests_per_arch[arch] = { - def tests_per_jdk = [:] - for (j in jdks) { - def jdk = j - tests_per_jdk[jdk] = { - def tests_per_python = [:] - for (p in pythons) { - def python = p - tests_per_python[python] = { - def tests_per_cython = [:] - for (c in cythons) { - def cython = c - tests_per_cython[cython] = { - def tests_per_split = [:] - for (s in 1..splits) { - def split = s - tests_per_split[split] = { +// for (a in archs) { +// def arch = a +// tests_per_arch[arch] = { +// def tests_per_jdk = [:] +// for (j in jdks) { +// def jdk = j +// tests_per_jdk[jdk] = { + // def tests_per_python = [:] + // for (p in pythons) { +// def python = p +// tests_per_python[python] = { +// def tests_per_cython = [:] +// for (c in cythons) { +// def cython = c +// tests_per_cython[cython] = { +// def tests_per_split = [:] +// for (s in 1..splits) { +// def split = s +// tests_per_split[split] = { _testAxis(test_script, test_type, toCopy, arch, jdk, python, cython, "${split}/${splits}") - } - } - parallel(tests_per_split) - } - } - parallel(tests_per_cython) - } - } - parallel(tests_per_python) - } - } - parallel(tests_per_jdk) - } - } - parallel(tests_per_arch) -} +// } +// } +// parallel(tests_per_split) +// } +// } +// parallel(tests_per_cython) +// } +// } +// parallel(tests_per_python) +// } +// } +// parallel(tests_per_jdk) +// } +// } +// parallel(tests_per_arch) +//} /** * Executes `.build/test-docker.sh ${testDockerImage} ${test_type} ${split}` for the stated arch, jdk, python, cython, and split. From 66b153dde753320ed665a7678ecd98cabcdd6299 Mon Sep 17 00:00:00 2001 From: richamishra Date: Fri, 22 Sep 2023 12:15:03 +0530 Subject: [PATCH 191/426] updated file --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index f5de5ed6d1b6..ee7ea1dc0dfb 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -417,7 +417,7 @@ def testJob(test_script, test_type, splits=1, toCopy='') { // } // } // parallel(tests_per_arch) -//} +} /** * Executes `.build/test-docker.sh ${testDockerImage} ${test_type} ${split}` for the stated arch, jdk, python, cython, and split. From c0b12dccff21d0c5ecc87d69e4502ae33b6e2646 Mon Sep 17 00:00:00 2001 From: richamishra Date: Fri, 22 Sep 2023 12:22:48 +0530 Subject: [PATCH 192/426] updated file --- .jenkins/pipeline.jenkins | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index ee7ea1dc0dfb..f1ef7f72e7f7 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -401,7 +401,8 @@ def testJob(test_script, test_type, splits=1, toCopy='') { // for (s in 1..splits) { // def split = s // tests_per_split[split] = { - _testAxis(test_script, test_type, toCopy, arch, jdk, python, cython, "${split}/${splits}") +// _testAxis(test_script, test_type, toCopy, arch, jdk, python, cython, "${split}/${splits}") + _testAxis(".build/docker/run-tests.sh", "stress-test", " ", "cassandra", "11", "3.7", "no", "1/1") // } // } // parallel(tests_per_split) From 9f8620774701f7a34834d59365fefe6d4013c0ce Mon Sep 17 00:00:00 2001 From: richamishra Date: Fri, 22 Sep 2023 12:27:34 +0530 Subject: [PATCH 193/426] updated file --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index f1ef7f72e7f7..0835c0ebf1f6 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -114,7 +114,7 @@ pipeline { stage('artifacts') { steps { sh 'echo "starting artifacts stage"' - //buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") + buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") sh 'echo "finishing stage artifacts"' } From fae1c01020a60630e5c017cce08598f7de96151d Mon Sep 17 00:00:00 2001 From: richamishra Date: Fri, 22 Sep 2023 12:44:09 +0530 Subject: [PATCH 194/426] updated file --- .jenkins/pipeline.jenkins | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 0835c0ebf1f6..d172406419f0 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -116,7 +116,8 @@ pipeline { sh 'echo "starting artifacts stage"' buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") sh 'echo "finishing stage artifacts"' - + testJob(".build/docker/run-tests.sh", "stress-test", 1) + sh 'echo "finishing stress test" } } } @@ -149,7 +150,7 @@ pipeline { } stage('stress') { steps { - testJob(".build/docker/run-tests.sh", "stress-test", 1) + //testJob(".build/docker/run-tests.sh", "stress-test", 1) sh 'echo "stage stress"' } } @@ -441,9 +442,9 @@ def _testAxis(test_script, test_type, toCopy, arch, jdk, python, cython, split) if (attempt > 1) { sleep(60 * attempt) } def logfile = "${JOB_NAME}_${BUILD_NUMBER}_${test_type}_jdk${jdk}_python_${python}_${cython}_${arch}_attempt_${attempt}.log" try { - dir("build") { - unstash name: "${arch}_${jdk}" - } + //dir("build") { + // unstash name: "${arch}_${jdk}" + //} echo "Executing `${test_script} ${test_type} ${split} ${jdk} 2>&1 | tee ${logfile}` on ${NODE_NAME} with jdk=${jdk} python=${python} cython=${cython}" statusCode = sh returnStatus:true, script:"${test_script} ${test_type} ${split} ${jdk} 2>&1 | tee ${logfile}" } finally { From 0a5f6afacc3bf6ed773d7d37c4ec9aa2990f2b3f Mon Sep 17 00:00:00 2001 From: richamishra Date: Fri, 22 Sep 2023 12:44:54 +0530 Subject: [PATCH 195/426] updated file --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index d172406419f0..76262b604b12 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -117,7 +117,7 @@ pipeline { buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") sh 'echo "finishing stage artifacts"' testJob(".build/docker/run-tests.sh", "stress-test", 1) - sh 'echo "finishing stress test" + sh 'echo "finishing stress test"' } } } From be11cf644138c415ffb1130fc18279864356ffd1 Mon Sep 17 00:00:00 2001 From: richamishra Date: Fri, 22 Sep 2023 16:27:36 +0530 Subject: [PATCH 196/426] updated image tag added bc and timeout --- .build/docker/agent-build.docker | 6 ++++-- .jenkins/pipeline.jenkins | 6 ++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.build/docker/agent-build.docker b/.build/docker/agent-build.docker index 1397669a0c9b..0f7d5e0ead51 100644 --- a/.build/docker/agent-build.docker +++ b/.build/docker/agent-build.docker @@ -1,10 +1,12 @@ # Use Alpine Linux as the base image -FROM jenkins/inbound-agent:latest-jdk17 +FROM jenkins/inbound-agent:3148.v532a_7e715ee3-4 USER root - RUN apt-get update RUN apt-get install xz-utils -y +RUN apt-get install bc -y +RUN apt-get update +RUN apt-get install coreutils -y RUN apt-get update && \ apt-get install -y openjdk-11-jdk openjdk-17-jdk && \ diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 76262b604b12..4d060b905508 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -67,7 +67,7 @@ pipeline { runAsUser: 0 containers: - name: jnlp - image: richamishra006/apache-k8s-agent:v31 + image: richamishra006/apache-k8s-agent:v32 command: - /bin/sh - -c @@ -116,8 +116,6 @@ pipeline { sh 'echo "starting artifacts stage"' buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") sh 'echo "finishing stage artifacts"' - testJob(".build/docker/run-tests.sh", "stress-test", 1) - sh 'echo "finishing stress test"' } } } @@ -150,7 +148,7 @@ pipeline { } stage('stress') { steps { - //testJob(".build/docker/run-tests.sh", "stress-test", 1) + testJob(".build/docker/run-tests.sh", "stress-test", 1) sh 'echo "stage stress"' } } From f4b789759aa0865df77ebaabc04fcc288dd67613 Mon Sep 17 00:00:00 2001 From: richamishra Date: Fri, 22 Sep 2023 16:30:49 +0530 Subject: [PATCH 197/426] updated image tag added bc and timeout --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 4d060b905508..530c16ed04ea 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -67,7 +67,7 @@ pipeline { runAsUser: 0 containers: - name: jnlp - image: richamishra006/apache-k8s-agent:v32 + image: richamishra006/apache-k8s-agent:32 command: - /bin/sh - -c From f5e1ae18dfc48f7e1dc3bdc17bea580ffeefa28c Mon Sep 17 00:00:00 2001 From: richamishra Date: Fri, 22 Sep 2023 17:04:10 +0530 Subject: [PATCH 198/426] updated file --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 530c16ed04ea..bba3ccf9a03a 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -114,7 +114,7 @@ pipeline { stage('artifacts') { steps { sh 'echo "starting artifacts stage"' - buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") + //buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") sh 'echo "finishing stage artifacts"' } } From 82a158952f475e7fdd0b6e7fa34c4bf42dabf6cb Mon Sep 17 00:00:00 2001 From: richamishra Date: Fri, 22 Sep 2023 17:13:24 +0530 Subject: [PATCH 199/426] updated file --- .build/run-tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.build/run-tests.sh b/.build/run-tests.sh index eaa902bc1e11..95d18844a4b1 100755 --- a/.build/run-tests.sh +++ b/.build/run-tests.sh @@ -1,4 +1,4 @@ -#!/usr/bin/bash +#!/usr/bin/bash -x # 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 From f61f44988a1fa1b214f3db403ae86e5ec105783b Mon Sep 17 00:00:00 2001 From: richamishra Date: Mon, 25 Sep 2023 11:34:37 +0530 Subject: [PATCH 200/426] uncommented stash unstash block --- .jenkins/pipeline.jenkins | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index bba3ccf9a03a..83a42cc55f92 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -329,20 +329,20 @@ def _buildAxis(build_script, toCopy, arch, jdk) { sh "mkdir -p build" def build_dir = sh( returnStdout: true, script:"mktemp -d ${WORKSPACE}/build/build_docker_run.XXXXXXXXXX" ) try { - //if (".build/docker/build-artifacts.sh" != build_script) { + if (".build/docker/build-artifacts.sh" != build_script) { // build-artifacts.sh must be run in an earlier completed stage for the stash to exist - //dir(build_dir) { - //unstash name: "${arch}_${jdk}" - //} - //} + dir(build_dir) { + unstash name: "${arch}_${jdk}" + } + } echo "Executing `build_dir=${build_dir} ${build_script} ${jdk} 2>&1 | tee ${logfile}` on ${NODE_NAME}" statusCode = sh returnStatus:true, script:"build_dir=\"${build_dir}\" ${build_script} ${jdk} 2>&1 | tee ${logfile}" - //if (".build/docker/build-artifacts.sh" == build_script || build_script.contains(".build/docker/_docker_run.sh")) { - //dir("${build_dir}") { + if (".build/docker/build-artifacts.sh" == build_script || build_script.contains(".build/docker/_docker_run.sh")) { + dir("${build_dir}") { // only stash the project built files. all dependency libraries are restored from the local maven repo using `ant resolver-dist-lib` - //stash name: "${arch}_${jdk}", includes: "*.jar,classes/**,test/classes/**,tools/**", excludes: "dist/**,**/lib/**/*.jar," - //} - //} + stash name: "${arch}_${jdk}", includes: "*.jar,classes/**,test/classes/**,tools/**", excludes: "dist/**,**/lib/**/*.jar," + } + } } finally { attempt = attempt + 1 sh "xz -f *_attempt_*.log" From e1f23332167328fbeb1a983680f7b549e4d51249 Mon Sep 17 00:00:00 2001 From: richamishra Date: Mon, 25 Sep 2023 11:37:34 +0530 Subject: [PATCH 201/426] uncommented stash unstash block --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 83a42cc55f92..6cb87f9cfd99 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -114,7 +114,7 @@ pipeline { stage('artifacts') { steps { sh 'echo "starting artifacts stage"' - //buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") + buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") sh 'echo "finishing stage artifacts"' } } From bb288014a546ee2dcf832a55d848d1a8da001b05 Mon Sep 17 00:00:00 2001 From: richamishra Date: Mon, 25 Sep 2023 11:43:34 +0530 Subject: [PATCH 202/426] reverted change --- .jenkins/pipeline.jenkins | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 6cb87f9cfd99..530c16ed04ea 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -329,20 +329,20 @@ def _buildAxis(build_script, toCopy, arch, jdk) { sh "mkdir -p build" def build_dir = sh( returnStdout: true, script:"mktemp -d ${WORKSPACE}/build/build_docker_run.XXXXXXXXXX" ) try { - if (".build/docker/build-artifacts.sh" != build_script) { + //if (".build/docker/build-artifacts.sh" != build_script) { // build-artifacts.sh must be run in an earlier completed stage for the stash to exist - dir(build_dir) { - unstash name: "${arch}_${jdk}" - } - } + //dir(build_dir) { + //unstash name: "${arch}_${jdk}" + //} + //} echo "Executing `build_dir=${build_dir} ${build_script} ${jdk} 2>&1 | tee ${logfile}` on ${NODE_NAME}" statusCode = sh returnStatus:true, script:"build_dir=\"${build_dir}\" ${build_script} ${jdk} 2>&1 | tee ${logfile}" - if (".build/docker/build-artifacts.sh" == build_script || build_script.contains(".build/docker/_docker_run.sh")) { - dir("${build_dir}") { + //if (".build/docker/build-artifacts.sh" == build_script || build_script.contains(".build/docker/_docker_run.sh")) { + //dir("${build_dir}") { // only stash the project built files. all dependency libraries are restored from the local maven repo using `ant resolver-dist-lib` - stash name: "${arch}_${jdk}", includes: "*.jar,classes/**,test/classes/**,tools/**", excludes: "dist/**,**/lib/**/*.jar," - } - } + //stash name: "${arch}_${jdk}", includes: "*.jar,classes/**,test/classes/**,tools/**", excludes: "dist/**,**/lib/**/*.jar," + //} + //} } finally { attempt = attempt + 1 sh "xz -f *_attempt_*.log" From e2cbcbe3cbdca4fe38ce87bbb8aad17540fa27cd Mon Sep 17 00:00:00 2001 From: richamishra Date: Mon, 25 Sep 2023 12:46:24 +0530 Subject: [PATCH 203/426] updated stash unstash block --- .jenkins/pipeline.jenkins | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 530c16ed04ea..929d177a9229 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -329,20 +329,21 @@ def _buildAxis(build_script, toCopy, arch, jdk) { sh "mkdir -p build" def build_dir = sh( returnStdout: true, script:"mktemp -d ${WORKSPACE}/build/build_docker_run.XXXXXXXXXX" ) try { - //if (".build/docker/build-artifacts.sh" != build_script) { + if (".build/docker/build-artifacts.sh" != ${build_script}) { // build-artifacts.sh must be run in an earlier completed stage for the stash to exist - //dir(build_dir) { - //unstash name: "${arch}_${jdk}" - //} - //} + dir("${build_dir}") { + unstash name: "${arch}_${jdk}" + } + } echo "Executing `build_dir=${build_dir} ${build_script} ${jdk} 2>&1 | tee ${logfile}` on ${NODE_NAME}" statusCode = sh returnStatus:true, script:"build_dir=\"${build_dir}\" ${build_script} ${jdk} 2>&1 | tee ${logfile}" - //if (".build/docker/build-artifacts.sh" == build_script || build_script.contains(".build/docker/_docker_run.sh")) { - //dir("${build_dir}") { + sh "echo ${build_script}" + if (".build/docker/build-artifacts.sh" == ${build_script} || ${build_script}.contains(".build/docker/_docker_run.sh")) { + dir("${build_dir}") { // only stash the project built files. all dependency libraries are restored from the local maven repo using `ant resolver-dist-lib` - //stash name: "${arch}_${jdk}", includes: "*.jar,classes/**,test/classes/**,tools/**", excludes: "dist/**,**/lib/**/*.jar," - //} - //} + stash name: "${arch}_${jdk}", includes: "*.jar,classes/**,test/classes/**,tools/**", excludes: "dist/**,**/lib/**/*.jar," + } + } } finally { attempt = attempt + 1 sh "xz -f *_attempt_*.log" From 108d2b0f8418ac541ca7e310e9ffd5ac9b85b193 Mon Sep 17 00:00:00 2001 From: richamishra Date: Mon, 25 Sep 2023 12:57:52 +0530 Subject: [PATCH 204/426] updated stash unstash block --- .jenkins/pipeline.jenkins | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 929d177a9229..baba7a0e4e8c 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -329,7 +329,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { sh "mkdir -p build" def build_dir = sh( returnStdout: true, script:"mktemp -d ${WORKSPACE}/build/build_docker_run.XXXXXXXXXX" ) try { - if (".build/docker/build-artifacts.sh" != ${build_script}) { + if (".build/docker/build-artifacts.sh" != build_script) { // build-artifacts.sh must be run in an earlier completed stage for the stash to exist dir("${build_dir}") { unstash name: "${arch}_${jdk}" @@ -338,7 +338,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { echo "Executing `build_dir=${build_dir} ${build_script} ${jdk} 2>&1 | tee ${logfile}` on ${NODE_NAME}" statusCode = sh returnStatus:true, script:"build_dir=\"${build_dir}\" ${build_script} ${jdk} 2>&1 | tee ${logfile}" sh "echo ${build_script}" - if (".build/docker/build-artifacts.sh" == ${build_script} || ${build_script}.contains(".build/docker/_docker_run.sh")) { + if (".build/docker/build-artifacts.sh" == build_script || ${build_script}.contains(".build/docker/_docker_run.sh")) { dir("${build_dir}") { // only stash the project built files. all dependency libraries are restored from the local maven repo using `ant resolver-dist-lib` stash name: "${arch}_${jdk}", includes: "*.jar,classes/**,test/classes/**,tools/**", excludes: "dist/**,**/lib/**/*.jar," From 24fb78d1a9ad548f30c5fbe61d55bbec836c1b87 Mon Sep 17 00:00:00 2001 From: richamishra Date: Mon, 25 Sep 2023 16:35:42 +0530 Subject: [PATCH 205/426] updated stash unstash block --- .jenkins/pipeline.jenkins | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index baba7a0e4e8c..c058b0bd3dfd 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -332,7 +332,12 @@ def _buildAxis(build_script, toCopy, arch, jdk) { if (".build/docker/build-artifacts.sh" != build_script) { // build-artifacts.sh must be run in an earlier completed stage for the stash to exist dir("${build_dir}") { - unstash name: "${arch}_${jdk}" + if (stashExists(name: "${arch}_${jdk}")) { + unstash name: "${arch}_${jdk}" + } else { + error("Stash ${arch}_${jdk} does not exist.") + } + //unstash name: "${arch}_${jdk}" } } echo "Executing `build_dir=${build_dir} ${build_script} ${jdk} 2>&1 | tee ${logfile}` on ${NODE_NAME}" From ecd22b250d939db61ba65ce6bfa08d4a4e3de54f Mon Sep 17 00:00:00 2001 From: richamishra Date: Mon, 25 Sep 2023 16:41:52 +0530 Subject: [PATCH 206/426] updated stash unstash block --- .jenkins/pipeline.jenkins | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index c058b0bd3dfd..c113a5214137 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -332,12 +332,9 @@ def _buildAxis(build_script, toCopy, arch, jdk) { if (".build/docker/build-artifacts.sh" != build_script) { // build-artifacts.sh must be run in an earlier completed stage for the stash to exist dir("${build_dir}") { - if (stashExists(name: "${arch}_${jdk}")) { - unstash name: "${arch}_${jdk}" - } else { - error("Stash ${arch}_${jdk} does not exist.") - } - //unstash name: "${arch}_${jdk}" + sh 'echo "Current directory: $(pwd)"' + sh 'ls -l' + unstash name: "${arch}_${jdk}" } } echo "Executing `build_dir=${build_dir} ${build_script} ${jdk} 2>&1 | tee ${logfile}` on ${NODE_NAME}" From 3b5eb23c154d342d4a00b421d6a8ce9f4913ea99 Mon Sep 17 00:00:00 2001 From: richamishra Date: Mon, 25 Sep 2023 17:36:40 +0530 Subject: [PATCH 207/426] updated stash unstash block --- .jenkins/pipeline.jenkins | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index c113a5214137..c02c2d5a5dd2 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -329,7 +329,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { sh "mkdir -p build" def build_dir = sh( returnStdout: true, script:"mktemp -d ${WORKSPACE}/build/build_docker_run.XXXXXXXXXX" ) try { - if (".build/docker/build-artifacts.sh" != build_script) { + if (".build/docker/build-artifacts.sh" != build_script || build_script.contains(".build/docker/_docker_run.sh")) { // build-artifacts.sh must be run in an earlier completed stage for the stash to exist dir("${build_dir}") { sh 'echo "Current directory: $(pwd)"' @@ -340,7 +340,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { echo "Executing `build_dir=${build_dir} ${build_script} ${jdk} 2>&1 | tee ${logfile}` on ${NODE_NAME}" statusCode = sh returnStatus:true, script:"build_dir=\"${build_dir}\" ${build_script} ${jdk} 2>&1 | tee ${logfile}" sh "echo ${build_script}" - if (".build/docker/build-artifacts.sh" == build_script || ${build_script}.contains(".build/docker/_docker_run.sh")) { + if (".build/docker/build-artifacts.sh" == build_script || build_script.contains(".build/docker/_docker_run.sh")) { dir("${build_dir}") { // only stash the project built files. all dependency libraries are restored from the local maven repo using `ant resolver-dist-lib` stash name: "${arch}_${jdk}", includes: "*.jar,classes/**,test/classes/**,tools/**", excludes: "dist/**,**/lib/**/*.jar," From 6ac257fd7ec121d8f99f5df8aa595b484913312e Mon Sep 17 00:00:00 2001 From: richamishra Date: Mon, 25 Sep 2023 17:43:48 +0530 Subject: [PATCH 208/426] updated stash unstash block --- .jenkins/pipeline.jenkins | 1 + 1 file changed, 1 insertion(+) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index c02c2d5a5dd2..1acd39a2d8cb 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -329,6 +329,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { sh "mkdir -p build" def build_dir = sh( returnStdout: true, script:"mktemp -d ${WORKSPACE}/build/build_docker_run.XXXXXXXXXX" ) try { + sh 'echo ${build_script}' if (".build/docker/build-artifacts.sh" != build_script || build_script.contains(".build/docker/_docker_run.sh")) { // build-artifacts.sh must be run in an earlier completed stage for the stash to exist dir("${build_dir}") { From 647c1c15e7dd978fa59eab560b2d4806075cbf4d Mon Sep 17 00:00:00 2001 From: richamishra Date: Mon, 25 Sep 2023 17:51:27 +0530 Subject: [PATCH 209/426] updated stash unstash block --- .jenkins/pipeline.jenkins | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 1acd39a2d8cb..2c384a26594b 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -317,6 +317,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { node(arch) { branchName: "${build_script} ${jdk} ${NODE_NAME}" //cleanWs() + sh 'echo "build_script: ${build_script}"' checkout scm sh "echo scm success" tool type: 'jdk', name: "jdk_${jdk}_latest" @@ -325,6 +326,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { retry(2) { if (attempt > 1) { sleep(60 * attempt) } def build_script_safe_name = "${build_script}".replace(".build/docker/", "").replace(".sh", "_").replace(" ", "_") + sh 'echo "build_script_safe_name: ${build_script_safe_name}"' def logfile = "${JOB_NAME}_${BUILD_NUMBER}_${build_script_safe_name}_jdk${jdk}_${arch}_attempt_${attempt}.log" sh "mkdir -p build" def build_dir = sh( returnStdout: true, script:"mktemp -d ${WORKSPACE}/build/build_docker_run.XXXXXXXXXX" ) From fcf2a7ccc1bc693aa9be9ca366536bde62961f93 Mon Sep 17 00:00:00 2001 From: richamishra Date: Mon, 25 Sep 2023 18:07:00 +0530 Subject: [PATCH 210/426] updated stash unstash block --- .jenkins/pipeline.jenkins | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 2c384a26594b..e11b063e8918 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -317,7 +317,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { node(arch) { branchName: "${build_script} ${jdk} ${NODE_NAME}" //cleanWs() - sh 'echo "build_script: ${build_script}"' + echo "build_script: ${build_script}" checkout scm sh "echo scm success" tool type: 'jdk', name: "jdk_${jdk}_latest" @@ -326,7 +326,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { retry(2) { if (attempt > 1) { sleep(60 * attempt) } def build_script_safe_name = "${build_script}".replace(".build/docker/", "").replace(".sh", "_").replace(" ", "_") - sh 'echo "build_script_safe_name: ${build_script_safe_name}"' + echo "build_script_safe_name: ${build_script_safe_name}" def logfile = "${JOB_NAME}_${BUILD_NUMBER}_${build_script_safe_name}_jdk${jdk}_${arch}_attempt_${attempt}.log" sh "mkdir -p build" def build_dir = sh( returnStdout: true, script:"mktemp -d ${WORKSPACE}/build/build_docker_run.XXXXXXXXXX" ) From f60f1e87eaa842c63b0d706cef9c5ad7131b016b Mon Sep 17 00:00:00 2001 From: richamishra Date: Mon, 25 Sep 2023 18:17:42 +0530 Subject: [PATCH 211/426] updated stash unstash block --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index e11b063e8918..2cc8988bcbf5 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -332,7 +332,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { def build_dir = sh( returnStdout: true, script:"mktemp -d ${WORKSPACE}/build/build_docker_run.XXXXXXXXXX" ) try { sh 'echo ${build_script}' - if (".build/docker/build-artifacts.sh" != build_script || build_script.contains(".build/docker/_docker_run.sh")) { + if (".build/docker/build-artifacts.sh" != build_script || !build_script.contains(".build/docker/_docker_run.sh")) { // build-artifacts.sh must be run in an earlier completed stage for the stash to exist dir("${build_dir}") { sh 'echo "Current directory: $(pwd)"' From 9e0633f810c9d9f57dbdc28415098e34efc24dc0 Mon Sep 17 00:00:00 2001 From: richamishra Date: Mon, 25 Sep 2023 18:21:35 +0530 Subject: [PATCH 212/426] updated stash unstash block --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 2cc8988bcbf5..89569b43a100 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -332,7 +332,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { def build_dir = sh( returnStdout: true, script:"mktemp -d ${WORKSPACE}/build/build_docker_run.XXXXXXXXXX" ) try { sh 'echo ${build_script}' - if (".build/docker/build-artifacts.sh" != build_script || !build_script.contains(".build/docker/_docker_run.sh")) { + if (".build/docker/build-artifacts.sh" != build_script && !build_script.contains(".build/docker/_docker_run.sh")) { // build-artifacts.sh must be run in an earlier completed stage for the stash to exist dir("${build_dir}") { sh 'echo "Current directory: $(pwd)"' From 1556417573c6640899bc8b01f990bb92a011f698 Mon Sep 17 00:00:00 2001 From: richamishra Date: Mon, 25 Sep 2023 18:37:23 +0530 Subject: [PATCH 213/426] updated stash unstash block --- .jenkins/pipeline.jenkins | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 89569b43a100..c9f8aea846b1 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -346,6 +346,8 @@ def _buildAxis(build_script, toCopy, arch, jdk) { if (".build/docker/build-artifacts.sh" == build_script || build_script.contains(".build/docker/_docker_run.sh")) { dir("${build_dir}") { // only stash the project built files. all dependency libraries are restored from the local maven repo using `ant resolver-dist-lib` + sh 'echo "Current directory: $(pwd)"' + sh 'ls -l' stash name: "${arch}_${jdk}", includes: "*.jar,classes/**,test/classes/**,tools/**", excludes: "dist/**,**/lib/**/*.jar," } } From 7e0d4aae393d868b07d1ccb4405d20413f4ce42d Mon Sep 17 00:00:00 2001 From: Nbarola Date: Tue, 26 Sep 2023 17:10:36 +0530 Subject: [PATCH 214/426] update pipeline.jenkins file --- .jenkins/pipeline.jenkins | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index c9f8aea846b1..76bf0cdcaca2 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -315,6 +315,8 @@ def buildJob(build_script, toCopy) { **/ def _buildAxis(build_script, toCopy, arch, jdk) { node(arch) { + def podName = currentBuild.rawBuild.buildVariables.get('KUBE_POD_NAME') + echo "Pod Name: $podName" branchName: "${build_script} ${jdk} ${NODE_NAME}" //cleanWs() echo "build_script: ${build_script}" From 7f0b241c5ac82653ed324a39c4ea6fa73da5b41c Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 26 Sep 2023 17:12:48 +0530 Subject: [PATCH 215/426] reverted changes --- .build/jenkins-deployment.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.build/jenkins-deployment.yaml b/.build/jenkins-deployment.yaml index 0f04424e7154..74ae8d86b605 100644 --- a/.build/jenkins-deployment.yaml +++ b/.build/jenkins-deployment.yaml @@ -106,7 +106,7 @@ spec: runAsUser: 1000 seedJobs: - id: jenkins-operator - targets: ".jenkins/job/DslJob.jenkins" + targets: ".jenkins/job/DslJob.jenkins" #"cicd/jobs/k8s.jenkins" description: "Casandra Repo" repositoryBranch: infracloud/cassandra-5.0 repositoryUrl: https://github.com/infracloudio/cassandra.git From e5565f4535a95f68e1279eb00699cbcf0e50dc55 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Tue, 26 Sep 2023 17:46:36 +0530 Subject: [PATCH 216/426] update jenkins jenkins file --- .jenkins/pipeline.jenkins | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 76bf0cdcaca2..fe5b70f49cb8 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -315,8 +315,6 @@ def buildJob(build_script, toCopy) { **/ def _buildAxis(build_script, toCopy, arch, jdk) { node(arch) { - def podName = currentBuild.rawBuild.buildVariables.get('KUBE_POD_NAME') - echo "Pod Name: $podName" branchName: "${build_script} ${jdk} ${NODE_NAME}" //cleanWs() echo "build_script: ${build_script}" @@ -350,7 +348,10 @@ def _buildAxis(build_script, toCopy, arch, jdk) { // only stash the project built files. all dependency libraries are restored from the local maven repo using `ant resolver-dist-lib` sh 'echo "Current directory: $(pwd)"' sh 'ls -l' - stash name: "${arch}_${jdk}", includes: "*.jar,classes/**,test/classes/**,tools/**", excludes: "dist/**,**/lib/**/*.jar," + //stash name: "${arch}_${jdk}", includes: "*.jar,classes/**,test/classes/**,tools/**", excludes: "dist/**,**/lib/**/*.jar," + sh 'docker run --name stash -d -v /home/jenkins/agent/workspace/k8s-e2e:/home/jenkins/agent/workspace/k8s-e2e alpine:latest tail -f /dev/null' + sh 'docker exec -it stash bash -c cd /home/jenkins/agent/workspace/k8s-e2e && git add build && git stash save jdk_11' + sh 'docker stop stash' } } } finally { From 2e8d9e103d8af5604e65d932ab264c924c7daeb1 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Tue, 26 Sep 2023 17:58:14 +0530 Subject: [PATCH 217/426] update jenkins jenkins file --- .jenkins/pipeline.jenkins | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index fe5b70f49cb8..ec4dda368a1b 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -349,8 +349,8 @@ def _buildAxis(build_script, toCopy, arch, jdk) { sh 'echo "Current directory: $(pwd)"' sh 'ls -l' //stash name: "${arch}_${jdk}", includes: "*.jar,classes/**,test/classes/**,tools/**", excludes: "dist/**,**/lib/**/*.jar," - sh 'docker run --name stash -d -v /home/jenkins/agent/workspace/k8s-e2e:/home/jenkins/agent/workspace/k8s-e2e alpine:latest tail -f /dev/null' - sh 'docker exec -it stash bash -c cd /home/jenkins/agent/workspace/k8s-e2e && git add build && git stash save jdk_11' + sh 'docker run --name stash_${jdk} -d -v /home/jenkins/agent/workspace/k8s-e2e:/home/jenkins/agent/workspace/k8s-e2e alpine:latest tail -f /dev/null' + sh 'docker exec stash_${jdk} bash -c cd /home/jenkins/agent/workspace/k8s-e2e && git add build && git stash save jdk_11' sh 'docker stop stash' } } From ae5c47508d6c51ed4733a1424ad68ab77d603a58 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Tue, 26 Sep 2023 18:10:17 +0530 Subject: [PATCH 218/426] update jenkins jenkins file --- .jenkins/pipeline.jenkins | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index ec4dda368a1b..c7dfcb02ec23 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -349,9 +349,9 @@ def _buildAxis(build_script, toCopy, arch, jdk) { sh 'echo "Current directory: $(pwd)"' sh 'ls -l' //stash name: "${arch}_${jdk}", includes: "*.jar,classes/**,test/classes/**,tools/**", excludes: "dist/**,**/lib/**/*.jar," - sh 'docker run --name stash_${jdk} -d -v /home/jenkins/agent/workspace/k8s-e2e:/home/jenkins/agent/workspace/k8s-e2e alpine:latest tail -f /dev/null' - sh 'docker exec stash_${jdk} bash -c cd /home/jenkins/agent/workspace/k8s-e2e && git add build && git stash save jdk_11' - sh 'docker stop stash' + sh 'docker run --name "stash_${jdk}" -d -v /home/jenkins/agent/workspace/k8s-e2e:/home/jenkins/agent/workspace/k8s-e2e alpine:latest tail -f /dev/null' + sh 'docker exec "stash_${jdk}" sh -c cd /home/jenkins/agent/workspace/k8s-e2e && git add build && git stash save jdk_11' + sh 'docker stop "stash_${jdk}"' } } } finally { From fdbf9cf11bf2b7d8c6cea771bd165047e66c5567 Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 26 Sep 2023 18:50:39 +0530 Subject: [PATCH 219/426] reverted changes --- .build/jenkins-deployment.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.build/jenkins-deployment.yaml b/.build/jenkins-deployment.yaml index 74ae8d86b605..dd7cc22fe604 100644 --- a/.build/jenkins-deployment.yaml +++ b/.build/jenkins-deployment.yaml @@ -106,7 +106,7 @@ spec: runAsUser: 1000 seedJobs: - id: jenkins-operator - targets: ".jenkins/job/DslJob.jenkins" #"cicd/jobs/k8s.jenkins" + targets: ".jenkins/job/DslJob.jenkins" #"cicd/jobs/k8s.jenkins" # description: "Casandra Repo" - repositoryBranch: infracloud/cassandra-5.0 + repositoryBranch: infracloud/cassandra-5.0 #master repositoryUrl: https://github.com/infracloudio/cassandra.git From fa3f81ad27e132fa1b11dfe114630850d0dcae7d Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 27 Sep 2023 12:23:38 +0530 Subject: [PATCH 220/426] updated volume --- .build/jenkins-deployment.yaml | 6 +++--- .jenkins/pipeline.jenkins | 7 ++++++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.build/jenkins-deployment.yaml b/.build/jenkins-deployment.yaml index dd7cc22fe604..4346d0ad1d3f 100644 --- a/.build/jenkins-deployment.yaml +++ b/.build/jenkins-deployment.yaml @@ -106,7 +106,7 @@ spec: runAsUser: 1000 seedJobs: - id: jenkins-operator - targets: ".jenkins/job/DslJob.jenkins" #"cicd/jobs/k8s.jenkins" # + targets: ".jenkins/job/DslJob.jenkins" #"cicd/jobs/k8s.jenkins" description: "Casandra Repo" - repositoryBranch: infracloud/cassandra-5.0 #master - repositoryUrl: https://github.com/infracloudio/cassandra.git + repositoryBranch: infracloud/cassandra-5.0 #master #infracloud/cassandra-5.0 # + repositoryUrl: https://github.com/infracloudio/casandra.git diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index c7dfcb02ec23..25d4ffdc3a3b 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -74,7 +74,9 @@ pipeline { - /usr/local/bin/jenkins-agent volumeMounts: - name: docker-socket - mountPath: /var/run/docker.sock + mountPath: /var/run/docker.sock + - name: cassandra-dir + mountPath: /home/jenkins/agent/workspace/k8s-e2e tty: true securityContext: privileged: true @@ -84,6 +86,9 @@ pipeline { - name: docker-socket hostPath: path: /var/run/docker.sock + - name: cassandra-dir + persistentVolumeClaim: + claimName: local-file-pvc ''' } } From d7b7e4dfc9b7bff5226f6aeda8a9de88474d83f9 Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 27 Sep 2023 12:37:47 +0530 Subject: [PATCH 221/426] updated volume name --- .build/jenkins-deployment.yaml | 2 +- .jenkins/pipeline.jenkins | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.build/jenkins-deployment.yaml b/.build/jenkins-deployment.yaml index 4346d0ad1d3f..c1607677d7d3 100644 --- a/.build/jenkins-deployment.yaml +++ b/.build/jenkins-deployment.yaml @@ -109,4 +109,4 @@ spec: targets: ".jenkins/job/DslJob.jenkins" #"cicd/jobs/k8s.jenkins" description: "Casandra Repo" repositoryBranch: infracloud/cassandra-5.0 #master #infracloud/cassandra-5.0 # - repositoryUrl: https://github.com/infracloudio/casandra.git + repositoryUrl: https://github.com/infracloudio/cassandra.git diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 25d4ffdc3a3b..ce2e305d1e3d 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -76,7 +76,7 @@ pipeline { - name: docker-socket mountPath: /var/run/docker.sock - name: cassandra-dir - mountPath: /home/jenkins/agent/workspace/k8s-e2e + mountPath: /cassandra_dir tty: true securityContext: privileged: true @@ -88,7 +88,7 @@ pipeline { path: /var/run/docker.sock - name: cassandra-dir persistentVolumeClaim: - claimName: local-file-pvc + claimName: cassandra-dir-claim ''' } } From 446ca14e69f0eb9adfd10aa7c817d7321483daea Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 27 Sep 2023 16:14:15 +0530 Subject: [PATCH 222/426] updated pipeline --- .jenkins/pipeline.jenkins | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index ce2e305d1e3d..d272aa0cc555 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -76,7 +76,7 @@ pipeline { - name: docker-socket mountPath: /var/run/docker.sock - name: cassandra-dir - mountPath: /cassandra_dir + mountPath: /home/jenkins/agent/workspace/k8s-e2e tty: true securityContext: privileged: true @@ -87,8 +87,8 @@ pipeline { hostPath: path: /var/run/docker.sock - name: cassandra-dir - persistentVolumeClaim: - claimName: cassandra-dir-claim + hostPath: + path: /home/jenkins/agent/workspace/k8s-e2e ''' } } @@ -340,8 +340,6 @@ def _buildAxis(build_script, toCopy, arch, jdk) { if (".build/docker/build-artifacts.sh" != build_script && !build_script.contains(".build/docker/_docker_run.sh")) { // build-artifacts.sh must be run in an earlier completed stage for the stash to exist dir("${build_dir}") { - sh 'echo "Current directory: $(pwd)"' - sh 'ls -l' unstash name: "${arch}_${jdk}" } } @@ -351,12 +349,10 @@ def _buildAxis(build_script, toCopy, arch, jdk) { if (".build/docker/build-artifacts.sh" == build_script || build_script.contains(".build/docker/_docker_run.sh")) { dir("${build_dir}") { // only stash the project built files. all dependency libraries are restored from the local maven repo using `ant resolver-dist-lib` - sh 'echo "Current directory: $(pwd)"' - sh 'ls -l' - //stash name: "${arch}_${jdk}", includes: "*.jar,classes/**,test/classes/**,tools/**", excludes: "dist/**,**/lib/**/*.jar," - sh 'docker run --name "stash_${jdk}" -d -v /home/jenkins/agent/workspace/k8s-e2e:/home/jenkins/agent/workspace/k8s-e2e alpine:latest tail -f /dev/null' - sh 'docker exec "stash_${jdk}" sh -c cd /home/jenkins/agent/workspace/k8s-e2e && git add build && git stash save jdk_11' - sh 'docker stop "stash_${jdk}"' + stash name: "${arch}_${jdk}", includes: "*.jar,classes/**,test/classes/**,tools/**", excludes: "dist/**,**/lib/**/*.jar," + //sh 'docker run --name "stash_${jdk}" -d -v /home/jenkins/agent/workspace/k8s-e2e:/home/jenkins/agent/workspace/k8s-e2e alpine:latest tail -f /dev/null' + //sh 'docker exec "stash_${jdk}" sh -c cd /home/jenkins/agent/workspace/k8s-e2e && git add build && git stash save jdk_11' + //sh 'docker stop "stash_${jdk}"' } } } finally { From 58c36f6371b57227655d5a1114f6533c92c84f4c Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 27 Sep 2023 16:18:17 +0530 Subject: [PATCH 223/426] updated pipeline --- .jenkins/pipeline.jenkins | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index d272aa0cc555..06ece928d61d 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -74,9 +74,7 @@ pipeline { - /usr/local/bin/jenkins-agent volumeMounts: - name: docker-socket - mountPath: /var/run/docker.sock - - name: cassandra-dir - mountPath: /home/jenkins/agent/workspace/k8s-e2e + mountPath: /var/run/docker.sock tty: true securityContext: privileged: true @@ -86,9 +84,6 @@ pipeline { - name: docker-socket hostPath: path: /var/run/docker.sock - - name: cassandra-dir - hostPath: - path: /home/jenkins/agent/workspace/k8s-e2e ''' } } From 431385f0f7f15230a79594a949fa02924cc1f944 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Thu, 28 Sep 2023 10:22:35 +0530 Subject: [PATCH 224/426] update stash code in jenkins.pipeline --- .jenkins/pipeline.jenkins | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 06ece928d61d..2b23b8185338 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -344,10 +344,12 @@ def _buildAxis(build_script, toCopy, arch, jdk) { if (".build/docker/build-artifacts.sh" == build_script || build_script.contains(".build/docker/_docker_run.sh")) { dir("${build_dir}") { // only stash the project built files. all dependency libraries are restored from the local maven repo using `ant resolver-dist-lib` - stash name: "${arch}_${jdk}", includes: "*.jar,classes/**,test/classes/**,tools/**", excludes: "dist/**,**/lib/**/*.jar," - //sh 'docker run --name "stash_${jdk}" -d -v /home/jenkins/agent/workspace/k8s-e2e:/home/jenkins/agent/workspace/k8s-e2e alpine:latest tail -f /dev/null' - //sh 'docker exec "stash_${jdk}" sh -c cd /home/jenkins/agent/workspace/k8s-e2e && git add build && git stash save jdk_11' - //sh 'docker stop "stash_${jdk}"' + //stash name: "${arch}_${jdk}", includes: "*.jar,classes/**,test/classes/**,tools/**", excludes: "dist/**,**/lib/**/*.jar," + container_name = stash_${jdk} + docker run --name ${container_name} -d -v /home/jenkins/agent/workspace/k8s-e2e:/home/jenkins/agent/workspace/k8s-e2e alpine:latest tail -f /dev/null + docker exec ${container_name} sh -c adduser -D --no-create-home --uid 1000 --gecos build build + docker exec -u build ${container_name} sh -c cd /home/jenkins/agent/workspace/k8s-e2e && git add build && git stash save jdk_11 + docker stop ${container_name} } } } finally { From 379d325bd091d80e41e33ecc8a24f623e335be04 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Thu, 28 Sep 2023 10:29:07 +0530 Subject: [PATCH 225/426] update stash code in jenkins.pipeline --- .jenkins/pipeline.jenkins | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 2b23b8185338..d1eb72603a8d 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -345,11 +345,11 @@ def _buildAxis(build_script, toCopy, arch, jdk) { dir("${build_dir}") { // only stash the project built files. all dependency libraries are restored from the local maven repo using `ant resolver-dist-lib` //stash name: "${arch}_${jdk}", includes: "*.jar,classes/**,test/classes/**,tools/**", excludes: "dist/**,**/lib/**/*.jar," - container_name = stash_${jdk} - docker run --name ${container_name} -d -v /home/jenkins/agent/workspace/k8s-e2e:/home/jenkins/agent/workspace/k8s-e2e alpine:latest tail -f /dev/null - docker exec ${container_name} sh -c adduser -D --no-create-home --uid 1000 --gecos build build - docker exec -u build ${container_name} sh -c cd /home/jenkins/agent/workspace/k8s-e2e && git add build && git stash save jdk_11 - docker stop ${container_name} + def container_name = "stash_${jdk}" + sh "docker run --name ${container_name} -d -v /home/jenkins/agent/workspace/k8s-e2e:/home/jenkins/agent/workspace/k8s-e2e alpine:latest tail -f /dev/null" + sh "docker exec ${container_name} sh -c adduser -D --no-create-home --uid 1000 --gecos build build" + sh "docker exec -u build ${container_name} sh -c cd /home/jenkins/agent/workspace/k8s-e2e && git add build && git stash save jdk_11" + sh "docker stop ${container_name}" } } } finally { From f1dbacef1f245d8c37cb40f54489ffd52e49f574 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Thu, 28 Sep 2023 10:43:29 +0530 Subject: [PATCH 226/426] update stash code in jenkins.pipeline --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index d1eb72603a8d..6d24c46c70d6 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -347,7 +347,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { //stash name: "${arch}_${jdk}", includes: "*.jar,classes/**,test/classes/**,tools/**", excludes: "dist/**,**/lib/**/*.jar," def container_name = "stash_${jdk}" sh "docker run --name ${container_name} -d -v /home/jenkins/agent/workspace/k8s-e2e:/home/jenkins/agent/workspace/k8s-e2e alpine:latest tail -f /dev/null" - sh "docker exec ${container_name} sh -c adduser -D --no-create-home --uid 1000 --gecos build build" + sh 'docker exec ${container_name} sh -c "adduser -D --no-create-home --uid 1000 --gecos build build"' sh "docker exec -u build ${container_name} sh -c cd /home/jenkins/agent/workspace/k8s-e2e && git add build && git stash save jdk_11" sh "docker stop ${container_name}" } From dcb8726f76f1645d2ed3511f17c8dd6f1184ff68 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Thu, 28 Sep 2023 10:53:49 +0530 Subject: [PATCH 227/426] update stash code in jenkins.pipeline --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 6d24c46c70d6..37ba23ab80bb 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -347,7 +347,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { //stash name: "${arch}_${jdk}", includes: "*.jar,classes/**,test/classes/**,tools/**", excludes: "dist/**,**/lib/**/*.jar," def container_name = "stash_${jdk}" sh "docker run --name ${container_name} -d -v /home/jenkins/agent/workspace/k8s-e2e:/home/jenkins/agent/workspace/k8s-e2e alpine:latest tail -f /dev/null" - sh 'docker exec ${container_name} sh -c "adduser -D --no-create-home --uid 1000 --gecos build build"' + sh "docker exec ${container_name} sh -c 'adduser -D --no-create-home --uid 1000 --gecos build build'" sh "docker exec -u build ${container_name} sh -c cd /home/jenkins/agent/workspace/k8s-e2e && git add build && git stash save jdk_11" sh "docker stop ${container_name}" } From faac81af10e3ecd8d7b9e6f6272068689b1be009 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Thu, 28 Sep 2023 11:41:10 +0530 Subject: [PATCH 228/426] update stash code in jenkins.pipeline --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 37ba23ab80bb..d6ff28c1fe72 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -348,7 +348,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { def container_name = "stash_${jdk}" sh "docker run --name ${container_name} -d -v /home/jenkins/agent/workspace/k8s-e2e:/home/jenkins/agent/workspace/k8s-e2e alpine:latest tail -f /dev/null" sh "docker exec ${container_name} sh -c 'adduser -D --no-create-home --uid 1000 --gecos build build'" - sh "docker exec -u build ${container_name} sh -c cd /home/jenkins/agent/workspace/k8s-e2e && git add build && git stash save jdk_11" + sh "docker exec -u build ${container_name} sh -c 'cd /home/jenkins/agent/workspace/k8s-e2e && git add build && git stash save jdk_11'" sh "docker stop ${container_name}" } } From 99cc876250b5a60b569831f7cc65f78eef54debe Mon Sep 17 00:00:00 2001 From: Nbarola Date: Thu, 28 Sep 2023 12:11:29 +0530 Subject: [PATCH 229/426] update stash code in jenkins.pipeline --- .jenkins/pipeline.jenkins | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index d6ff28c1fe72..721e4509291a 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -347,8 +347,8 @@ def _buildAxis(build_script, toCopy, arch, jdk) { //stash name: "${arch}_${jdk}", includes: "*.jar,classes/**,test/classes/**,tools/**", excludes: "dist/**,**/lib/**/*.jar," def container_name = "stash_${jdk}" sh "docker run --name ${container_name} -d -v /home/jenkins/agent/workspace/k8s-e2e:/home/jenkins/agent/workspace/k8s-e2e alpine:latest tail -f /dev/null" - sh "docker exec ${container_name} sh -c 'adduser -D --no-create-home --uid 1000 --gecos build build'" - sh "docker exec -u build ${container_name} sh -c 'cd /home/jenkins/agent/workspace/k8s-e2e && git add build && git stash save jdk_11'" + sh "docker exec ${container_name} sh -c 'adduser -D --no-create-home --uid 1000 --gecos build build && apk add git'" + sh "docker exec -u build ${container_name} sh -c \"cd /home/jenkins/agent/workspace/k8s-e2e && git add build && git stash save jdk_${jdk}\"" sh "docker stop ${container_name}" } } From 61bcad7b6d7503ad043e4bf8505cb7e6cbb36030 Mon Sep 17 00:00:00 2001 From: richamishra Date: Thu, 28 Sep 2023 16:55:26 +0530 Subject: [PATCH 230/426] updated pipeline --- .jenkins/pipeline.jenkins | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 721e4509291a..f78509546e7f 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -75,6 +75,8 @@ pipeline { volumeMounts: - name: docker-socket mountPath: /var/run/docker.sock + - name: cassandra-dir + mountPath: /home/jenkins/agent/workspace/k8s-e2e tty: true securityContext: privileged: true @@ -84,6 +86,9 @@ pipeline { - name: docker-socket hostPath: path: /var/run/docker.sock + - name: cassandra-dir + persistentVolumeClaim: + claimName: local-file-pvc ''' } } @@ -346,10 +351,10 @@ def _buildAxis(build_script, toCopy, arch, jdk) { // only stash the project built files. all dependency libraries are restored from the local maven repo using `ant resolver-dist-lib` //stash name: "${arch}_${jdk}", includes: "*.jar,classes/**,test/classes/**,tools/**", excludes: "dist/**,**/lib/**/*.jar," def container_name = "stash_${jdk}" - sh "docker run --name ${container_name} -d -v /home/jenkins/agent/workspace/k8s-e2e:/home/jenkins/agent/workspace/k8s-e2e alpine:latest tail -f /dev/null" - sh "docker exec ${container_name} sh -c 'adduser -D --no-create-home --uid 1000 --gecos build build && apk add git'" - sh "docker exec -u build ${container_name} sh -c \"cd /home/jenkins/agent/workspace/k8s-e2e && git add build && git stash save jdk_${jdk}\"" - sh "docker stop ${container_name}" + //sh "docker run --name ${container_name} -d -v /home/jenkins/agent/workspace/k8s-e2e:/home/jenkins/agent/workspace/k8s-e2e alpine:latest tail -f /dev/null" + //sh "docker exec ${container_name} sh -c 'adduser -D --no-create-home --uid 1000 --gecos build build && apk add git'" + //sh "docker exec -u build ${container_name} sh -c \"cd /home/jenkins/agent/workspace/k8s-e2e && git add build && git stash save jdk_${jdk}\"" + //sh "docker stop ${container_name}" } } } finally { From 82224fe6107303a1606492c1103e40c3bbab5086 Mon Sep 17 00:00:00 2001 From: richamishra Date: Thu, 28 Sep 2023 16:58:15 +0530 Subject: [PATCH 231/426] updated pipeline --- .jenkins/pipeline.jenkins | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index f78509546e7f..b72c8b2b0aa4 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -87,8 +87,8 @@ pipeline { hostPath: path: /var/run/docker.sock - name: cassandra-dir - persistentVolumeClaim: - claimName: local-file-pvc + persistentVolumeClaim: + claimName: local-file-pvc ''' } } From 3051892f4494948a98bc29361d30d32f4717109b Mon Sep 17 00:00:00 2001 From: richamishra Date: Thu, 28 Sep 2023 17:05:27 +0530 Subject: [PATCH 232/426] updated pipeline --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index b72c8b2b0aa4..754e58f314ef 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -76,7 +76,7 @@ pipeline { - name: docker-socket mountPath: /var/run/docker.sock - name: cassandra-dir - mountPath: /home/jenkins/agent/workspace/k8s-e2e + mountPath: /tmp tty: true securityContext: privileged: true From 499af2fda8d8784009bd281c21a80b26224697e1 Mon Sep 17 00:00:00 2001 From: richamishra Date: Thu, 28 Sep 2023 17:39:35 +0530 Subject: [PATCH 233/426] updated pipeline --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 754e58f314ef..b72c8b2b0aa4 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -76,7 +76,7 @@ pipeline { - name: docker-socket mountPath: /var/run/docker.sock - name: cassandra-dir - mountPath: /tmp + mountPath: /home/jenkins/agent/workspace/k8s-e2e tty: true securityContext: privileged: true From 13ff92fcbef5f3ee8a419e32afb5026c147a2c67 Mon Sep 17 00:00:00 2001 From: richamishra Date: Thu, 28 Sep 2023 17:45:08 +0530 Subject: [PATCH 234/426] updated pipeline --- .jenkins/pipeline.jenkins | 1 + 1 file changed, 1 insertion(+) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index b72c8b2b0aa4..221397c5c166 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -97,6 +97,7 @@ pipeline { githubProjectProperty('https://github.com/apache/cassandra') parallelsAlwaysFailFast() timestamps() + skipDefaultCheckout() } environment { javaVersionDefault = javaVersionDefault() From 23bb558d9c319c6f75bfc3127187fa9ec7b11802 Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 3 Oct 2023 15:37:13 +0530 Subject: [PATCH 235/426] updated pipeline --- .jenkins/pipeline.jenkins | 38 +++++++++++++++++++++++++++++++------- 1 file changed, 31 insertions(+), 7 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 221397c5c166..9f01deca1c11 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -71,12 +71,13 @@ pipeline { command: - /bin/sh - -c - - /usr/local/bin/jenkins-agent + - | + /usr/local/bin/jenkins-agent volumeMounts: - name: docker-socket mountPath: /var/run/docker.sock - name: cassandra-dir - mountPath: /home/jenkins/agent/workspace/k8s-e2e + mountPath: /tmp tty: true securityContext: privileged: true @@ -120,6 +121,10 @@ pipeline { stage('artifacts') { steps { sh 'echo "starting artifacts stage"' + //sh 'sleep 3000' + //sh 'cp -r /tmp/* /home/jenkins/agent/workspace/k8s-e2e' + //script { env.javaVersionDefault = javaVersionDefault() } + //script { env.javaVersionsSupported = javaVersionsSupported() } buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") sh 'echo "finishing stage artifacts"' } @@ -154,6 +159,7 @@ pipeline { } stage('stress') { steps { + sh 'cp -r /tmp/* /home/jenkins/agent/workspace/k8s-e2e' testJob(".build/docker/run-tests.sh", "stress-test", 1) sh 'echo "stage stress"' } @@ -264,6 +270,7 @@ pipeline { * Return the default JDK defined by build.xml **/ def javaVersionDefault() { + //sh 'cp -r /tmp/* /home/jenkins/agent/workspace/k8s-e2e' sh (returnStdout: true, script: 'grep \'property\\s*name=\"java.default\"\' build.xml | sed -ne \'s/.*value=\"\\([^\"]*\\)\".*/\\1/p\'').trim() } @@ -271,6 +278,7 @@ def javaVersionDefault() { * Return the supported JDKs defined by build.xml **/ def javaVersionsSupported() { + //sh 'cp -r /tmp/* /home/jenkins/agent/workspace/k8s-e2e' sh (returnStdout: true, script: 'grep \'property\\s*name=\"java.supported\"\' build.xml | sed -ne \'s/.*value=\"\\([^\"]*\\)\".*/\\1/p\'').trim() } @@ -324,7 +332,10 @@ def _buildAxis(build_script, toCopy, arch, jdk) { branchName: "${build_script} ${jdk} ${NODE_NAME}" //cleanWs() echo "build_script: ${build_script}" - checkout scm + //checkout scm + //sh 'cp -r /tmp/* /home/jenkins/agent/workspace/k8s-e2e' + //sh 'cp -r /tmp/.* /home/jenkins/agent/workspace/k8s-e2e' + //sh 'cp -r /tmp/. /tmp/.asf.yaml /tmp/.build /tmp/.jenkins /home/jenkins/agent/workspace/k8s-e2e' sh "echo scm success" tool type: 'jdk', name: "jdk_${jdk}_latest" sh "echo tool success" @@ -347,11 +358,18 @@ def _buildAxis(build_script, toCopy, arch, jdk) { echo "Executing `build_dir=${build_dir} ${build_script} ${jdk} 2>&1 | tee ${logfile}` on ${NODE_NAME}" statusCode = sh returnStatus:true, script:"build_dir=\"${build_dir}\" ${build_script} ${jdk} 2>&1 | tee ${logfile}" sh "echo ${build_script}" + echo "${build_dir}" + //sh 'cp -r /tmp/* /home/jenkins/agent/workspace/k8s-e2e' + def tmp_dir = generatePath(build_dir) + echo "tmp_dir ${tmp_dir}" + sh "cp -r ${build_dir} ${tmp_dir}" if (".build/docker/build-artifacts.sh" == build_script || build_script.contains(".build/docker/_docker_run.sh")) { - dir("${build_dir}") { + //dir("${build_dir}") { + dir("${tmp_dir}") { // only stash the project built files. all dependency libraries are restored from the local maven repo using `ant resolver-dist-lib` //stash name: "${arch}_${jdk}", includes: "*.jar,classes/**,test/classes/**,tools/**", excludes: "dist/**,**/lib/**/*.jar," - def container_name = "stash_${jdk}" + stash name: "${arch}_${jdk}", includes: "*.jar" + //def container_name = "stash_${jdk}" //sh "docker run --name ${container_name} -d -v /home/jenkins/agent/workspace/k8s-e2e:/home/jenkins/agent/workspace/k8s-e2e alpine:latest tail -f /dev/null" //sh "docker exec ${container_name} sh -c 'adduser -D --no-create-home --uid 1000 --gecos build build && apk add git'" //sh "docker exec -u build ${container_name} sh -c \"cd /home/jenkins/agent/workspace/k8s-e2e && git add build && git stash save jdk_${jdk}\"" @@ -445,7 +463,7 @@ def _testAxis(test_script, test_type, toCopy, arch, jdk, python, cython, split) echo "test below branchName" echo "Starting `${test_script} ${test_type} ${split} ${jdk}` with arch=${arch} jdk=${jdk} python${python} cython=${cython} on ${NODE_NAME}" cleanWs() - checkout scm + //checkout scm echo "test scm success" tool type: 'jdk', name: "jdk_${jdk}_latest" // FIXME python – need a tool type (like jdk above) @@ -483,6 +501,12 @@ def _testAxis(test_script, test_type, toCopy, arch, jdk, python, cython, split) if (build_result.result == 'FAILURE') currentBuild.result='FAILURE' } } +def generatePath(build_dir) { + def tmp_dir = '/tmp' + def parts = build_dir.split('/') + def hash = parts.last() + return "${tmp_dir}/${parts[4]}/${hash}" +} def copyToNightlies(sourceFiles, remoteDirectory='') { if (isCanonical()) { @@ -601,4 +625,4 @@ def emailContent() { ------------------------------------------------------------------------------- For complete test report and logs see https://nightlies.apache.org/cassandra/${JOB_NAME}/${BUILD_NUMBER}/ ''' -} +} \ No newline at end of file From d9516833d0ae87c309aaed90eef2062e97dac035 Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 3 Oct 2023 15:43:22 +0530 Subject: [PATCH 236/426] updated pipeline --- .jenkins/pipeline.jenkins | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 9f01deca1c11..1d0000e82834 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -347,6 +347,8 @@ def _buildAxis(build_script, toCopy, arch, jdk) { def logfile = "${JOB_NAME}_${BUILD_NUMBER}_${build_script_safe_name}_jdk${jdk}_${arch}_attempt_${attempt}.log" sh "mkdir -p build" def build_dir = sh( returnStdout: true, script:"mktemp -d ${WORKSPACE}/build/build_docker_run.XXXXXXXXXX" ) + def tmp_dir = generatePath(build_dir) + echo "tmp_dir ${tmp_dir}" try { sh 'echo ${build_script}' if (".build/docker/build-artifacts.sh" != build_script && !build_script.contains(".build/docker/_docker_run.sh")) { @@ -360,8 +362,6 @@ def _buildAxis(build_script, toCopy, arch, jdk) { sh "echo ${build_script}" echo "${build_dir}" //sh 'cp -r /tmp/* /home/jenkins/agent/workspace/k8s-e2e' - def tmp_dir = generatePath(build_dir) - echo "tmp_dir ${tmp_dir}" sh "cp -r ${build_dir} ${tmp_dir}" if (".build/docker/build-artifacts.sh" == build_script || build_script.contains(".build/docker/_docker_run.sh")) { //dir("${build_dir}") { From 68df97fe4c608a257e0f98840f2d8d827a17490f Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 3 Oct 2023 15:47:07 +0530 Subject: [PATCH 237/426] updated pipeline --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 1d0000e82834..369d6c03eb17 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -98,7 +98,7 @@ pipeline { githubProjectProperty('https://github.com/apache/cassandra') parallelsAlwaysFailFast() timestamps() - skipDefaultCheckout() + //skipDefaultCheckout() } environment { javaVersionDefault = javaVersionDefault() From c3830b3f5310992ccce37e36c4b2c48eeb5299a2 Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 3 Oct 2023 15:57:14 +0530 Subject: [PATCH 238/426] updated pipeline --- .jenkins/pipeline.jenkins | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 369d6c03eb17..22a4e8813ad3 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -362,7 +362,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { sh "echo ${build_script}" echo "${build_dir}" //sh 'cp -r /tmp/* /home/jenkins/agent/workspace/k8s-e2e' - sh "cp -r ${build_dir} ${tmp_dir}" + cp -r "${build_dir}" "${tmp_dir}" if (".build/docker/build-artifacts.sh" == build_script || build_script.contains(".build/docker/_docker_run.sh")) { //dir("${build_dir}") { dir("${tmp_dir}") { @@ -505,7 +505,7 @@ def generatePath(build_dir) { def tmp_dir = '/tmp' def parts = build_dir.split('/') def hash = parts.last() - return "${tmp_dir}/${parts[4]}/${hash}" + return "${tmp_dir}/${parts[6]}/${hash}" } def copyToNightlies(sourceFiles, remoteDirectory='') { From 218e98392fc9a90bb6befefb20d7c89d0edc04b3 Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 3 Oct 2023 15:58:57 +0530 Subject: [PATCH 239/426] updated pipeline --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 22a4e8813ad3..8452c55e515f 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -362,7 +362,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { sh "echo ${build_script}" echo "${build_dir}" //sh 'cp -r /tmp/* /home/jenkins/agent/workspace/k8s-e2e' - cp -r "${build_dir}" "${tmp_dir}" + cp -r ${build_dir} ${tmp_dir} if (".build/docker/build-artifacts.sh" == build_script || build_script.contains(".build/docker/_docker_run.sh")) { //dir("${build_dir}") { dir("${tmp_dir}") { From 217c0c32b5993acc254687b590ad202fcfe77c44 Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 3 Oct 2023 16:00:13 +0530 Subject: [PATCH 240/426] updated pipeline --- .jenkins/pipeline.jenkins | 1 + 1 file changed, 1 insertion(+) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 8452c55e515f..d0465fefe19b 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -396,6 +396,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { } } } +} /** * Saves JUnit results, fails if no reports are found From bbcb26d5167da56b6834001ddca7b776af70f81d Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 3 Oct 2023 16:02:56 +0530 Subject: [PATCH 241/426] updated pipeline --- .jenkins/pipeline.jenkins | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index d0465fefe19b..91933e855c0d 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -362,7 +362,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { sh "echo ${build_script}" echo "${build_dir}" //sh 'cp -r /tmp/* /home/jenkins/agent/workspace/k8s-e2e' - cp -r ${build_dir} ${tmp_dir} + sh 'cp -r ${build_dir} ${tmp_dir}' if (".build/docker/build-artifacts.sh" == build_script || build_script.contains(".build/docker/_docker_run.sh")) { //dir("${build_dir}") { dir("${tmp_dir}") { @@ -396,7 +396,6 @@ def _buildAxis(build_script, toCopy, arch, jdk) { } } } -} /** * Saves JUnit results, fails if no reports are found From 08ee5d45b7d2a8c0784b1bb2d2c14f9da9f6e7ad Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 3 Oct 2023 16:13:44 +0530 Subject: [PATCH 242/426] updated pipeline --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 91933e855c0d..3b1c94b9fddc 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -362,7 +362,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { sh "echo ${build_script}" echo "${build_dir}" //sh 'cp -r /tmp/* /home/jenkins/agent/workspace/k8s-e2e' - sh 'cp -r ${build_dir} ${tmp_dir}' + sh 'cp -r "${build_dir}" "${tmp_dir}"' if (".build/docker/build-artifacts.sh" == build_script || build_script.contains(".build/docker/_docker_run.sh")) { //dir("${build_dir}") { dir("${tmp_dir}") { From 87fb5457ed1103370b47322673d4a84ad1e7387c Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 3 Oct 2023 16:19:39 +0530 Subject: [PATCH 243/426] updated pipeline --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 3b1c94b9fddc..5d603d88dff7 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -362,7 +362,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { sh "echo ${build_script}" echo "${build_dir}" //sh 'cp -r /tmp/* /home/jenkins/agent/workspace/k8s-e2e' - sh 'cp -r "${build_dir}" "${tmp_dir}"' + sh "cp -r ${build_dir} ${tmp_dir}" if (".build/docker/build-artifacts.sh" == build_script || build_script.contains(".build/docker/_docker_run.sh")) { //dir("${build_dir}") { dir("${tmp_dir}") { From 1626567cefaacf246dd4c19b7ed5d782b255de3b Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 3 Oct 2023 16:28:22 +0530 Subject: [PATCH 244/426] updated pipeline --- .jenkins/pipeline.jenkins | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 5d603d88dff7..f9082ecf79bc 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -362,7 +362,8 @@ def _buildAxis(build_script, toCopy, arch, jdk) { sh "echo ${build_script}" echo "${build_dir}" //sh 'cp -r /tmp/* /home/jenkins/agent/workspace/k8s-e2e' - sh "cp -r ${build_dir} ${tmp_dir}" + echo "tmp_dir: ${tmp_dir}" + sh "cp -r ${build_dir}/. ${tmp_dir}" if (".build/docker/build-artifacts.sh" == build_script || build_script.contains(".build/docker/_docker_run.sh")) { //dir("${build_dir}") { dir("${tmp_dir}") { From 9b10365d7bd0262c55111cba3d00b1dabb5c6147 Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 3 Oct 2023 16:38:01 +0530 Subject: [PATCH 245/426] updated pipeline --- .jenkins/pipeline.jenkins | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index f9082ecf79bc..0ea81ed150a2 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -506,6 +506,8 @@ def generatePath(build_dir) { def tmp_dir = '/tmp' def parts = build_dir.split('/') def hash = parts.last() + echo "parts[6]: ${parts[6]}" + echo "hash: ${hash}" return "${tmp_dir}/${parts[6]}/${hash}" } From 006c59393b8e7b2da4f38dd5efd38f72853346f6 Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 3 Oct 2023 16:43:03 +0530 Subject: [PATCH 246/426] updated pipeline --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 0ea81ed150a2..97d07e3add25 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -363,7 +363,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { echo "${build_dir}" //sh 'cp -r /tmp/* /home/jenkins/agent/workspace/k8s-e2e' echo "tmp_dir: ${tmp_dir}" - sh "cp -r ${build_dir}/. ${tmp_dir}" + sh "cp -r ${build_dir} '${tmp_dir}'" if (".build/docker/build-artifacts.sh" == build_script || build_script.contains(".build/docker/_docker_run.sh")) { //dir("${build_dir}") { dir("${tmp_dir}") { From 2bff62b069d91a64b6f605c7415452f4155e8d8e Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 3 Oct 2023 16:46:27 +0530 Subject: [PATCH 247/426] updated pipeline --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 97d07e3add25..3214bb89168d 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -363,7 +363,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { echo "${build_dir}" //sh 'cp -r /tmp/* /home/jenkins/agent/workspace/k8s-e2e' echo "tmp_dir: ${tmp_dir}" - sh "cp -r ${build_dir} '${tmp_dir}'" + sh "cp -r ${build_dir} $(tmp_dir)" if (".build/docker/build-artifacts.sh" == build_script || build_script.contains(".build/docker/_docker_run.sh")) { //dir("${build_dir}") { dir("${tmp_dir}") { From 7c48fe38c063b0e007d8eefb172348cfeee66964 Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 3 Oct 2023 16:48:47 +0530 Subject: [PATCH 248/426] updated pipeline --- .jenkins/pipeline.jenkins | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 3214bb89168d..68ab252b42e1 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -362,8 +362,8 @@ def _buildAxis(build_script, toCopy, arch, jdk) { sh "echo ${build_script}" echo "${build_dir}" //sh 'cp -r /tmp/* /home/jenkins/agent/workspace/k8s-e2e' - echo "tmp_dir: ${tmp_dir}" - sh "cp -r ${build_dir} $(tmp_dir)" + echo "${build_dir} ${tmp_dir}" + sh "cp -r ${build_dir} ${tmp_dir}" if (".build/docker/build-artifacts.sh" == build_script || build_script.contains(".build/docker/_docker_run.sh")) { //dir("${build_dir}") { dir("${tmp_dir}") { From d4868279806e5742dfb0db9c100ce7f33e95b3c4 Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 3 Oct 2023 17:03:03 +0530 Subject: [PATCH 249/426] updated pipeline --- .jenkins/pipeline.jenkins | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 68ab252b42e1..5c86712f79a7 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -332,7 +332,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { branchName: "${build_script} ${jdk} ${NODE_NAME}" //cleanWs() echo "build_script: ${build_script}" - //checkout scm + checkout scm //sh 'cp -r /tmp/* /home/jenkins/agent/workspace/k8s-e2e' //sh 'cp -r /tmp/.* /home/jenkins/agent/workspace/k8s-e2e' //sh 'cp -r /tmp/. /tmp/.asf.yaml /tmp/.build /tmp/.jenkins /home/jenkins/agent/workspace/k8s-e2e' @@ -464,7 +464,7 @@ def _testAxis(test_script, test_type, toCopy, arch, jdk, python, cython, split) echo "test below branchName" echo "Starting `${test_script} ${test_type} ${split} ${jdk}` with arch=${arch} jdk=${jdk} python${python} cython=${cython} on ${NODE_NAME}" cleanWs() - //checkout scm + checkout scm echo "test scm success" tool type: 'jdk', name: "jdk_${jdk}_latest" // FIXME python – need a tool type (like jdk above) From 245ed220e9eabf32616e8b40d536a02d8a313e1d Mon Sep 17 00:00:00 2001 From: Nbarola Date: Tue, 3 Oct 2023 17:37:36 +0530 Subject: [PATCH 250/426] update pipeline.jenkins --- .jenkins/pipeline.jenkins | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 5c86712f79a7..09b9151d8972 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -347,7 +347,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { def logfile = "${JOB_NAME}_${BUILD_NUMBER}_${build_script_safe_name}_jdk${jdk}_${arch}_attempt_${attempt}.log" sh "mkdir -p build" def build_dir = sh( returnStdout: true, script:"mktemp -d ${WORKSPACE}/build/build_docker_run.XXXXXXXXXX" ) - def tmp_dir = generatePath(build_dir) + def tmp_dir = generatePath(build_dir.trim()) echo "tmp_dir ${tmp_dir}" try { sh 'echo ${build_script}' @@ -628,4 +628,4 @@ def emailContent() { ------------------------------------------------------------------------------- For complete test report and logs see https://nightlies.apache.org/cassandra/${JOB_NAME}/${BUILD_NUMBER}/ ''' -} \ No newline at end of file +} From 7b3b36aa387d3c514fa1ec504c12b7938d7b8240 Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 3 Oct 2023 17:46:52 +0530 Subject: [PATCH 251/426] updated file --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 09b9151d8972..20913fb921af 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -363,7 +363,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { echo "${build_dir}" //sh 'cp -r /tmp/* /home/jenkins/agent/workspace/k8s-e2e' echo "${build_dir} ${tmp_dir}" - sh "cp -r ${build_dir} ${tmp_dir}" + //sh "cp -r ${build_dir} ${tmp_dir}" if (".build/docker/build-artifacts.sh" == build_script || build_script.contains(".build/docker/_docker_run.sh")) { //dir("${build_dir}") { dir("${tmp_dir}") { From 2fb9d30015246362166343636c188884cd468d69 Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 3 Oct 2023 18:24:58 +0530 Subject: [PATCH 252/426] added trim --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 20913fb921af..d5323d00656d 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -346,7 +346,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { echo "build_script_safe_name: ${build_script_safe_name}" def logfile = "${JOB_NAME}_${BUILD_NUMBER}_${build_script_safe_name}_jdk${jdk}_${arch}_attempt_${attempt}.log" sh "mkdir -p build" - def build_dir = sh( returnStdout: true, script:"mktemp -d ${WORKSPACE}/build/build_docker_run.XXXXXXXXXX" ) + def build_dir = sh( returnStdout: true, script:"mktemp -d ${WORKSPACE}/build/build_docker_run.XXXXXXXXXX" ).trim() def tmp_dir = generatePath(build_dir.trim()) echo "tmp_dir ${tmp_dir}" try { From 65a88351112b52e3c661c42b1d54b47316f0b6cf Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 3 Oct 2023 18:49:31 +0530 Subject: [PATCH 253/426] updated pipeline --- .jenkins/pipeline.jenkins | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index d5323d00656d..2f1920ff62f6 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -159,7 +159,7 @@ pipeline { } stage('stress') { steps { - sh 'cp -r /tmp/* /home/jenkins/agent/workspace/k8s-e2e' + //sh 'cp -r /tmp/* /home/jenkins/agent/workspace/k8s-e2e' testJob(".build/docker/run-tests.sh", "stress-test", 1) sh 'echo "stage stress"' } @@ -474,9 +474,9 @@ def _testAxis(test_script, test_type, toCopy, arch, jdk, python, cython, split) if (attempt > 1) { sleep(60 * attempt) } def logfile = "${JOB_NAME}_${BUILD_NUMBER}_${test_type}_jdk${jdk}_python_${python}_${cython}_${arch}_attempt_${attempt}.log" try { - //dir("build") { - // unstash name: "${arch}_${jdk}" - //} + dir("build") { + unstash name: "${arch}_${jdk}" + } echo "Executing `${test_script} ${test_type} ${split} ${jdk} 2>&1 | tee ${logfile}` on ${NODE_NAME} with jdk=${jdk} python=${python} cython=${cython}" statusCode = sh returnStatus:true, script:"${test_script} ${test_type} ${split} ${jdk} 2>&1 | tee ${logfile}" } finally { From bd837edd10b232eb4fd3f04a0ca3f66c83505f43 Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 3 Oct 2023 19:17:34 +0530 Subject: [PATCH 254/426] updated pipeline --- .jenkins/pipeline.jenkins | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 2f1920ff62f6..f4e0976713a0 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -466,6 +466,7 @@ def _testAxis(test_script, test_type, toCopy, arch, jdk, python, cython, split) cleanWs() checkout scm echo "test scm success" + def build_dir = '/home/jenkins/agent/workspace/k8s-e2e/build' tool type: 'jdk', name: "jdk_${jdk}_latest" // FIXME python – need a tool type (like jdk above) // FIXME cython – need a tool type (like jdk above) @@ -474,7 +475,7 @@ def _testAxis(test_script, test_type, toCopy, arch, jdk, python, cython, split) if (attempt > 1) { sleep(60 * attempt) } def logfile = "${JOB_NAME}_${BUILD_NUMBER}_${test_type}_jdk${jdk}_python_${python}_${cython}_${arch}_attempt_${attempt}.log" try { - dir("build") { + dir("${build_dir}") { unstash name: "${arch}_${jdk}" } echo "Executing `${test_script} ${test_type} ${split} ${jdk} 2>&1 | tee ${logfile}` on ${NODE_NAME} with jdk=${jdk} python=${python} cython=${cython}" From 886d7eb45c601f84372910c4c227a64a6f0e6661 Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 3 Oct 2023 19:28:09 +0530 Subject: [PATCH 255/426] updated pipeline --- .jenkins/pipeline.jenkins | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index f4e0976713a0..5763b5e06a59 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -368,8 +368,8 @@ def _buildAxis(build_script, toCopy, arch, jdk) { //dir("${build_dir}") { dir("${tmp_dir}") { // only stash the project built files. all dependency libraries are restored from the local maven repo using `ant resolver-dist-lib` - //stash name: "${arch}_${jdk}", includes: "*.jar,classes/**,test/classes/**,tools/**", excludes: "dist/**,**/lib/**/*.jar," - stash name: "${arch}_${jdk}", includes: "*.jar" + stash name: "${arch}_${jdk}", includes: "*.jar,classes/**,test/classes/**,tools/**", excludes: "dist/**,**/lib/**/*.jar," + //stash name: "${arch}_${jdk}", includes: "*.jar" //def container_name = "stash_${jdk}" //sh "docker run --name ${container_name} -d -v /home/jenkins/agent/workspace/k8s-e2e:/home/jenkins/agent/workspace/k8s-e2e alpine:latest tail -f /dev/null" //sh "docker exec ${container_name} sh -c 'adduser -D --no-create-home --uid 1000 --gecos build build && apk add git'" From c28eb0a5887b74173aefd427f8577c3f992b01d8 Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 4 Oct 2023 12:09:27 +0530 Subject: [PATCH 256/426] updated pipeline --- .jenkins/pipeline.jenkins | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 5763b5e06a59..065794ae4b9d 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -476,6 +476,8 @@ def _testAxis(test_script, test_type, toCopy, arch, jdk, python, cython, split) def logfile = "${JOB_NAME}_${BUILD_NUMBER}_${test_type}_jdk${jdk}_python_${python}_${cython}_${arch}_attempt_${attempt}.log" try { dir("${build_dir}") { + sh 'ls' + sh 'git status' unstash name: "${arch}_${jdk}" } echo "Executing `${test_script} ${test_type} ${split} ${jdk} 2>&1 | tee ${logfile}` on ${NODE_NAME} with jdk=${jdk} python=${python} cython=${cython}" From bcba87d22df3f6490f9c6d945b98170c21c2b4d2 Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 4 Oct 2023 12:40:53 +0530 Subject: [PATCH 257/426] updated pipeline --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 065794ae4b9d..79d57c1282c8 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -368,7 +368,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { //dir("${build_dir}") { dir("${tmp_dir}") { // only stash the project built files. all dependency libraries are restored from the local maven repo using `ant resolver-dist-lib` - stash name: "${arch}_${jdk}", includes: "*.jar,classes/**,test/classes/**,tools/**", excludes: "dist/**,**/lib/**/*.jar," + stash name: "${arch}_${jdk}", includes: "*.jar,classes/**,test/classes/**,tools/**", excludes: "dist/**,**/lib/**/*.jar" //stash name: "${arch}_${jdk}", includes: "*.jar" //def container_name = "stash_${jdk}" //sh "docker run --name ${container_name} -d -v /home/jenkins/agent/workspace/k8s-e2e:/home/jenkins/agent/workspace/k8s-e2e alpine:latest tail -f /dev/null" From 011179343d750e2c93dfd35274a3e8b7a07e1453 Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 4 Oct 2023 12:49:51 +0530 Subject: [PATCH 258/426] updated pipeline --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 79d57c1282c8..b7be03252e77 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -368,7 +368,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { //dir("${build_dir}") { dir("${tmp_dir}") { // only stash the project built files. all dependency libraries are restored from the local maven repo using `ant resolver-dist-lib` - stash name: "${arch}_${jdk}", includes: "*.jar,classes/**,test/classes/**,tools/**", excludes: "dist/**,**/lib/**/*.jar" + stash name: "${arch}_${jdk}", includes: "*.jar,classes/**,test/classes/**,tools/**" //stash name: "${arch}_${jdk}", includes: "*.jar" //def container_name = "stash_${jdk}" //sh "docker run --name ${container_name} -d -v /home/jenkins/agent/workspace/k8s-e2e:/home/jenkins/agent/workspace/k8s-e2e alpine:latest tail -f /dev/null" From 1e595bc20f1975e19c123d47296b986c5233641b Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 4 Oct 2023 15:39:50 +0530 Subject: [PATCH 259/426] updated sleep --- .build/docker/run-tests.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/.build/docker/run-tests.sh b/.build/docker/run-tests.sh index aba2e905d373..d5bdc11614f4 100755 --- a/.build/docker/run-tests.sh +++ b/.build/docker/run-tests.sh @@ -202,6 +202,7 @@ docker_command="source \${CASSANDRA_DIR}/.build/docker/_set_java.sh ${java_versi docker_id=$(docker run --name ${container_name} ${docker_flags} ${docker_mounts} ${docker_volume_opt} ${image_name} sleep 4h) echo "Running container ${container_name} ${docker_id}" +sleep 600 docker exec --user root ${container_name} bash -c "\${CASSANDRA_DIR}/.build/docker/_create_user.sh cassandra $(id -u) $(id -g)" | tee -a ${logfile} docker exec --user root ${container_name} update-alternatives --set python /usr/bin/python${python_version} | tee -a ${logfile} From 09283dfc4cd4e73767e0bcde25d64519bd485945 Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 4 Oct 2023 16:07:22 +0530 Subject: [PATCH 260/426] updated cp command --- .build/docker/run-tests.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.build/docker/run-tests.sh b/.build/docker/run-tests.sh index d5bdc11614f4..0900c1ec5e26 100755 --- a/.build/docker/run-tests.sh +++ b/.build/docker/run-tests.sh @@ -202,11 +202,13 @@ docker_command="source \${CASSANDRA_DIR}/.build/docker/_set_java.sh ${java_versi docker_id=$(docker run --name ${container_name} ${docker_flags} ${docker_mounts} ${docker_volume_opt} ${image_name} sleep 4h) echo "Running container ${container_name} ${docker_id}" -sleep 600 +#sleep 600 docker exec --user root ${container_name} bash -c "\${CASSANDRA_DIR}/.build/docker/_create_user.sh cassandra $(id -u) $(id -g)" | tee -a ${logfile} docker exec --user root ${container_name} update-alternatives --set python /usr/bin/python${python_version} | tee -a ${logfile} +docker cp /home/jenkins/agent/workspace/k8s-e2e/build ${container_name}:/home/cassandra/cassandra + # capture logs and pid for container docker exec --user cassandra ${container_name} bash -c "${docker_command}" | tee -a ${logfile} status=$? From c341abcc28deee10827729cb6965b7bb4416bc1a Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 4 Oct 2023 16:22:28 +0530 Subject: [PATCH 261/426] updated pipeline --- .build/docker/run-tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.build/docker/run-tests.sh b/.build/docker/run-tests.sh index 0900c1ec5e26..368b393c0fdd 100755 --- a/.build/docker/run-tests.sh +++ b/.build/docker/run-tests.sh @@ -226,7 +226,7 @@ if [ "$status" -ne 0 ] ; then echo "Failure." fi # docker stop in background, ignore errors -( nohup docker stop ${docker_id} >/dev/null 2>/dev/null & ) +#( nohup docker stop ${docker_id} >/dev/null 2>/dev/null & ) xz -f ${logfile} 2>/dev/null From ec091febfc0e420982f040b1b3ddb912458b9998 Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 4 Oct 2023 16:29:10 +0530 Subject: [PATCH 262/426] updated pipeline --- .build/docker/run-tests.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/.build/docker/run-tests.sh b/.build/docker/run-tests.sh index 368b393c0fdd..c5dcb78b012f 100755 --- a/.build/docker/run-tests.sh +++ b/.build/docker/run-tests.sh @@ -213,6 +213,7 @@ docker cp /home/jenkins/agent/workspace/k8s-e2e/build ${container_name}:/home/ca docker exec --user cassandra ${container_name} bash -c "${docker_command}" | tee -a ${logfile} status=$? +docker cp ${container_name}:/home/cassandra/cassandra/build/TESTS-TestSuites.xml /home/jenkins/agent/workspace/k8s-e2e/build if [ "$status" -ne 0 ] ; then echo "${docker_id} failed (${status}), debug…" docker inspect ${docker_id} From 3d6e2bdd8cd24167f5c018a673f2a4fe75e404f1 Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 4 Oct 2023 16:50:10 +0530 Subject: [PATCH 263/426] updated pipeline --- .build/docker/run-tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.build/docker/run-tests.sh b/.build/docker/run-tests.sh index c5dcb78b012f..ac7f94c76635 100755 --- a/.build/docker/run-tests.sh +++ b/.build/docker/run-tests.sh @@ -213,7 +213,7 @@ docker cp /home/jenkins/agent/workspace/k8s-e2e/build ${container_name}:/home/ca docker exec --user cassandra ${container_name} bash -c "${docker_command}" | tee -a ${logfile} status=$? -docker cp ${container_name}:/home/cassandra/cassandra/build/TESTS-TestSuites.xml /home/jenkins/agent/workspace/k8s-e2e/build +docker cp ${container_name}:/home/cassandra/cassandra/build/test/output /home/jenkins/agent/workspace/k8s-e2e/build/test if [ "$status" -ne 0 ] ; then echo "${docker_id} failed (${status}), debug…" docker inspect ${docker_id} From 078ca8e14f5ecb11904611da8fb0ddec85556533 Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 4 Oct 2023 17:16:00 +0530 Subject: [PATCH 264/426] updated pipeline --- .jenkins/pipeline.jenkins | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index b7be03252e77..a3e5a92654d7 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -500,9 +500,9 @@ def _testAxis(test_script, test_type, toCopy, arch, jdk, python, cython, split) } } } - if (build_result.result != 'SUCCESS') unstable("${build_name} failures") - if (build_result.result == 'ABORTED' && currentBuild.result != 'FAILURE') currentBuild.result='ABORTED' - if (build_result.result == 'FAILURE') currentBuild.result='FAILURE' + if (currentBuild.result != 'SUCCESS') unstable("${build_name} failures") + if (currentBuild.result == 'ABORTED' && currentBuild.result != 'FAILURE') currentBuild.result='ABORTED' + if (currentBuild.result == 'FAILURE') currentBuild.result='FAILURE' } } def generatePath(build_dir) { From 395b9be23dba21720d3b37998faade333dce16ba Mon Sep 17 00:00:00 2001 From: richamishra Date: Thu, 5 Oct 2023 12:36:40 +0530 Subject: [PATCH 265/426] updated build dir --- .build/docker/_docker_run.sh | 1 + .jenkins/pipeline.jenkins | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.build/docker/_docker_run.sh b/.build/docker/_docker_run.sh index ef4b98f65624..026cea3bc8e6 100755 --- a/.build/docker/_docker_run.sh +++ b/.build/docker/_docker_run.sh @@ -138,6 +138,7 @@ echo "Running container ${container_name} ${container_id}" docker exec --user root ${container_name} bash -c "/home/build/cassandra/.build/docker/_create_user.sh build $(id -u) $(id -g)" docker exec --user build ${container_name} bash -c "${docker_command}" RETURN=$? +docker cp ${container_name}:${build_dir} /home/jenkins/agent/workspace/k8s-e2e/build docker stop ${container_name} >/dev/null popd >/dev/null diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index a3e5a92654d7..cce0a6ba0229 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -366,7 +366,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { //sh "cp -r ${build_dir} ${tmp_dir}" if (".build/docker/build-artifacts.sh" == build_script || build_script.contains(".build/docker/_docker_run.sh")) { //dir("${build_dir}") { - dir("${tmp_dir}") { + dir("${build_dir}") { // only stash the project built files. all dependency libraries are restored from the local maven repo using `ant resolver-dist-lib` stash name: "${arch}_${jdk}", includes: "*.jar,classes/**,test/classes/**,tools/**" //stash name: "${arch}_${jdk}", includes: "*.jar" From f2a250464f9391318ef6d0fe9e8ad9b414ef8ec9 Mon Sep 17 00:00:00 2001 From: richamishra Date: Thu, 5 Oct 2023 12:56:38 +0530 Subject: [PATCH 266/426] updated build dir --- .build/docker/_docker_run.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.build/docker/_docker_run.sh b/.build/docker/_docker_run.sh index 026cea3bc8e6..969ce5af357f 100755 --- a/.build/docker/_docker_run.sh +++ b/.build/docker/_docker_run.sh @@ -138,7 +138,8 @@ echo "Running container ${container_name} ${container_id}" docker exec --user root ${container_name} bash -c "/home/build/cassandra/.build/docker/_create_user.sh build $(id -u) $(id -g)" docker exec --user build ${container_name} bash -c "${docker_command}" RETURN=$? -docker cp ${container_name}:${build_dir} /home/jenkins/agent/workspace/k8s-e2e/build +current_build_dir=$(basename "${build_dir}") +docker cp ${container_name}:"/home/build/cassandra/build/${current_build_dir}" /home/jenkins/agent/workspace/k8s-e2e/build docker stop ${container_name} >/dev/null popd >/dev/null From ed247ae46877d484730d46d8ee975712661f4fdc Mon Sep 17 00:00:00 2001 From: richamishra Date: Thu, 5 Oct 2023 13:25:55 +0530 Subject: [PATCH 267/426] added summary and fqltool --- .jenkins/pipeline.jenkins | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index cce0a6ba0229..113652eaf9ae 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -166,7 +166,7 @@ pipeline { } stage('fqltool') { steps { - //testJob(".build/docker/run-tests.sh", "fqltool-test", 1) + testJob(".build/docker/run-tests.sh", "fqltool-test", 1) sh 'echo "stage fqltool"' } } @@ -246,14 +246,14 @@ pipeline { stage('Summary') { steps { // FIXME is this needed if each job is submitting its own results to the overall pipeline ?? - //junit testResults: '**/build/test/**/TEST*.xml,**/cqlshlib.xml,**/nosetests.xml', testDataPublishers: [[$class: 'StabilityTestDataPublisher']] + junit testResults: '**/build/test/**/TEST*.xml,**/cqlshlib.xml,**/nosetests.xml', testDataPublishers: [[$class: 'StabilityTestDataPublisher']] //sendNotifications() // FIXME how to collect and build one test report file ?? - //generateUnifiedTestReport() + generateUnifiedTestReport() - //collectConsoleLog() // FIXME should this be in a final instead ? (we always want the console log archived) + collectConsoleLog() // FIXME should this be in a final instead ? (we always want the console log archived) //copyToNightlies('console.log.xz,TESTS-TestSuites.xml.xz') sh 'echo "stage summary"' } From 059b2c7d74a3c9f16da9c0dc88e0277fa8c3fcec Mon Sep 17 00:00:00 2001 From: richamishra Date: Thu, 5 Oct 2023 15:41:36 +0530 Subject: [PATCH 268/426] updated summary --- .jenkins/pipeline.jenkins | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 113652eaf9ae..da8ba83925cb 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -245,9 +245,10 @@ pipeline { } stage('Summary') { steps { + container('jnlp') { // FIXME is this needed if each job is submitting its own results to the overall pipeline ?? junit testResults: '**/build/test/**/TEST*.xml,**/cqlshlib.xml,**/nosetests.xml', testDataPublishers: [[$class: 'StabilityTestDataPublisher']] - + //sendNotifications() // FIXME how to collect and build one test report file ?? @@ -257,6 +258,7 @@ pipeline { //copyToNightlies('console.log.xz,TESTS-TestSuites.xml.xz') sh 'echo "stage summary"' } + } } } } From fbbbbe48b85b960d920abbe23dc2566eea8762a1 Mon Sep 17 00:00:00 2001 From: richamishra Date: Thu, 5 Oct 2023 15:59:49 +0530 Subject: [PATCH 269/426] updated pipeline --- .jenkins/pipeline.jenkins | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index da8ba83925cb..b8c7fe68d948 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -245,19 +245,19 @@ pipeline { } stage('Summary') { steps { - container('jnlp') { + //container('jnlp') { // FIXME is this needed if each job is submitting its own results to the overall pipeline ?? - junit testResults: '**/build/test/**/TEST*.xml,**/cqlshlib.xml,**/nosetests.xml', testDataPublishers: [[$class: 'StabilityTestDataPublisher']] + //junit testResults: '**/build/test/**/TEST*.xml,**/cqlshlib.xml,**/nosetests.xml', testDataPublishers: [[$class: 'StabilityTestDataPublisher']] //sendNotifications() // FIXME how to collect and build one test report file ?? generateUnifiedTestReport() - collectConsoleLog() // FIXME should this be in a final instead ? (we always want the console log archived) + //collectConsoleLog() // FIXME should this be in a final instead ? (we always want the console log archived) //copyToNightlies('console.log.xz,TESTS-TestSuites.xml.xz') sh 'echo "stage summary"' - } + //} } } } From d6ec04d29674d7f14d6e7a16f91a1f82b8233572 Mon Sep 17 00:00:00 2001 From: richamishra Date: Thu, 5 Oct 2023 16:22:02 +0530 Subject: [PATCH 270/426] updated pipeline --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index b8c7fe68d948..44ba3d5dbb73 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -252,7 +252,7 @@ pipeline { //sendNotifications() // FIXME how to collect and build one test report file ?? - generateUnifiedTestReport() + //generateUnifiedTestReport() //collectConsoleLog() // FIXME should this be in a final instead ? (we always want the console log archived) //copyToNightlies('console.log.xz,TESTS-TestSuites.xml.xz') From 0f3e13e7212656d8e963070283aa50be7586fb65 Mon Sep 17 00:00:00 2001 From: richamishra Date: Thu, 5 Oct 2023 16:39:56 +0530 Subject: [PATCH 271/426] updated pipeline --- .build/docker/run-tests.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.build/docker/run-tests.sh b/.build/docker/run-tests.sh index ac7f94c76635..2c325ae3083e 100755 --- a/.build/docker/run-tests.sh +++ b/.build/docker/run-tests.sh @@ -82,7 +82,6 @@ dockerfile="ubuntu2004_test.docker" image_tag="$(md5sum docker/${dockerfile} | cut -d' ' -f1)" image_name="apache/cassandra-${dockerfile/.docker/}:${image_tag}" docker_mounts="-v ${cassandra_dir}:/home/cassandra/cassandra -v "${build_dir}":/home/cassandra/cassandra/build -v ${HOME}/.m2/repository:/home/cassandra/.m2/repository" - # Look for existing docker image, otherwise build if ! ( [[ "$(docker images -q ${image_name} 2>/dev/null)" != "" ]] ) ; then # try docker login to increase dockerhub rate limits @@ -212,8 +211,8 @@ docker cp /home/jenkins/agent/workspace/k8s-e2e/build ${container_name}:/home/ca # capture logs and pid for container docker exec --user cassandra ${container_name} bash -c "${docker_command}" | tee -a ${logfile} status=$? - docker cp ${container_name}:/home/cassandra/cassandra/build/test/output /home/jenkins/agent/workspace/k8s-e2e/build/test +docker exec --user cassandra ${container_name} bash -c "mkdir -p /home/cassandra/cassandra/result/1/${target} && cp -r /home/cassandra/cassandra/build/test/output /home/cassandra/cassandra/result/1/${target}" if [ "$status" -ne 0 ] ; then echo "${docker_id} failed (${status}), debug…" docker inspect ${docker_id} From 04dde10476e61bd9d399e0fdbbf60a1aa1b2177b Mon Sep 17 00:00:00 2001 From: richamishra Date: Thu, 5 Oct 2023 16:55:25 +0530 Subject: [PATCH 272/426] updated pipeline --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 44ba3d5dbb73..7d9b66b03f07 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -160,7 +160,7 @@ pipeline { stage('stress') { steps { //sh 'cp -r /tmp/* /home/jenkins/agent/workspace/k8s-e2e' - testJob(".build/docker/run-tests.sh", "stress-test", 1) + //testJob(".build/docker/run-tests.sh", "stress-test", 1) sh 'echo "stage stress"' } } From 62909cbe415080a89b22333c91f9c85a3d6dc210 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Fri, 6 Oct 2023 12:27:23 +0530 Subject: [PATCH 273/426] update pipeline.jenkins --- .jenkins/pipeline.jenkins | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 7d9b66b03f07..8c6614423e1e 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -257,6 +257,15 @@ pipeline { //collectConsoleLog() // FIXME should this be in a final instead ? (we always want the console log archived) //copyToNightlies('console.log.xz,TESTS-TestSuites.xml.xz') sh 'echo "stage summary"' + dir("build") { + unstash name: "cassandra_11_stress-test" + } + + post { + always { + archiveArtifacts artifacts: 'build/test/output' + } + } //} } } @@ -502,6 +511,17 @@ def _testAxis(test_script, test_type, toCopy, arch, jdk, python, cython, split) } } } + + dir("${build_dir}") { + // only stash the project built files. all dependency libraries are restored from the local maven repo using `ant resolver-dist-lib` + stash name: "${arch}_${jdk}_${test_type}", includes: "test/output/**" + //stash name: "${arch}_${jdk}", includes: "*.jar" + //def container_name = "stash_${jdk}" + //sh "docker run --name ${container_name} -d -v /home/jenkins/agent/workspace/k8s-e2e:/home/jenkins/agent/workspace/k8s-e2e alpine:latest tail -f /dev/null" + //sh "docker exec ${container_name} sh -c 'adduser -D --no-create-home --uid 1000 --gecos build build && apk add git'" + //sh "docker exec -u build ${container_name} sh -c \"cd /home/jenkins/agent/workspace/k8s-e2e && git add build && git stash save jdk_${jdk}\"" + //sh "docker stop ${container_name}" + } if (currentBuild.result != 'SUCCESS') unstable("${build_name} failures") if (currentBuild.result == 'ABORTED' && currentBuild.result != 'FAILURE') currentBuild.result='ABORTED' if (currentBuild.result == 'FAILURE') currentBuild.result='FAILURE' From 4ff1bce2a151c04f24eac1e0949e3ba1d5fd3249 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Fri, 6 Oct 2023 12:46:06 +0530 Subject: [PATCH 274/426] update pipeline.jenkins --- .jenkins/pipeline.jenkins | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 8c6614423e1e..837316e08067 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -261,15 +261,16 @@ pipeline { unstash name: "cassandra_11_stress-test" } - post { - always { - archiveArtifacts artifacts: 'build/test/output' - } - } + //} } } } + post { + always { + archiveArtifacts artifacts: 'build/test/output' + } + } } /////////////////////////// From 0bc5d09d563a659f1d4e18bf26e1a2473d1d28bd Mon Sep 17 00:00:00 2001 From: Nbarola Date: Fri, 6 Oct 2023 16:13:34 +0530 Subject: [PATCH 275/426] update pipeline.jenkins with temp build dir for test jobs --- .jenkins/pipeline.jenkins | 63 ++++++++++++++++++++++++++------------- 1 file changed, 43 insertions(+), 20 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 837316e08067..d78edf469176 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -160,7 +160,7 @@ pipeline { stage('stress') { steps { //sh 'cp -r /tmp/* /home/jenkins/agent/workspace/k8s-e2e' - //testJob(".build/docker/run-tests.sh", "stress-test", 1) + testJob(".build/docker/run-tests.sh", "stress-test", 1) sh 'echo "stage stress"' } } @@ -245,6 +245,11 @@ pipeline { } stage('Summary') { steps { + sh 'echo "stage summary"' + dir("build") { + unstash name: "cassandra_11_stress-test" + //unstash name: "cassandra_11_fqltools" + } //container('jnlp') { // FIXME is this needed if each job is submitting its own results to the overall pipeline ?? //junit testResults: '**/build/test/**/TEST*.xml,**/cqlshlib.xml,**/nosetests.xml', testDataPublishers: [[$class: 'StabilityTestDataPublisher']] @@ -256,21 +261,18 @@ pipeline { //collectConsoleLog() // FIXME should this be in a final instead ? (we always want the console log archived) //copyToNightlies('console.log.xz,TESTS-TestSuites.xml.xz') - sh 'echo "stage summary"' - dir("build") { - unstash name: "cassandra_11_stress-test" - } + //} } } } - post { - always { - archiveArtifacts artifacts: 'build/test/output' - } - } + //post { + // always { + // archiveArtifacts artifacts: 'build/test/output' + // } + // } } /////////////////////////// @@ -418,12 +420,12 @@ def _buildAxis(build_script, toCopy, arch, jdk) { **/ def testJob(test_script, test_type, splits=1, toCopy='') { //def archs = ['cassandra', 'cassandra-arm64'] // uncomment when ready for arm64 testing - def archs = ['cassandra'] + //def archs = ['cassandra'] //def jdks = "${javaVersionsSupported}".split(/,/, -1) // TODO uncomment – this is the real mcoy - def jdks = ['11'] - def pythons = ['3.7'] - def cythons = ['no'] - def tests_per_arch = [:] + //def jdks = ['11'] + //def pythons = ['3.7'] + //def cythons = ['no'] + //def tests_per_arch = [:] // XXX – the following matrix over arrays should be better done with multi-arrays and recursion @@ -447,7 +449,7 @@ def testJob(test_script, test_type, splits=1, toCopy='') { // def split = s // tests_per_split[split] = { // _testAxis(test_script, test_type, toCopy, arch, jdk, python, cython, "${split}/${splits}") - _testAxis(".build/docker/run-tests.sh", "stress-test", " ", "cassandra", "11", "3.7", "no", "1/1") +// _testAxis(".build/docker/run-tests.sh", "stress-test", " ", "cassandra", "11", "3.7", "no", "1/1") // } // } // parallel(tests_per_split) @@ -463,6 +465,28 @@ def testJob(test_script, test_type, splits=1, toCopy='') { // } // } // parallel(tests_per_arch) + + +# test code +def archs = ['cassandra'] +//def jdks = "${javaVersionsSupported}".split(/,/, -1) // TODO uncomment – this is the real mcoy +def jdks = ['11'] + +def tests_per_arch = [:] + +for (a in archs) { + def arch = a + tests_per_arch[arch] = { + def tests_per_jdk = [:] + for (j in jdks) { + def jdk = j + tests_per_jdk[jdk] = { _testAxis(test_script, test_type, toCopy, arch, jdk, '3.7', 'no', "${split}/${splits}") } + } + parallel(tests_per_jdk) + } +} +parallel(tests_per_arch) + } /** @@ -478,7 +502,8 @@ def _testAxis(test_script, test_type, toCopy, arch, jdk, python, cython, split) cleanWs() checkout scm echo "test scm success" - def build_dir = '/home/jenkins/agent/workspace/k8s-e2e/build' + //def build_dir = '/home/jenkins/agent/workspace/k8s-e2e/build' + def build_dir = sh( returnStdout: true, script:"mktemp -d ${WORKSPACE}/build/build_docker_run.XXXXXXXXXX" ).trim() tool type: 'jdk', name: "jdk_${jdk}_latest" // FIXME python – need a tool type (like jdk above) // FIXME cython – need a tool type (like jdk above) @@ -488,12 +513,10 @@ def _testAxis(test_script, test_type, toCopy, arch, jdk, python, cython, split) def logfile = "${JOB_NAME}_${BUILD_NUMBER}_${test_type}_jdk${jdk}_python_${python}_${cython}_${arch}_attempt_${attempt}.log" try { dir("${build_dir}") { - sh 'ls' - sh 'git status' unstash name: "${arch}_${jdk}" } echo "Executing `${test_script} ${test_type} ${split} ${jdk} 2>&1 | tee ${logfile}` on ${NODE_NAME} with jdk=${jdk} python=${python} cython=${cython}" - statusCode = sh returnStatus:true, script:"${test_script} ${test_type} ${split} ${jdk} 2>&1 | tee ${logfile}" + statusCode = sh returnStatus:true, script:""build_dir=\"${build_dir}\" ${test_script} ${test_type} ${split} ${jdk} 2>&1 | tee ${logfile}" } finally { attempt = attempt + 1 if (0 == statusCode) { From d603628cc827930a58b996c290aa418547410ab0 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Fri, 6 Oct 2023 16:14:58 +0530 Subject: [PATCH 276/426] fix comment in pipeline.jenkins --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index d78edf469176..f91e93585065 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -467,7 +467,7 @@ def testJob(test_script, test_type, splits=1, toCopy='') { // parallel(tests_per_arch) -# test code +// test code def archs = ['cassandra'] //def jdks = "${javaVersionsSupported}".split(/,/, -1) // TODO uncomment – this is the real mcoy def jdks = ['11'] From 6e8efd93e1db9b52b4d5cfe58e9456fb7c4adc87 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Fri, 6 Oct 2023 16:16:08 +0530 Subject: [PATCH 277/426] fix typo in pipeline.jenkins --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index f91e93585065..d0aae3a00116 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -516,7 +516,7 @@ def _testAxis(test_script, test_type, toCopy, arch, jdk, python, cython, split) unstash name: "${arch}_${jdk}" } echo "Executing `${test_script} ${test_type} ${split} ${jdk} 2>&1 | tee ${logfile}` on ${NODE_NAME} with jdk=${jdk} python=${python} cython=${cython}" - statusCode = sh returnStatus:true, script:""build_dir=\"${build_dir}\" ${test_script} ${test_type} ${split} ${jdk} 2>&1 | tee ${logfile}" + statusCode = sh returnStatus:true, script:"build_dir=\"${build_dir}\" ${test_script} ${test_type} ${split} ${jdk} 2>&1 | tee ${logfile}" } finally { attempt = attempt + 1 if (0 == statusCode) { From c95bd00502c5ae5f1ca664f071d4060c907fe341 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Fri, 6 Oct 2023 16:43:08 +0530 Subject: [PATCH 278/426] provide 1/1 for split for testAxix in pipeline.jenkins --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index d0aae3a00116..bc8dac554c85 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -480,7 +480,7 @@ for (a in archs) { def tests_per_jdk = [:] for (j in jdks) { def jdk = j - tests_per_jdk[jdk] = { _testAxis(test_script, test_type, toCopy, arch, jdk, '3.7', 'no', "${split}/${splits}") } + tests_per_jdk[jdk] = { _testAxis(test_script, test_type, toCopy, arch, jdk, '3.7', 'no', "1/1") } } parallel(tests_per_jdk) } From 5cf5a815f2888ddf1827b43f393ec376f2916291 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Fri, 6 Oct 2023 16:57:11 +0530 Subject: [PATCH 279/426] add create build dir for testAxis() in pipeline.jenkins --- .jenkins/pipeline.jenkins | 1 + 1 file changed, 1 insertion(+) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index bc8dac554c85..762ef85414a8 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -503,6 +503,7 @@ def _testAxis(test_script, test_type, toCopy, arch, jdk, python, cython, split) checkout scm echo "test scm success" //def build_dir = '/home/jenkins/agent/workspace/k8s-e2e/build' + sh "mkdir -p build" def build_dir = sh( returnStdout: true, script:"mktemp -d ${WORKSPACE}/build/build_docker_run.XXXXXXXXXX" ).trim() tool type: 'jdk', name: "jdk_${jdk}_latest" // FIXME python – need a tool type (like jdk above) From 7bd388fabe7af66c1fde8165f62085de2b698eef Mon Sep 17 00:00:00 2001 From: Nbarola Date: Fri, 6 Oct 2023 17:15:14 +0530 Subject: [PATCH 280/426] update path for docker cp --- .build/docker/_docker_run.sh | 2 +- .build/docker/run-tests.sh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.build/docker/_docker_run.sh b/.build/docker/_docker_run.sh index 969ce5af357f..b07f54dd6e49 100755 --- a/.build/docker/_docker_run.sh +++ b/.build/docker/_docker_run.sh @@ -117,7 +117,7 @@ container_name="cassandra_${dockerfile/.docker/}_${un_script_name}_jdk${java_ver # \${CASSANDRA_DIR}/.build/${run_script} ${@:4} ; exit \$? " docker_command="export ANT_OPTS=\"-Dbuild.dir=\${DIST_DIR} ${CASSANDRA_DOCKER_ANT_OPTS}\" ; \ - source /home/build/cassandra/cassandra/.build/docker/_set_java.sh ${java_version} ; \ + source /home/build/cassandra/.build/docker/_set_java.sh ${java_version} ; \ /home/build/cassandra/.build/${run_script} ${@:4} ; exit \$? " # run without the default seccomp profile diff --git a/.build/docker/run-tests.sh b/.build/docker/run-tests.sh index 2c325ae3083e..5010fa314e86 100755 --- a/.build/docker/run-tests.sh +++ b/.build/docker/run-tests.sh @@ -206,13 +206,13 @@ echo "Running container ${container_name} ${docker_id}" docker exec --user root ${container_name} bash -c "\${CASSANDRA_DIR}/.build/docker/_create_user.sh cassandra $(id -u) $(id -g)" | tee -a ${logfile} docker exec --user root ${container_name} update-alternatives --set python /usr/bin/python${python_version} | tee -a ${logfile} -docker cp /home/jenkins/agent/workspace/k8s-e2e/build ${container_name}:/home/cassandra/cassandra +docker cp ${build_dir} ${container_name}:/home/cassandra/cassandra # capture logs and pid for container docker exec --user cassandra ${container_name} bash -c "${docker_command}" | tee -a ${logfile} status=$? -docker cp ${container_name}:/home/cassandra/cassandra/build/test/output /home/jenkins/agent/workspace/k8s-e2e/build/test -docker exec --user cassandra ${container_name} bash -c "mkdir -p /home/cassandra/cassandra/result/1/${target} && cp -r /home/cassandra/cassandra/build/test/output /home/cassandra/cassandra/result/1/${target}" +docker cp ${container_name}:/home/cassandra/cassandra/build/build_docker_run*/test/output ${build_dir} +#docker exec --user cassandra ${container_name} bash -c "mkdir -p /home/cassandra/cassandra/result/1/${target} && cp -r /home/cassandra/cassandra/build/test/output /home/cassandra/cassandra/result/1/${target}" if [ "$status" -ne 0 ] ; then echo "${docker_id} failed (${status}), debug…" docker inspect ${docker_id} From b73b5d01ceeea9bb39ca7f29ef00c4858ddc8889 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Fri, 6 Oct 2023 17:30:00 +0530 Subject: [PATCH 281/426] update path for docker cp --- .build/docker/run-tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.build/docker/run-tests.sh b/.build/docker/run-tests.sh index 5010fa314e86..7e3e9aad943b 100755 --- a/.build/docker/run-tests.sh +++ b/.build/docker/run-tests.sh @@ -206,7 +206,7 @@ echo "Running container ${container_name} ${docker_id}" docker exec --user root ${container_name} bash -c "\${CASSANDRA_DIR}/.build/docker/_create_user.sh cassandra $(id -u) $(id -g)" | tee -a ${logfile} docker exec --user root ${container_name} update-alternatives --set python /usr/bin/python${python_version} | tee -a ${logfile} -docker cp ${build_dir} ${container_name}:/home/cassandra/cassandra +docker cp ${build_dir} ${container_name}:/home/cassandra/cassandra/build # capture logs and pid for container docker exec --user cassandra ${container_name} bash -c "${docker_command}" | tee -a ${logfile} From 1adb11cf63de325a805172d0ab52942eb9630ec9 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Fri, 6 Oct 2023 17:45:20 +0530 Subject: [PATCH 282/426] add DIST dir variable to run the test script in pipeline.jenkins --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 762ef85414a8..cf0b5b5fac8f 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -517,7 +517,7 @@ def _testAxis(test_script, test_type, toCopy, arch, jdk, python, cython, split) unstash name: "${arch}_${jdk}" } echo "Executing `${test_script} ${test_type} ${split} ${jdk} 2>&1 | tee ${logfile}` on ${NODE_NAME} with jdk=${jdk} python=${python} cython=${cython}" - statusCode = sh returnStatus:true, script:"build_dir=\"${build_dir}\" ${test_script} ${test_type} ${split} ${jdk} 2>&1 | tee ${logfile}" + statusCode = sh returnStatus:true, script:"DIST_DIR=\"${build_dir}\" build_dir=\"${build_dir}\" ${test_script} ${test_type} ${split} ${jdk} 2>&1 | tee ${logfile}" } finally { attempt = attempt + 1 if (0 == statusCode) { From 63694b52c7de9e1ef5d043d7ba243abbca7bf64b Mon Sep 17 00:00:00 2001 From: Nbarola Date: Fri, 6 Oct 2023 18:12:29 +0530 Subject: [PATCH 283/426] add DIST dir argument to run the test script in pipeline.jenkins --- .build/docker/run-tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.build/docker/run-tests.sh b/.build/docker/run-tests.sh index 7e3e9aad943b..b1b866bdb2e9 100755 --- a/.build/docker/run-tests.sh +++ b/.build/docker/run-tests.sh @@ -195,7 +195,7 @@ logfile="${build_dir}/test/logs/docker_attach_${container_name}.log" # set java to java_version # execute the run_script docker_command="source \${CASSANDRA_DIR}/.build/docker/_set_java.sh ${java_version} ; \ - \${CASSANDRA_DIR}/.build/docker/_docker_init_tests.sh ${target} ${split_chunk} ; exit \$?" + \${CASSANDRA_DIR}/.build/docker/_docker_init_tests.sh ${target} ${split_chunk} ${DIST_DIR}; exit \$?" # start the container, timeout after 4 hours docker_id=$(docker run --name ${container_name} ${docker_flags} ${docker_mounts} ${docker_volume_opt} ${image_name} sleep 4h) From d5db6837457eafa57740728d1bb4f57fc52e489b Mon Sep 17 00:00:00 2001 From: Nbarola Date: Fri, 6 Oct 2023 18:30:48 +0530 Subject: [PATCH 284/426] add DIST dir argument to run the test script in pipeline.jenkins --- .build/docker/run-tests.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.build/docker/run-tests.sh b/.build/docker/run-tests.sh index b1b866bdb2e9..a76c8d785706 100755 --- a/.build/docker/run-tests.sh +++ b/.build/docker/run-tests.sh @@ -194,8 +194,9 @@ logfile="${build_dir}/test/logs/docker_attach_${container_name}.log" # Docker commands: # set java to java_version # execute the run_script -docker_command="source \${CASSANDRA_DIR}/.build/docker/_set_java.sh ${java_version} ; \ - \${CASSANDRA_DIR}/.build/docker/_docker_init_tests.sh ${target} ${split_chunk} ${DIST_DIR}; exit \$?" +docker_command="DIST_DIR=\"${DIST_DIR}\"; \ + source \${CASSANDRA_DIR}/.build/docker/_set_java.sh ${java_version} ; \ + \${CASSANDRA_DIR}/.build/docker/_docker_init_tests.sh ${target} ${split_chunk}; exit \$?" # start the container, timeout after 4 hours docker_id=$(docker run --name ${container_name} ${docker_flags} ${docker_mounts} ${docker_volume_opt} ${image_name} sleep 4h) From e5c45fcfd9283cd0bfd2515e6598fde219b176e6 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Fri, 6 Oct 2023 19:15:07 +0530 Subject: [PATCH 285/426] add current_build_dir argument to run the test script in pipeline.jenkins --- .build/docker/run-tests.sh | 2 +- .jenkins/pipeline.jenkins | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.build/docker/run-tests.sh b/.build/docker/run-tests.sh index a76c8d785706..2af96976b6fc 100755 --- a/.build/docker/run-tests.sh +++ b/.build/docker/run-tests.sh @@ -194,7 +194,7 @@ logfile="${build_dir}/test/logs/docker_attach_${container_name}.log" # Docker commands: # set java to java_version # execute the run_script -docker_command="DIST_DIR=\"${DIST_DIR}\"; \ +docker_command="DIST_DIR=\"${CASSANDRA_DIR}/${current_build_dir}\"; \ source \${CASSANDRA_DIR}/.build/docker/_set_java.sh ${java_version} ; \ \${CASSANDRA_DIR}/.build/docker/_docker_init_tests.sh ${target} ${split_chunk}; exit \$?" diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index cf0b5b5fac8f..38c80b6c1db0 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -517,7 +517,8 @@ def _testAxis(test_script, test_type, toCopy, arch, jdk, python, cython, split) unstash name: "${arch}_${jdk}" } echo "Executing `${test_script} ${test_type} ${split} ${jdk} 2>&1 | tee ${logfile}` on ${NODE_NAME} with jdk=${jdk} python=${python} cython=${cython}" - statusCode = sh returnStatus:true, script:"DIST_DIR=\"${build_dir}\" build_dir=\"${build_dir}\" ${test_script} ${test_type} ${split} ${jdk} 2>&1 | tee ${logfile}" + def current_build_dir = sh($(basename "${build_dir}")) + statusCode = sh returnStatus:true, script:"current_build_dir=\"${current_build_dir}\" build_dir=\"${build_dir}\" ${test_script} ${test_type} ${split} ${jdk} 2>&1 | tee ${logfile}" } finally { attempt = attempt + 1 if (0 == statusCode) { From b9787685953ab6803deace175894a2edad33dbd9 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Fri, 6 Oct 2023 19:17:26 +0530 Subject: [PATCH 286/426] add current_build_dir argument to run the test script in pipeline.jenkins --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 38c80b6c1db0..70797323c21c 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -517,7 +517,7 @@ def _testAxis(test_script, test_type, toCopy, arch, jdk, python, cython, split) unstash name: "${arch}_${jdk}" } echo "Executing `${test_script} ${test_type} ${split} ${jdk} 2>&1 | tee ${logfile}` on ${NODE_NAME} with jdk=${jdk} python=${python} cython=${cython}" - def current_build_dir = sh($(basename "${build_dir}")) + sh "current_build_dir = $(basename ${build_dir})" statusCode = sh returnStatus:true, script:"current_build_dir=\"${current_build_dir}\" build_dir=\"${build_dir}\" ${test_script} ${test_type} ${split} ${jdk} 2>&1 | tee ${logfile}" } finally { attempt = attempt + 1 From 08189f1ba11249b2d3f679e40abe21f2b841a823 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Fri, 6 Oct 2023 19:20:22 +0530 Subject: [PATCH 287/426] add current_build_dir argument to run the test script in pipeline.jenkins --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 70797323c21c..9d5c89b0725a 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -517,7 +517,7 @@ def _testAxis(test_script, test_type, toCopy, arch, jdk, python, cython, split) unstash name: "${arch}_${jdk}" } echo "Executing `${test_script} ${test_type} ${split} ${jdk} 2>&1 | tee ${logfile}` on ${NODE_NAME} with jdk=${jdk} python=${python} cython=${cython}" - sh "current_build_dir = $(basename ${build_dir})" + def current_build_dir = sh(returnStdout: true, script: 'basename "${build_dir}"').trim() statusCode = sh returnStatus:true, script:"current_build_dir=\"${current_build_dir}\" build_dir=\"${build_dir}\" ${test_script} ${test_type} ${split} ${jdk} 2>&1 | tee ${logfile}" } finally { attempt = attempt + 1 From 5ca5833b1bd3736259f2df8b1e2ff57d600aefc0 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Fri, 6 Oct 2023 19:32:47 +0530 Subject: [PATCH 288/426] fix current_build_dir argument to run the test script in pipeline.jenkins --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 9d5c89b0725a..26f90b4a5cf0 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -517,7 +517,7 @@ def _testAxis(test_script, test_type, toCopy, arch, jdk, python, cython, split) unstash name: "${arch}_${jdk}" } echo "Executing `${test_script} ${test_type} ${split} ${jdk} 2>&1 | tee ${logfile}` on ${NODE_NAME} with jdk=${jdk} python=${python} cython=${cython}" - def current_build_dir = sh(returnStdout: true, script: 'basename "${build_dir}"').trim() + def current_build_dir = sh(returnStdout: true, script: "basename \"${build_dir}\"").trim() statusCode = sh returnStatus:true, script:"current_build_dir=\"${current_build_dir}\" build_dir=\"${build_dir}\" ${test_script} ${test_type} ${split} ${jdk} 2>&1 | tee ${logfile}" } finally { attempt = attempt + 1 From 7d35fb3b72ffd601604cabed5020318066d8d58c Mon Sep 17 00:00:00 2001 From: Nbarola Date: Fri, 6 Oct 2023 20:01:21 +0530 Subject: [PATCH 289/426] fix run-test.sh --- .build/docker/run-tests.sh | 2 +- .jenkins/pipeline.jenkins | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.build/docker/run-tests.sh b/.build/docker/run-tests.sh index 2af96976b6fc..5c5cc6735847 100755 --- a/.build/docker/run-tests.sh +++ b/.build/docker/run-tests.sh @@ -194,7 +194,7 @@ logfile="${build_dir}/test/logs/docker_attach_${container_name}.log" # Docker commands: # set java to java_version # execute the run_script -docker_command="DIST_DIR=\"${CASSANDRA_DIR}/${current_build_dir}\"; \ +docker_command="DIST_DIR=\${CASSANDRA_DIR}/\${current_build_dir}; \ source \${CASSANDRA_DIR}/.build/docker/_set_java.sh ${java_version} ; \ \${CASSANDRA_DIR}/.build/docker/_docker_init_tests.sh ${target} ${split_chunk}; exit \$?" diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 26f90b4a5cf0..87c238d6c83b 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -125,7 +125,7 @@ pipeline { //sh 'cp -r /tmp/* /home/jenkins/agent/workspace/k8s-e2e' //script { env.javaVersionDefault = javaVersionDefault() } //script { env.javaVersionsSupported = javaVersionsSupported() } - buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") + //buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") sh 'echo "finishing stage artifacts"' } } From bafeb6c9c45e9234c64e8be9e17fb9a2bee20718 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Fri, 6 Oct 2023 20:11:04 +0530 Subject: [PATCH 290/426] fix run-test.sh --- .build/docker/run-tests.sh | 2 +- .jenkins/pipeline.jenkins | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.build/docker/run-tests.sh b/.build/docker/run-tests.sh index 5c5cc6735847..53c8e29aca5e 100755 --- a/.build/docker/run-tests.sh +++ b/.build/docker/run-tests.sh @@ -194,7 +194,7 @@ logfile="${build_dir}/test/logs/docker_attach_${container_name}.log" # Docker commands: # set java to java_version # execute the run_script -docker_command="DIST_DIR=\${CASSANDRA_DIR}/\${current_build_dir}; \ +docker_command="DIST_DIR=\${CASSANDRA_DIR}/build/${current_build_dir}; \ source \${CASSANDRA_DIR}/.build/docker/_set_java.sh ${java_version} ; \ \${CASSANDRA_DIR}/.build/docker/_docker_init_tests.sh ${target} ${split_chunk}; exit \$?" diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 87c238d6c83b..26f90b4a5cf0 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -125,7 +125,7 @@ pipeline { //sh 'cp -r /tmp/* /home/jenkins/agent/workspace/k8s-e2e' //script { env.javaVersionDefault = javaVersionDefault() } //script { env.javaVersionsSupported = javaVersionsSupported() } - //buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") + buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") sh 'echo "finishing stage artifacts"' } } From b7405df5faafcbf2b409ad7ee223727acadebe07 Mon Sep 17 00:00:00 2001 From: richamishra Date: Mon, 9 Oct 2023 12:26:30 +0530 Subject: [PATCH 291/426] added sleep to troubleshoot --- .build/run-tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.build/run-tests.sh b/.build/run-tests.sh index 95d18844a4b1..8af9f10da8f7 100755 --- a/.build/run-tests.sh +++ b/.build/run-tests.sh @@ -185,7 +185,7 @@ _main() { # cheap trick to ensure dependency libraries are in place. allows us to stash only project specific build artifacts. ant -quiet -silent resolver-dist-lib - + sleep 3600 case ${target} in "stress-test") # hard fail on test compilation, but dont fail the test run as unstable test reports are processed From 8e3ffd113810a927098c2786a4b6f12f80b57499 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Mon, 9 Oct 2023 12:54:15 +0530 Subject: [PATCH 292/426] add ant opt build dir to .build/run-tests.sh --- .build/docker/run-tests.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/.build/docker/run-tests.sh b/.build/docker/run-tests.sh index 53c8e29aca5e..b43a5298efc3 100755 --- a/.build/docker/run-tests.sh +++ b/.build/docker/run-tests.sh @@ -195,6 +195,7 @@ logfile="${build_dir}/test/logs/docker_attach_${container_name}.log" # set java to java_version # execute the run_script docker_command="DIST_DIR=\${CASSANDRA_DIR}/build/${current_build_dir}; \ + export ANT_OPTS=\"-Dbuild.dir=\${DIST_DIR}\"; \ source \${CASSANDRA_DIR}/.build/docker/_set_java.sh ${java_version} ; \ \${CASSANDRA_DIR}/.build/docker/_docker_init_tests.sh ${target} ${split_chunk}; exit \$?" From aef256f0549dee1156752471c8189577543cabf0 Mon Sep 17 00:00:00 2001 From: richamishra Date: Mon, 9 Oct 2023 15:36:12 +0530 Subject: [PATCH 293/426] resolved conflicts --- .build/docker/run-tests.sh | 8 +++----- .build/run-tests.sh | 1 - 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.build/docker/run-tests.sh b/.build/docker/run-tests.sh index b43a5298efc3..9ac50b10e177 100755 --- a/.build/docker/run-tests.sh +++ b/.build/docker/run-tests.sh @@ -194,9 +194,7 @@ logfile="${build_dir}/test/logs/docker_attach_${container_name}.log" # Docker commands: # set java to java_version # execute the run_script -docker_command="DIST_DIR=\${CASSANDRA_DIR}/build/${current_build_dir}; \ - export ANT_OPTS=\"-Dbuild.dir=\${DIST_DIR}\"; \ - source \${CASSANDRA_DIR}/.build/docker/_set_java.sh ${java_version} ; \ +docker_command="source \${CASSANDRA_DIR}/.build/docker/_set_java.sh ${java_version} ; \ \${CASSANDRA_DIR}/.build/docker/_docker_init_tests.sh ${target} ${split_chunk}; exit \$?" # start the container, timeout after 4 hours @@ -208,12 +206,12 @@ echo "Running container ${container_name} ${docker_id}" docker exec --user root ${container_name} bash -c "\${CASSANDRA_DIR}/.build/docker/_create_user.sh cassandra $(id -u) $(id -g)" | tee -a ${logfile} docker exec --user root ${container_name} update-alternatives --set python /usr/bin/python${python_version} | tee -a ${logfile} -docker cp ${build_dir} ${container_name}:/home/cassandra/cassandra/build +docker cp ${build_dir}/* ${container_name}:/home/cassandra/cassandra/build # capture logs and pid for container docker exec --user cassandra ${container_name} bash -c "${docker_command}" | tee -a ${logfile} status=$? -docker cp ${container_name}:/home/cassandra/cassandra/build/build_docker_run*/test/output ${build_dir} +docker cp ${container_name}:/home/cassandra/cassandra/build/test/output ${build_dir}/test #docker exec --user cassandra ${container_name} bash -c "mkdir -p /home/cassandra/cassandra/result/1/${target} && cp -r /home/cassandra/cassandra/build/test/output /home/cassandra/cassandra/result/1/${target}" if [ "$status" -ne 0 ] ; then echo "${docker_id} failed (${status}), debug…" diff --git a/.build/run-tests.sh b/.build/run-tests.sh index 8af9f10da8f7..61b67c514137 100755 --- a/.build/run-tests.sh +++ b/.build/run-tests.sh @@ -185,7 +185,6 @@ _main() { # cheap trick to ensure dependency libraries are in place. allows us to stash only project specific build artifacts. ant -quiet -silent resolver-dist-lib - sleep 3600 case ${target} in "stress-test") # hard fail on test compilation, but dont fail the test run as unstable test reports are processed From 3f37ec5ec94a161f291c6fce448dd06f3188709d Mon Sep 17 00:00:00 2001 From: richamishra Date: Mon, 9 Oct 2023 15:49:11 +0530 Subject: [PATCH 294/426] resolved conflicts --- .build/docker/run-tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.build/docker/run-tests.sh b/.build/docker/run-tests.sh index 9ac50b10e177..f3264e627748 100755 --- a/.build/docker/run-tests.sh +++ b/.build/docker/run-tests.sh @@ -206,7 +206,7 @@ echo "Running container ${container_name} ${docker_id}" docker exec --user root ${container_name} bash -c "\${CASSANDRA_DIR}/.build/docker/_create_user.sh cassandra $(id -u) $(id -g)" | tee -a ${logfile} docker exec --user root ${container_name} update-alternatives --set python /usr/bin/python${python_version} | tee -a ${logfile} -docker cp ${build_dir}/* ${container_name}:/home/cassandra/cassandra/build +docker cp "${build_dir}/*" ${container_name}:/home/cassandra/cassandra/build # capture logs and pid for container docker exec --user cassandra ${container_name} bash -c "${docker_command}" | tee -a ${logfile} From ffd55f6926a95f09af3f462913b0f0c57688a9ac Mon Sep 17 00:00:00 2001 From: richamishra Date: Mon, 9 Oct 2023 16:03:27 +0530 Subject: [PATCH 295/426] updated command --- .build/docker/run-tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.build/docker/run-tests.sh b/.build/docker/run-tests.sh index f3264e627748..c481cb75c15e 100755 --- a/.build/docker/run-tests.sh +++ b/.build/docker/run-tests.sh @@ -206,7 +206,7 @@ echo "Running container ${container_name} ${docker_id}" docker exec --user root ${container_name} bash -c "\${CASSANDRA_DIR}/.build/docker/_create_user.sh cassandra $(id -u) $(id -g)" | tee -a ${logfile} docker exec --user root ${container_name} update-alternatives --set python /usr/bin/python${python_version} | tee -a ${logfile} -docker cp "${build_dir}/*" ${container_name}:/home/cassandra/cassandra/build +docker cp "${build_dir}/." ${container_name}:/home/cassandra/cassandra/build # capture logs and pid for container docker exec --user cassandra ${container_name} bash -c "${docker_command}" | tee -a ${logfile} From 7e68e82a22ccd03c94fdf99234f376bb11aab434 Mon Sep 17 00:00:00 2001 From: richamishra Date: Mon, 9 Oct 2023 16:26:41 +0530 Subject: [PATCH 296/426] updated junit command --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 26f90b4a5cf0..2a22aa7f2e68 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -522,7 +522,7 @@ def _testAxis(test_script, test_type, toCopy, arch, jdk, python, cython, split) } finally { attempt = attempt + 1 if (0 == statusCode) { - junit testResults: '**/build/test/**/TEST*.xml,**/cqlshlib.xml,**/nosetests.xml', testDataPublishers: [[$class: 'StabilityTestDataPublisher']] + junit testResults: "**${build_dir}/test/**/TEST*.xml,**/cqlshlib.xml,**/nosetests.xml", testDataPublishers: [[$class: 'StabilityTestDataPublisher']] } else { toCopy = "" } From 7de2a55c1934b66e9ef765ead234daef9ca62a22 Mon Sep 17 00:00:00 2001 From: richamishra Date: Mon, 9 Oct 2023 16:59:18 +0530 Subject: [PATCH 297/426] updated junit command --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 2a22aa7f2e68..7f7ceab994c3 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -522,7 +522,7 @@ def _testAxis(test_script, test_type, toCopy, arch, jdk, python, cython, split) } finally { attempt = attempt + 1 if (0 == statusCode) { - junit testResults: "**${build_dir}/test/**/TEST*.xml,**/cqlshlib.xml,**/nosetests.xml", testDataPublishers: [[$class: 'StabilityTestDataPublisher']] + junit testResults: "**/${build_dir}/test/**/TEST*.xml,**/cqlshlib.xml,**/nosetests.xml", testDataPublishers: [[$class: 'StabilityTestDataPublisher']] } else { toCopy = "" } From 17a797d2627dca0c28ca164caa20e192e9df3a5e Mon Sep 17 00:00:00 2001 From: richamishra Date: Mon, 9 Oct 2023 17:00:56 +0530 Subject: [PATCH 298/426] updated junit command --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 7f7ceab994c3..83ddd63ce5af 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -522,7 +522,7 @@ def _testAxis(test_script, test_type, toCopy, arch, jdk, python, cython, split) } finally { attempt = attempt + 1 if (0 == statusCode) { - junit testResults: "**/${build_dir}/test/**/TEST*.xml,**/cqlshlib.xml,**/nosetests.xml", testDataPublishers: [[$class: 'StabilityTestDataPublisher']] + junit testResults: "${build_dir}/test/**/TEST*.xml,**/cqlshlib.xml,**/nosetests.xml", testDataPublishers: [[$class: 'StabilityTestDataPublisher']] } else { toCopy = "" } From 5c0ac21907038e042a78c18124cd74262cb5a93b Mon Sep 17 00:00:00 2001 From: richamishra Date: Mon, 9 Oct 2023 17:19:49 +0530 Subject: [PATCH 299/426] updated junit command --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 83ddd63ce5af..eb4d71c21fa1 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -522,7 +522,7 @@ def _testAxis(test_script, test_type, toCopy, arch, jdk, python, cython, split) } finally { attempt = attempt + 1 if (0 == statusCode) { - junit testResults: "${build_dir}/test/**/TEST*.xml,**/cqlshlib.xml,**/nosetests.xml", testDataPublishers: [[$class: 'StabilityTestDataPublisher']] + junit testResults: "${build_dir}/test/**/TEST*.xml", testDataPublishers: [[$class: 'StabilityTestDataPublisher']] } else { toCopy = "" } From 1753aa3de5549e3653258611e7782b1cb123d64e Mon Sep 17 00:00:00 2001 From: richamishra Date: Mon, 9 Oct 2023 17:56:40 +0530 Subject: [PATCH 300/426] updated junit command --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index eb4d71c21fa1..a5d3aa304e4e 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -522,7 +522,7 @@ def _testAxis(test_script, test_type, toCopy, arch, jdk, python, cython, split) } finally { attempt = attempt + 1 if (0 == statusCode) { - junit testResults: "${build_dir}/test/**/TEST*.xml", testDataPublishers: [[$class: 'StabilityTestDataPublisher']] + junit testResults: "/home/jenkins/agent/workspace/k8s-e2e//build/build_docker_run.G62tsKBLrH/test/output/TEST*.xml", testDataPublishers: [[$class: 'StabilityTestDataPublisher']] } else { toCopy = "" } From 41481838f55ccd5ebcadead19d6322fd48e45b82 Mon Sep 17 00:00:00 2001 From: richamishra Date: Mon, 9 Oct 2023 18:03:40 +0530 Subject: [PATCH 301/426] commented artifacts to troubleshoot --- .jenkins/pipeline.jenkins | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index a5d3aa304e4e..da856820679c 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -125,7 +125,7 @@ pipeline { //sh 'cp -r /tmp/* /home/jenkins/agent/workspace/k8s-e2e' //script { env.javaVersionDefault = javaVersionDefault() } //script { env.javaVersionsSupported = javaVersionsSupported() } - buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") + //buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") sh 'echo "finishing stage artifacts"' } } @@ -518,11 +518,11 @@ def _testAxis(test_script, test_type, toCopy, arch, jdk, python, cython, split) } echo "Executing `${test_script} ${test_type} ${split} ${jdk} 2>&1 | tee ${logfile}` on ${NODE_NAME} with jdk=${jdk} python=${python} cython=${cython}" def current_build_dir = sh(returnStdout: true, script: "basename \"${build_dir}\"").trim() - statusCode = sh returnStatus:true, script:"current_build_dir=\"${current_build_dir}\" build_dir=\"${build_dir}\" ${test_script} ${test_type} ${split} ${jdk} 2>&1 | tee ${logfile}" + //statusCode = sh returnStatus:true, script:"current_build_dir=\"${current_build_dir}\" build_dir=\"${build_dir}\" ${test_script} ${test_type} ${split} ${jdk} 2>&1 | tee ${logfile}" } finally { attempt = attempt + 1 if (0 == statusCode) { - junit testResults: "/home/jenkins/agent/workspace/k8s-e2e//build/build_docker_run.G62tsKBLrH/test/output/TEST*.xml", testDataPublishers: [[$class: 'StabilityTestDataPublisher']] + junit testResults: "/home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.G62tsKBLrH/test/output/TEST*.xml", testDataPublishers: [[$class: 'StabilityTestDataPublisher']] } else { toCopy = "" } From ff86cf1a6673b930382c1f60d21beb9b1a30479a Mon Sep 17 00:00:00 2001 From: richamishra Date: Mon, 9 Oct 2023 18:06:42 +0530 Subject: [PATCH 302/426] commented artifacts to troubleshoot --- .build/docker/run-tests.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.build/docker/run-tests.sh b/.build/docker/run-tests.sh index c481cb75c15e..df369b404a94 100755 --- a/.build/docker/run-tests.sh +++ b/.build/docker/run-tests.sh @@ -206,12 +206,13 @@ echo "Running container ${container_name} ${docker_id}" docker exec --user root ${container_name} bash -c "\${CASSANDRA_DIR}/.build/docker/_create_user.sh cassandra $(id -u) $(id -g)" | tee -a ${logfile} docker exec --user root ${container_name} update-alternatives --set python /usr/bin/python${python_version} | tee -a ${logfile} -docker cp "${build_dir}/." ${container_name}:/home/cassandra/cassandra/build - +#docker cp "${build_dir}/." ${container_name}:/home/cassandra/cassandra/build +docker cp /home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.G62tsKBLrH/. ${container_name}:/home/cassandra/cassandra/build # capture logs and pid for container docker exec --user cassandra ${container_name} bash -c "${docker_command}" | tee -a ${logfile} status=$? -docker cp ${container_name}:/home/cassandra/cassandra/build/test/output ${build_dir}/test +#docker cp ${container_name}:/home/cassandra/cassandra/build/test/output ${build_dir}/test +docker cp ${container_name}:/home/cassandra/cassandra/build/test/output /home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.G62tsKBLrH/test #docker exec --user cassandra ${container_name} bash -c "mkdir -p /home/cassandra/cassandra/result/1/${target} && cp -r /home/cassandra/cassandra/build/test/output /home/cassandra/cassandra/result/1/${target}" if [ "$status" -ne 0 ] ; then echo "${docker_id} failed (${status}), debug…" From 68dceabacc9b50248b606c31f2c498fe3c21af31 Mon Sep 17 00:00:00 2001 From: richamishra Date: Mon, 9 Oct 2023 18:13:52 +0530 Subject: [PATCH 303/426] commented artifacts to troubleshoot --- .build/docker/run-tests.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.build/docker/run-tests.sh b/.build/docker/run-tests.sh index df369b404a94..15ac2b9f8c70 100755 --- a/.build/docker/run-tests.sh +++ b/.build/docker/run-tests.sh @@ -207,12 +207,12 @@ docker exec --user root ${container_name} bash -c "\${CASSANDRA_DIR}/.build/dock docker exec --user root ${container_name} update-alternatives --set python /usr/bin/python${python_version} | tee -a ${logfile} #docker cp "${build_dir}/." ${container_name}:/home/cassandra/cassandra/build -docker cp /home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.G62tsKBLrH/. ${container_name}:/home/cassandra/cassandra/build +#docker cp /home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.G62tsKBLrH/. ${container_name}:/home/cassandra/cassandra/build # capture logs and pid for container docker exec --user cassandra ${container_name} bash -c "${docker_command}" | tee -a ${logfile} status=$? #docker cp ${container_name}:/home/cassandra/cassandra/build/test/output ${build_dir}/test -docker cp ${container_name}:/home/cassandra/cassandra/build/test/output /home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.G62tsKBLrH/test +docker cp ${container_name}:/home/cassandra/cassandra/build/build_docker_run.G62tsKBLrH /home/jenkins/agent/workspace/k8s-e2e/build #docker exec --user cassandra ${container_name} bash -c "mkdir -p /home/cassandra/cassandra/result/1/${target} && cp -r /home/cassandra/cassandra/build/test/output /home/cassandra/cassandra/result/1/${target}" if [ "$status" -ne 0 ] ; then echo "${docker_id} failed (${status}), debug…" From 7d900e8ff271bd914df793b5cf32da81d7c7f17d Mon Sep 17 00:00:00 2001 From: richamishra Date: Mon, 9 Oct 2023 18:19:45 +0530 Subject: [PATCH 304/426] commented artifacts to troubleshoot --- .build/docker/run-tests.sh | 2 +- .jenkins/pipeline.jenkins | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.build/docker/run-tests.sh b/.build/docker/run-tests.sh index 15ac2b9f8c70..a0b8fdb244a9 100755 --- a/.build/docker/run-tests.sh +++ b/.build/docker/run-tests.sh @@ -209,7 +209,7 @@ docker exec --user root ${container_name} update-alternatives --set python /usr/ #docker cp "${build_dir}/." ${container_name}:/home/cassandra/cassandra/build #docker cp /home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.G62tsKBLrH/. ${container_name}:/home/cassandra/cassandra/build # capture logs and pid for container -docker exec --user cassandra ${container_name} bash -c "${docker_command}" | tee -a ${logfile} +#docker exec --user cassandra ${container_name} bash -c "${docker_command}" | tee -a ${logfile} status=$? #docker cp ${container_name}:/home/cassandra/cassandra/build/test/output ${build_dir}/test docker cp ${container_name}:/home/cassandra/cassandra/build/build_docker_run.G62tsKBLrH /home/jenkins/agent/workspace/k8s-e2e/build diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index da856820679c..a6e410012341 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -518,7 +518,7 @@ def _testAxis(test_script, test_type, toCopy, arch, jdk, python, cython, split) } echo "Executing `${test_script} ${test_type} ${split} ${jdk} 2>&1 | tee ${logfile}` on ${NODE_NAME} with jdk=${jdk} python=${python} cython=${cython}" def current_build_dir = sh(returnStdout: true, script: "basename \"${build_dir}\"").trim() - //statusCode = sh returnStatus:true, script:"current_build_dir=\"${current_build_dir}\" build_dir=\"${build_dir}\" ${test_script} ${test_type} ${split} ${jdk} 2>&1 | tee ${logfile}" + statusCode = sh returnStatus:true, script:"current_build_dir=\"${current_build_dir}\" build_dir=\"${build_dir}\" ${test_script} ${test_type} ${split} ${jdk} 2>&1 | tee ${logfile}" } finally { attempt = attempt + 1 if (0 == statusCode) { From 291c042524f2a531af8307c500633d13239066e8 Mon Sep 17 00:00:00 2001 From: richamishra Date: Mon, 9 Oct 2023 18:44:08 +0530 Subject: [PATCH 305/426] commented artifacts to troubleshoot --- .build/docker/run-tests.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.build/docker/run-tests.sh b/.build/docker/run-tests.sh index a0b8fdb244a9..957f4133eea0 100755 --- a/.build/docker/run-tests.sh +++ b/.build/docker/run-tests.sh @@ -212,7 +212,8 @@ docker exec --user root ${container_name} update-alternatives --set python /usr/ #docker exec --user cassandra ${container_name} bash -c "${docker_command}" | tee -a ${logfile} status=$? #docker cp ${container_name}:/home/cassandra/cassandra/build/test/output ${build_dir}/test -docker cp ${container_name}:/home/cassandra/cassandra/build/build_docker_run.G62tsKBLrH /home/jenkins/agent/workspace/k8s-e2e/build +mkdir -p /home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.G62tsKBLrH +docker cp 71b682eb7efe:/home/cassandra/cassandra/build/. /home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.G62tsKBLrH #docker exec --user cassandra ${container_name} bash -c "mkdir -p /home/cassandra/cassandra/result/1/${target} && cp -r /home/cassandra/cassandra/build/test/output /home/cassandra/cassandra/result/1/${target}" if [ "$status" -ne 0 ] ; then echo "${docker_id} failed (${status}), debug…" From 729f8cde47450fab4d782956161720d439901778 Mon Sep 17 00:00:00 2001 From: richamishra Date: Mon, 9 Oct 2023 18:49:52 +0530 Subject: [PATCH 306/426] commented artifacts to troubleshoot --- .build/docker/run-tests.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/.build/docker/run-tests.sh b/.build/docker/run-tests.sh index 957f4133eea0..f5a09cb038c7 100755 --- a/.build/docker/run-tests.sh +++ b/.build/docker/run-tests.sh @@ -212,6 +212,7 @@ docker exec --user root ${container_name} update-alternatives --set python /usr/ #docker exec --user cassandra ${container_name} bash -c "${docker_command}" | tee -a ${logfile} status=$? #docker cp ${container_name}:/home/cassandra/cassandra/build/test/output ${build_dir}/test +sleep 600 mkdir -p /home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.G62tsKBLrH docker cp 71b682eb7efe:/home/cassandra/cassandra/build/. /home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.G62tsKBLrH #docker exec --user cassandra ${container_name} bash -c "mkdir -p /home/cassandra/cassandra/result/1/${target} && cp -r /home/cassandra/cassandra/build/test/output /home/cassandra/cassandra/result/1/${target}" From b5adf2f5ed8148fc60ebfd98741acd1b3cf9b523 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Mon, 9 Oct 2023 18:54:59 +0530 Subject: [PATCH 307/426] modify pipeline.jenkins for troubleshooting --- .jenkins/pipeline.jenkins | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index a6e410012341..6b09846d7862 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -513,9 +513,9 @@ def _testAxis(test_script, test_type, toCopy, arch, jdk, python, cython, split) if (attempt > 1) { sleep(60 * attempt) } def logfile = "${JOB_NAME}_${BUILD_NUMBER}_${test_type}_jdk${jdk}_python_${python}_${cython}_${arch}_attempt_${attempt}.log" try { - dir("${build_dir}") { - unstash name: "${arch}_${jdk}" - } + //dir("${build_dir}") { + // unstash name: "${arch}_${jdk}" + //} echo "Executing `${test_script} ${test_type} ${split} ${jdk} 2>&1 | tee ${logfile}` on ${NODE_NAME} with jdk=${jdk} python=${python} cython=${cython}" def current_build_dir = sh(returnStdout: true, script: "basename \"${build_dir}\"").trim() statusCode = sh returnStatus:true, script:"current_build_dir=\"${current_build_dir}\" build_dir=\"${build_dir}\" ${test_script} ${test_type} ${split} ${jdk} 2>&1 | tee ${logfile}" From d822ffebd7ceeda19de358b5c963321bc4d02100 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Mon, 9 Oct 2023 19:12:39 +0530 Subject: [PATCH 308/426] modify pipeline.jenkins for troubleshooting --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 6b09846d7862..376afb309ce9 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -522,7 +522,7 @@ def _testAxis(test_script, test_type, toCopy, arch, jdk, python, cython, split) } finally { attempt = attempt + 1 if (0 == statusCode) { - junit testResults: "/home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.G62tsKBLrH/test/output/TEST*.xml", testDataPublishers: [[$class: 'StabilityTestDataPublisher']] + junit testResults: '/home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.G62tsKBLrH/test/output/TEST*.xml', testDataPublishers: [[$class: 'StabilityTestDataPublisher']] } else { toCopy = "" } From 5cfd2a9c81204414f0956b0f7eff729ce06366c8 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Mon, 9 Oct 2023 19:14:07 +0530 Subject: [PATCH 309/426] modify run-tests.sh for troubleshooting --- .build/docker/run-tests.sh | 4 ++-- .jenkins/pipeline.jenkins | 18 +++++++++--------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.build/docker/run-tests.sh b/.build/docker/run-tests.sh index f5a09cb038c7..24d711895239 100755 --- a/.build/docker/run-tests.sh +++ b/.build/docker/run-tests.sh @@ -204,7 +204,7 @@ echo "Running container ${container_name} ${docker_id}" #sleep 600 docker exec --user root ${container_name} bash -c "\${CASSANDRA_DIR}/.build/docker/_create_user.sh cassandra $(id -u) $(id -g)" | tee -a ${logfile} -docker exec --user root ${container_name} update-alternatives --set python /usr/bin/python${python_version} | tee -a ${logfile} +#docker exec --user root ${container_name} update-alternatives --set python /usr/bin/python${python_version} | tee -a ${logfile} #docker cp "${build_dir}/." ${container_name}:/home/cassandra/cassandra/build #docker cp /home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.G62tsKBLrH/. ${container_name}:/home/cassandra/cassandra/build @@ -212,7 +212,7 @@ docker exec --user root ${container_name} update-alternatives --set python /usr/ #docker exec --user cassandra ${container_name} bash -c "${docker_command}" | tee -a ${logfile} status=$? #docker cp ${container_name}:/home/cassandra/cassandra/build/test/output ${build_dir}/test -sleep 600 +#sleep 600 mkdir -p /home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.G62tsKBLrH docker cp 71b682eb7efe:/home/cassandra/cassandra/build/. /home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.G62tsKBLrH #docker exec --user cassandra ${container_name} bash -c "mkdir -p /home/cassandra/cassandra/result/1/${target} && cp -r /home/cassandra/cassandra/build/test/output /home/cassandra/cassandra/result/1/${target}" diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 376afb309ce9..4fec80268919 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -106,15 +106,15 @@ pipeline { PIPELINE_SCRIPT_DEBUG = 'true' } stages { - stage('Init') { - steps { - container('jnlp') { - //cleanWs() - script { currentBuild.result='SUCCESS' } - sh 'echo "stage init"' - } - } - } + //stage('Init') { + // steps { + // container('jnlp') { + // //cleanWs() + // script { currentBuild.result='SUCCESS' } + // sh 'echo "stage init"' + // } + // } + // } stage('Builds') { parallel { From 83ba76466d267aab9bb743ff221a4281afba8921 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Mon, 9 Oct 2023 19:26:21 +0530 Subject: [PATCH 310/426] modify junit command for troubleshooting --- .jenkins/pipeline.jenkins | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 4fec80268919..c215b73da7e0 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -521,8 +521,8 @@ def _testAxis(test_script, test_type, toCopy, arch, jdk, python, cython, split) statusCode = sh returnStatus:true, script:"current_build_dir=\"${current_build_dir}\" build_dir=\"${build_dir}\" ${test_script} ${test_type} ${split} ${jdk} 2>&1 | tee ${logfile}" } finally { attempt = attempt + 1 - if (0 == statusCode) { - junit testResults: '/home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.G62tsKBLrH/test/output/TEST*.xml', testDataPublishers: [[$class: 'StabilityTestDataPublisher']] + if (0 == statusCode) { + junit testResults: '**/build/build_docker_run.G62tsKBLrH/test/output/TEST*.xml', testDataPublishers: [[$class: 'StabilityTestDataPublisher']] } else { toCopy = "" } From 18620299947d3173b36888a5b9a58e4eaffa84c9 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Mon, 9 Oct 2023 19:35:22 +0530 Subject: [PATCH 311/426] modify junit with relative path command for troubleshooting --- .build/docker/run-tests.sh | 10 +++++----- .jenkins/pipeline.jenkins | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.build/docker/run-tests.sh b/.build/docker/run-tests.sh index 24d711895239..b4ef1e8b2aa1 100755 --- a/.build/docker/run-tests.sh +++ b/.build/docker/run-tests.sh @@ -204,17 +204,17 @@ echo "Running container ${container_name} ${docker_id}" #sleep 600 docker exec --user root ${container_name} bash -c "\${CASSANDRA_DIR}/.build/docker/_create_user.sh cassandra $(id -u) $(id -g)" | tee -a ${logfile} -#docker exec --user root ${container_name} update-alternatives --set python /usr/bin/python${python_version} | tee -a ${logfile} +docker exec --user root ${container_name} update-alternatives --set python /usr/bin/python${python_version} | tee -a ${logfile} -#docker cp "${build_dir}/." ${container_name}:/home/cassandra/cassandra/build +docker cp "${build_dir}/." ${container_name}:/home/cassandra/cassandra/build #docker cp /home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.G62tsKBLrH/. ${container_name}:/home/cassandra/cassandra/build # capture logs and pid for container -#docker exec --user cassandra ${container_name} bash -c "${docker_command}" | tee -a ${logfile} +docker exec --user cassandra ${container_name} bash -c "${docker_command}" | tee -a ${logfile} status=$? #docker cp ${container_name}:/home/cassandra/cassandra/build/test/output ${build_dir}/test #sleep 600 -mkdir -p /home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.G62tsKBLrH -docker cp 71b682eb7efe:/home/cassandra/cassandra/build/. /home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.G62tsKBLrH +#mkdir -p /home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.G62tsKBLrH +docker cp ${container_name}:/home/cassandra/cassandra/build/. "/home/jenkins/agent/workspace/k8s-e2e/build/${current_build_dir}" #docker exec --user cassandra ${container_name} bash -c "mkdir -p /home/cassandra/cassandra/result/1/${target} && cp -r /home/cassandra/cassandra/build/test/output /home/cassandra/cassandra/result/1/${target}" if [ "$status" -ne 0 ] ; then echo "${docker_id} failed (${status}), debug…" diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index c215b73da7e0..4119e8532cdf 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -522,7 +522,7 @@ def _testAxis(test_script, test_type, toCopy, arch, jdk, python, cython, split) } finally { attempt = attempt + 1 if (0 == statusCode) { - junit testResults: '**/build/build_docker_run.G62tsKBLrH/test/output/TEST*.xml', testDataPublishers: [[$class: 'StabilityTestDataPublisher']] + junit testResults: "**/build/${current_build_dir}/test/**/TEST*.xml,**/cqlshlib.xml,**/nosetests.xml", testDataPublishers: [[$class: 'StabilityTestDataPublisher']] } else { toCopy = "" } From a171ab4e4f4dff6d7a457508d78b373918b193ad Mon Sep 17 00:00:00 2001 From: Nbarola Date: Mon, 9 Oct 2023 19:39:29 +0530 Subject: [PATCH 312/426] modify piepline.jenkins file --- .jenkins/pipeline.jenkins | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 4119e8532cdf..b8624ec10d45 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -513,9 +513,9 @@ def _testAxis(test_script, test_type, toCopy, arch, jdk, python, cython, split) if (attempt > 1) { sleep(60 * attempt) } def logfile = "${JOB_NAME}_${BUILD_NUMBER}_${test_type}_jdk${jdk}_python_${python}_${cython}_${arch}_attempt_${attempt}.log" try { - //dir("${build_dir}") { - // unstash name: "${arch}_${jdk}" - //} + dir("${build_dir}") { + unstash name: "${arch}_${jdk}" + } echo "Executing `${test_script} ${test_type} ${split} ${jdk} 2>&1 | tee ${logfile}` on ${NODE_NAME} with jdk=${jdk} python=${python} cython=${cython}" def current_build_dir = sh(returnStdout: true, script: "basename \"${build_dir}\"").trim() statusCode = sh returnStatus:true, script:"current_build_dir=\"${current_build_dir}\" build_dir=\"${build_dir}\" ${test_script} ${test_type} ${split} ${jdk} 2>&1 | tee ${logfile}" From c2d0643bd0f83eadb83d3ff5a11a4df5a9f2fef1 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Mon, 9 Oct 2023 19:40:13 +0530 Subject: [PATCH 313/426] modify piepline.jenkins file --- .jenkins/pipeline.jenkins | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index b8624ec10d45..fbd227beb6ef 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -106,15 +106,15 @@ pipeline { PIPELINE_SCRIPT_DEBUG = 'true' } stages { - //stage('Init') { - // steps { - // container('jnlp') { - // //cleanWs() - // script { currentBuild.result='SUCCESS' } - // sh 'echo "stage init"' - // } - // } - // } + stage('Init') { + steps { + container('jnlp') { + //cleanWs() + script { currentBuild.result='SUCCESS' } + sh 'echo "stage init"' + } + } + } stage('Builds') { parallel { @@ -125,7 +125,7 @@ pipeline { //sh 'cp -r /tmp/* /home/jenkins/agent/workspace/k8s-e2e' //script { env.javaVersionDefault = javaVersionDefault() } //script { env.javaVersionsSupported = javaVersionsSupported() } - //buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") + buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") sh 'echo "finishing stage artifacts"' } } From 8b2c14d31a88e3d3c176f7c92459f0e616b51147 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Mon, 9 Oct 2023 19:56:59 +0530 Subject: [PATCH 314/426] modify piepline.jenkins file --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index fbd227beb6ef..0dfb84dc1889 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -505,6 +505,7 @@ def _testAxis(test_script, test_type, toCopy, arch, jdk, python, cython, split) //def build_dir = '/home/jenkins/agent/workspace/k8s-e2e/build' sh "mkdir -p build" def build_dir = sh( returnStdout: true, script:"mktemp -d ${WORKSPACE}/build/build_docker_run.XXXXXXXXXX" ).trim() + def current_build_dir = sh(returnStdout: true, script: "basename \"${build_dir}\"").trim() tool type: 'jdk', name: "jdk_${jdk}_latest" // FIXME python – need a tool type (like jdk above) // FIXME cython – need a tool type (like jdk above) @@ -517,7 +518,6 @@ def _testAxis(test_script, test_type, toCopy, arch, jdk, python, cython, split) unstash name: "${arch}_${jdk}" } echo "Executing `${test_script} ${test_type} ${split} ${jdk} 2>&1 | tee ${logfile}` on ${NODE_NAME} with jdk=${jdk} python=${python} cython=${cython}" - def current_build_dir = sh(returnStdout: true, script: "basename \"${build_dir}\"").trim() statusCode = sh returnStatus:true, script:"current_build_dir=\"${current_build_dir}\" build_dir=\"${build_dir}\" ${test_script} ${test_type} ${split} ${jdk} 2>&1 | tee ${logfile}" } finally { attempt = attempt + 1 From d08eded77243c264d7b2e22063825cc25a98c463 Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 10 Oct 2023 12:50:58 +0530 Subject: [PATCH 315/426] added symlink command --- .jenkins/pipeline.jenkins | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 0dfb84dc1889..45bb3be82bec 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -88,8 +88,8 @@ pipeline { hostPath: path: /var/run/docker.sock - name: cassandra-dir - persistentVolumeClaim: - claimName: local-file-pvc + hostPath: + path: /home/jenkins/agent/workspace/k8s-e2e ''' } } @@ -346,7 +346,8 @@ def _buildAxis(build_script, toCopy, arch, jdk) { branchName: "${build_script} ${jdk} ${NODE_NAME}" //cleanWs() echo "build_script: ${build_script}" - checkout scm + //checkout scm + sh 'ln -s /home/jenkins/agent/workspace/k8s-e2e /tmp' //sh 'cp -r /tmp/* /home/jenkins/agent/workspace/k8s-e2e' //sh 'cp -r /tmp/.* /home/jenkins/agent/workspace/k8s-e2e' //sh 'cp -r /tmp/. /tmp/.asf.yaml /tmp/.build /tmp/.jenkins /home/jenkins/agent/workspace/k8s-e2e' From 6d9b24eb79d7f7116bc4e5eb1a6e4fd73d444307 Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 10 Oct 2023 12:57:11 +0530 Subject: [PATCH 316/426] added symlink command --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 45bb3be82bec..10833b2d10ab 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -347,7 +347,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { //cleanWs() echo "build_script: ${build_script}" //checkout scm - sh 'ln -s /home/jenkins/agent/workspace/k8s-e2e /tmp' + sh 'ln -s /tmp /home/jenkins/agent/workspace/k8s-e2e' //sh 'cp -r /tmp/* /home/jenkins/agent/workspace/k8s-e2e' //sh 'cp -r /tmp/.* /home/jenkins/agent/workspace/k8s-e2e' //sh 'cp -r /tmp/. /tmp/.asf.yaml /tmp/.build /tmp/.jenkins /home/jenkins/agent/workspace/k8s-e2e' From 7cf493c3499c7826e25c2b2b6a98e0a1a9f67a36 Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 10 Oct 2023 13:21:41 +0530 Subject: [PATCH 317/426] updated symlink command --- .jenkins/pipeline.jenkins | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 10833b2d10ab..1294e721883a 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -77,7 +77,7 @@ pipeline { - name: docker-socket mountPath: /var/run/docker.sock - name: cassandra-dir - mountPath: /tmp + mountPath: /tmp/k8s-e2e tty: true securityContext: privileged: true @@ -347,7 +347,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { //cleanWs() echo "build_script: ${build_script}" //checkout scm - sh 'ln -s /tmp /home/jenkins/agent/workspace/k8s-e2e' + sh 'ln -s /tmp/k8s-e2e /home/jenkins/agent/workspace/k8s-e2e' //sh 'cp -r /tmp/* /home/jenkins/agent/workspace/k8s-e2e' //sh 'cp -r /tmp/.* /home/jenkins/agent/workspace/k8s-e2e' //sh 'cp -r /tmp/. /tmp/.asf.yaml /tmp/.build /tmp/.jenkins /home/jenkins/agent/workspace/k8s-e2e' From 8b3eb0dbe20c1153c0023d1c76b9ae3988f9a1f1 Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 10 Oct 2023 13:26:41 +0530 Subject: [PATCH 318/426] updated symlink command --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 1294e721883a..45c538ccb76c 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -347,7 +347,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { //cleanWs() echo "build_script: ${build_script}" //checkout scm - sh 'ln -s /tmp/k8s-e2e /home/jenkins/agent/workspace/k8s-e2e' + sh 'ln -s /tmp/k8s-e2e/* /home/jenkins/agent/workspace/k8s-e2e' //sh 'cp -r /tmp/* /home/jenkins/agent/workspace/k8s-e2e' //sh 'cp -r /tmp/.* /home/jenkins/agent/workspace/k8s-e2e' //sh 'cp -r /tmp/. /tmp/.asf.yaml /tmp/.build /tmp/.jenkins /home/jenkins/agent/workspace/k8s-e2e' From 8165818e4977a6ed6280edc7290bc9236ca62b7a Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 10 Oct 2023 13:35:37 +0530 Subject: [PATCH 319/426] commented symlink --- .jenkins/pipeline.jenkins | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 45c538ccb76c..0c14fabc53d7 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -77,7 +77,7 @@ pipeline { - name: docker-socket mountPath: /var/run/docker.sock - name: cassandra-dir - mountPath: /tmp/k8s-e2e + mountPath: /tmp tty: true securityContext: privileged: true @@ -347,7 +347,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { //cleanWs() echo "build_script: ${build_script}" //checkout scm - sh 'ln -s /tmp/k8s-e2e/* /home/jenkins/agent/workspace/k8s-e2e' + //sh 'ln -s /tmp/k8s-e2e/* /home/jenkins/agent/workspace/k8s-e2e' //sh 'cp -r /tmp/* /home/jenkins/agent/workspace/k8s-e2e' //sh 'cp -r /tmp/.* /home/jenkins/agent/workspace/k8s-e2e' //sh 'cp -r /tmp/. /tmp/.asf.yaml /tmp/.build /tmp/.jenkins /home/jenkins/agent/workspace/k8s-e2e' From c2ef545c204790e26cc70d8c9688b0db5812a486 Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 10 Oct 2023 13:40:50 +0530 Subject: [PATCH 320/426] commented symlink --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 0c14fabc53d7..74a258cba5e8 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -368,7 +368,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { sh 'echo ${build_script}' if (".build/docker/build-artifacts.sh" != build_script && !build_script.contains(".build/docker/_docker_run.sh")) { // build-artifacts.sh must be run in an earlier completed stage for the stash to exist - dir("${build_dir}") { + dir("${tmp_dir}") { unstash name: "${arch}_${jdk}" } } From 17e1e3697f62830d1f94cd8b5a54ac7a78598d2c Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 10 Oct 2023 13:45:14 +0530 Subject: [PATCH 321/426] commented symlink --- .jenkins/pipeline.jenkins | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 74a258cba5e8..4341a2b6a2eb 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -368,7 +368,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { sh 'echo ${build_script}' if (".build/docker/build-artifacts.sh" != build_script && !build_script.contains(".build/docker/_docker_run.sh")) { // build-artifacts.sh must be run in an earlier completed stage for the stash to exist - dir("${tmp_dir}") { + dir("${build_dir}") { unstash name: "${arch}_${jdk}" } } @@ -381,7 +381,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { //sh "cp -r ${build_dir} ${tmp_dir}" if (".build/docker/build-artifacts.sh" == build_script || build_script.contains(".build/docker/_docker_run.sh")) { //dir("${build_dir}") { - dir("${build_dir}") { + dir("${tmp_dir}") { // only stash the project built files. all dependency libraries are restored from the local maven repo using `ant resolver-dist-lib` stash name: "${arch}_${jdk}", includes: "*.jar,classes/**,test/classes/**,tools/**" //stash name: "${arch}_${jdk}", includes: "*.jar" From 6e094acdbb3f791af5c669e5e5a774c35ddae294 Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 10 Oct 2023 14:09:30 +0530 Subject: [PATCH 322/426] updated symlink --- .jenkins/pipeline.jenkins | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 4341a2b6a2eb..1fe2af05d962 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -77,7 +77,7 @@ pipeline { - name: docker-socket mountPath: /var/run/docker.sock - name: cassandra-dir - mountPath: /tmp + mountPath: /tmp/k8s-e2e tty: true securityContext: privileged: true @@ -347,7 +347,8 @@ def _buildAxis(build_script, toCopy, arch, jdk) { //cleanWs() echo "build_script: ${build_script}" //checkout scm - //sh 'ln -s /tmp/k8s-e2e/* /home/jenkins/agent/workspace/k8s-e2e' + sh 'ln -s /home/jenkins/agent/workspace/k8s-e2e /tmp/k8s-e2e' + sh 'ls -l /tmp/k8s-e2e' //sh 'cp -r /tmp/* /home/jenkins/agent/workspace/k8s-e2e' //sh 'cp -r /tmp/.* /home/jenkins/agent/workspace/k8s-e2e' //sh 'cp -r /tmp/. /tmp/.asf.yaml /tmp/.build /tmp/.jenkins /home/jenkins/agent/workspace/k8s-e2e' @@ -381,7 +382,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { //sh "cp -r ${build_dir} ${tmp_dir}" if (".build/docker/build-artifacts.sh" == build_script || build_script.contains(".build/docker/_docker_run.sh")) { //dir("${build_dir}") { - dir("${tmp_dir}") { + dir("${build_dir}") { // only stash the project built files. all dependency libraries are restored from the local maven repo using `ant resolver-dist-lib` stash name: "${arch}_${jdk}", includes: "*.jar,classes/**,test/classes/**,tools/**" //stash name: "${arch}_${jdk}", includes: "*.jar" From bc787be5654234c5f89b2ee6cc2c621abaff8e92 Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 10 Oct 2023 14:13:30 +0530 Subject: [PATCH 323/426] updated symlink --- .jenkins/pipeline.jenkins | 1 + 1 file changed, 1 insertion(+) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 1fe2af05d962..a8986c044774 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -347,6 +347,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { //cleanWs() echo "build_script: ${build_script}" //checkout scm + sh 'rm -rf /tmp/k8s-e2e/k8s-e2e' sh 'ln -s /home/jenkins/agent/workspace/k8s-e2e /tmp/k8s-e2e' sh 'ls -l /tmp/k8s-e2e' //sh 'cp -r /tmp/* /home/jenkins/agent/workspace/k8s-e2e' From 5b0a0d9ed0632e28345d153b6b7371a8d177b59f Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 10 Oct 2023 14:17:40 +0530 Subject: [PATCH 324/426] updated symlink --- .jenkins/pipeline.jenkins | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index a8986c044774..b9c4f796b2a7 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -347,8 +347,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { //cleanWs() echo "build_script: ${build_script}" //checkout scm - sh 'rm -rf /tmp/k8s-e2e/k8s-e2e' - sh 'ln -s /home/jenkins/agent/workspace/k8s-e2e /tmp/k8s-e2e' + sh 'ln -s /tmp/k8s-e2e /home/jenkins/agent/workspace/k8s-e2e' sh 'ls -l /tmp/k8s-e2e' //sh 'cp -r /tmp/* /home/jenkins/agent/workspace/k8s-e2e' //sh 'cp -r /tmp/.* /home/jenkins/agent/workspace/k8s-e2e' From 0445a3e7bf5149df5731ea7078a9fd31c8dbd522 Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 10 Oct 2023 14:17:46 +0530 Subject: [PATCH 325/426] updated symlink --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index b9c4f796b2a7..896ab5a58f5b 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -348,7 +348,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { echo "build_script: ${build_script}" //checkout scm sh 'ln -s /tmp/k8s-e2e /home/jenkins/agent/workspace/k8s-e2e' - sh 'ls -l /tmp/k8s-e2e' + sh 'ls -l /home/jenkins/agent/workspace/k8s-e2e' //sh 'cp -r /tmp/* /home/jenkins/agent/workspace/k8s-e2e' //sh 'cp -r /tmp/.* /home/jenkins/agent/workspace/k8s-e2e' //sh 'cp -r /tmp/. /tmp/.asf.yaml /tmp/.build /tmp/.jenkins /home/jenkins/agent/workspace/k8s-e2e' From 9b51d62a0f4fe25e6d9956f5dc9ba65a7080b886 Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 10 Oct 2023 15:25:12 +0530 Subject: [PATCH 326/426] updated symlink --- .jenkins/pipeline.jenkins | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 896ab5a58f5b..c1cea0fdce23 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -77,7 +77,7 @@ pipeline { - name: docker-socket mountPath: /var/run/docker.sock - name: cassandra-dir - mountPath: /tmp/k8s-e2e + mountPath: /tmp tty: true securityContext: privileged: true @@ -347,7 +347,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { //cleanWs() echo "build_script: ${build_script}" //checkout scm - sh 'ln -s /tmp/k8s-e2e /home/jenkins/agent/workspace/k8s-e2e' + sh 'ln -s /tmp/* /home/jenkins/agent/workspace/k8s-e2e' sh 'ls -l /home/jenkins/agent/workspace/k8s-e2e' //sh 'cp -r /tmp/* /home/jenkins/agent/workspace/k8s-e2e' //sh 'cp -r /tmp/.* /home/jenkins/agent/workspace/k8s-e2e' From 77e3f4471e1880a03f03116ce4e50fb6f4c5e3fc Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 10 Oct 2023 15:53:16 +0530 Subject: [PATCH 327/426] added sleep for troubleshooting --- .jenkins/pipeline.jenkins | 1 + 1 file changed, 1 insertion(+) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index c1cea0fdce23..2c6f9fb4d758 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -362,6 +362,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { echo "build_script_safe_name: ${build_script_safe_name}" def logfile = "${JOB_NAME}_${BUILD_NUMBER}_${build_script_safe_name}_jdk${jdk}_${arch}_attempt_${attempt}.log" sh "mkdir -p build" + sh 'sleep 600' def build_dir = sh( returnStdout: true, script:"mktemp -d ${WORKSPACE}/build/build_docker_run.XXXXXXXXXX" ).trim() def tmp_dir = generatePath(build_dir.trim()) echo "tmp_dir ${tmp_dir}" From 420232f26ef2e8d04834ea76380c525745a0cf24 Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 10 Oct 2023 16:09:05 +0530 Subject: [PATCH 328/426] added sleep for troubleshooting --- .jenkins/pipeline.jenkins | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 2c6f9fb4d758..f33813178dd0 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -347,8 +347,8 @@ def _buildAxis(build_script, toCopy, arch, jdk) { //cleanWs() echo "build_script: ${build_script}" //checkout scm - sh 'ln -s /tmp/* /home/jenkins/agent/workspace/k8s-e2e' - sh 'ls -l /home/jenkins/agent/workspace/k8s-e2e' + //sh 'ln -s /tmp/* /home/jenkins/agent/workspace/k8s-e2e' + //sh 'ls -l /home/jenkins/agent/workspace/k8s-e2e' //sh 'cp -r /tmp/* /home/jenkins/agent/workspace/k8s-e2e' //sh 'cp -r /tmp/.* /home/jenkins/agent/workspace/k8s-e2e' //sh 'cp -r /tmp/. /tmp/.asf.yaml /tmp/.build /tmp/.jenkins /home/jenkins/agent/workspace/k8s-e2e' From e957b1a40af9e604af3ed0a6fae74a52dbd2f856 Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 10 Oct 2023 16:11:29 +0530 Subject: [PATCH 329/426] added sleep for troubleshooting --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index f33813178dd0..0e685c2bc1e7 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -346,7 +346,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { branchName: "${build_script} ${jdk} ${NODE_NAME}" //cleanWs() echo "build_script: ${build_script}" - //checkout scm + checkout scm //sh 'ln -s /tmp/* /home/jenkins/agent/workspace/k8s-e2e' //sh 'ls -l /home/jenkins/agent/workspace/k8s-e2e' //sh 'cp -r /tmp/* /home/jenkins/agent/workspace/k8s-e2e' From 579b71b71f054cd63ff468d6a504ec6e09a1cdb1 Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 10 Oct 2023 16:15:29 +0530 Subject: [PATCH 330/426] removed sleep command --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 0e685c2bc1e7..c155f8d4fec0 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -362,7 +362,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { echo "build_script_safe_name: ${build_script_safe_name}" def logfile = "${JOB_NAME}_${BUILD_NUMBER}_${build_script_safe_name}_jdk${jdk}_${arch}_attempt_${attempt}.log" sh "mkdir -p build" - sh 'sleep 600' + //sh 'sleep 600' def build_dir = sh( returnStdout: true, script:"mktemp -d ${WORKSPACE}/build/build_docker_run.XXXXXXXXXX" ).trim() def tmp_dir = generatePath(build_dir.trim()) echo "tmp_dir ${tmp_dir}" From 0ee7f7a8fb2ccb171341818065d2077c10622c89 Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 10 Oct 2023 16:26:11 +0530 Subject: [PATCH 331/426] added symlink command --- .jenkins/pipeline.jenkins | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index c155f8d4fec0..fa2d6017b161 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -77,7 +77,7 @@ pipeline { - name: docker-socket mountPath: /var/run/docker.sock - name: cassandra-dir - mountPath: /tmp + mountPath: /tmp/k8s-e2e tty: true securityContext: privileged: true @@ -346,8 +346,8 @@ def _buildAxis(build_script, toCopy, arch, jdk) { branchName: "${build_script} ${jdk} ${NODE_NAME}" //cleanWs() echo "build_script: ${build_script}" - checkout scm - //sh 'ln -s /tmp/* /home/jenkins/agent/workspace/k8s-e2e' + //checkout scm + sh 'ln -s /tmp/k8s-e2e/* /home/jenkins/agent/workspace/k8s-e2e' //sh 'ls -l /home/jenkins/agent/workspace/k8s-e2e' //sh 'cp -r /tmp/* /home/jenkins/agent/workspace/k8s-e2e' //sh 'cp -r /tmp/.* /home/jenkins/agent/workspace/k8s-e2e' From 88014608fb1506db5ef81cfce65691fe592601ef Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 10 Oct 2023 16:29:51 +0530 Subject: [PATCH 332/426] added sleep --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index fa2d6017b161..482e45f893ed 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -362,7 +362,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { echo "build_script_safe_name: ${build_script_safe_name}" def logfile = "${JOB_NAME}_${BUILD_NUMBER}_${build_script_safe_name}_jdk${jdk}_${arch}_attempt_${attempt}.log" sh "mkdir -p build" - //sh 'sleep 600' + sh 'sleep 600' def build_dir = sh( returnStdout: true, script:"mktemp -d ${WORKSPACE}/build/build_docker_run.XXXXXXXXXX" ).trim() def tmp_dir = generatePath(build_dir.trim()) echo "tmp_dir ${tmp_dir}" From 704b80f40389fa42a95d0b5ddd466dd4e7646cbb Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 10 Oct 2023 16:47:59 +0530 Subject: [PATCH 333/426] removed security context --- .jenkins/pipeline.jenkins | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 482e45f893ed..d6bf921b8381 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -79,8 +79,8 @@ pipeline { - name: cassandra-dir mountPath: /tmp/k8s-e2e tty: true - securityContext: - privileged: true + //securityContext: + //privileged: true nodeSelector: gke-node: first volumes: @@ -362,7 +362,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { echo "build_script_safe_name: ${build_script_safe_name}" def logfile = "${JOB_NAME}_${BUILD_NUMBER}_${build_script_safe_name}_jdk${jdk}_${arch}_attempt_${attempt}.log" sh "mkdir -p build" - sh 'sleep 600' + //sh 'sleep 600' def build_dir = sh( returnStdout: true, script:"mktemp -d ${WORKSPACE}/build/build_docker_run.XXXXXXXXXX" ).trim() def tmp_dir = generatePath(build_dir.trim()) echo "tmp_dir ${tmp_dir}" From 0c3d81a8faf8a3e90a67c913f109768fea1c5984 Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 10 Oct 2023 16:54:10 +0530 Subject: [PATCH 334/426] added sleep --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index d6bf921b8381..363dc964ddee 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -362,7 +362,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { echo "build_script_safe_name: ${build_script_safe_name}" def logfile = "${JOB_NAME}_${BUILD_NUMBER}_${build_script_safe_name}_jdk${jdk}_${arch}_attempt_${attempt}.log" sh "mkdir -p build" - //sh 'sleep 600' + sh 'sleep 300' def build_dir = sh( returnStdout: true, script:"mktemp -d ${WORKSPACE}/build/build_docker_run.XXXXXXXXXX" ).trim() def tmp_dir = generatePath(build_dir.trim()) echo "tmp_dir ${tmp_dir}" From b3807161b2691ac8c723f9ba147beb2bd4273d2d Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 10 Oct 2023 17:00:37 +0530 Subject: [PATCH 335/426] added sleep --- .jenkins/pipeline.jenkins | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 363dc964ddee..24a72b495001 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -347,7 +347,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { //cleanWs() echo "build_script: ${build_script}" //checkout scm - sh 'ln -s /tmp/k8s-e2e/* /home/jenkins/agent/workspace/k8s-e2e' + sh 'ln -s /tmp/k8s-e2e/. /home/jenkins/agent/workspace/k8s-e2e' //sh 'ls -l /home/jenkins/agent/workspace/k8s-e2e' //sh 'cp -r /tmp/* /home/jenkins/agent/workspace/k8s-e2e' //sh 'cp -r /tmp/.* /home/jenkins/agent/workspace/k8s-e2e' @@ -362,7 +362,8 @@ def _buildAxis(build_script, toCopy, arch, jdk) { echo "build_script_safe_name: ${build_script_safe_name}" def logfile = "${JOB_NAME}_${BUILD_NUMBER}_${build_script_safe_name}_jdk${jdk}_${arch}_attempt_${attempt}.log" sh "mkdir -p build" - sh 'sleep 300' + sh 'ln -s /tmp/k8s-e2e/. /home/jenkins/agent/workspace/k8s-e2e' + //sh 'sleep 300' def build_dir = sh( returnStdout: true, script:"mktemp -d ${WORKSPACE}/build/build_docker_run.XXXXXXXXXX" ).trim() def tmp_dir = generatePath(build_dir.trim()) echo "tmp_dir ${tmp_dir}" From d34b6dea6ca58a4c9dd776674877dd43311e813d Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 10 Oct 2023 17:08:02 +0530 Subject: [PATCH 336/426] added symlink command --- .jenkins/pipeline.jenkins | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 24a72b495001..de07e2e044cf 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -347,11 +347,9 @@ def _buildAxis(build_script, toCopy, arch, jdk) { //cleanWs() echo "build_script: ${build_script}" //checkout scm - sh 'ln -s /tmp/k8s-e2e/. /home/jenkins/agent/workspace/k8s-e2e' - //sh 'ls -l /home/jenkins/agent/workspace/k8s-e2e' - //sh 'cp -r /tmp/* /home/jenkins/agent/workspace/k8s-e2e' - //sh 'cp -r /tmp/.* /home/jenkins/agent/workspace/k8s-e2e' - //sh 'cp -r /tmp/. /tmp/.asf.yaml /tmp/.build /tmp/.jenkins /home/jenkins/agent/workspace/k8s-e2e' + sh 'find /tmp/k8s-e2e -mindepth 1 -maxdepth 1 -type d \( ! -name "." -a ! -name ".." \) -exec ln -s {} /home/jenkins/agent/workspace/k8s-e2e \;' + //sh 'ln -s /tmp/k8s-e2e/. /home/jenkins/agent/workspace/k8s-e2e' + sh "echo scm success" tool type: 'jdk', name: "jdk_${jdk}_latest" sh "echo tool success" @@ -362,7 +360,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { echo "build_script_safe_name: ${build_script_safe_name}" def logfile = "${JOB_NAME}_${BUILD_NUMBER}_${build_script_safe_name}_jdk${jdk}_${arch}_attempt_${attempt}.log" sh "mkdir -p build" - sh 'ln -s /tmp/k8s-e2e/. /home/jenkins/agent/workspace/k8s-e2e' + sh 'find /tmp/k8s-e2e -mindepth 1 -maxdepth 1 -type d \( ! -name "." -a ! -name ".." \) -exec ln -s {} /home/jenkins/agent/workspace/k8s-e2e \;' //sh 'sleep 300' def build_dir = sh( returnStdout: true, script:"mktemp -d ${WORKSPACE}/build/build_docker_run.XXXXXXXXXX" ).trim() def tmp_dir = generatePath(build_dir.trim()) From 517f17b7a67bd0535aa4e8c7a08a6e4e1e9668e1 Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 10 Oct 2023 17:12:36 +0530 Subject: [PATCH 337/426] added symlink command --- .jenkins/pipeline.jenkins | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index de07e2e044cf..b4eae46d5559 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -347,7 +347,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { //cleanWs() echo "build_script: ${build_script}" //checkout scm - sh 'find /tmp/k8s-e2e -mindepth 1 -maxdepth 1 -type d \( ! -name "." -a ! -name ".." \) -exec ln -s {} /home/jenkins/agent/workspace/k8s-e2e \;' + sh 'find /tmp/k8s-e2e -mindepth 1 -maxdepth 1 -type d ! -name "." ! -name ".." -exec ln -s {} /home/jenkins/agent/workspace/k8s-e2e \;' //sh 'ln -s /tmp/k8s-e2e/. /home/jenkins/agent/workspace/k8s-e2e' sh "echo scm success" @@ -360,7 +360,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { echo "build_script_safe_name: ${build_script_safe_name}" def logfile = "${JOB_NAME}_${BUILD_NUMBER}_${build_script_safe_name}_jdk${jdk}_${arch}_attempt_${attempt}.log" sh "mkdir -p build" - sh 'find /tmp/k8s-e2e -mindepth 1 -maxdepth 1 -type d \( ! -name "." -a ! -name ".." \) -exec ln -s {} /home/jenkins/agent/workspace/k8s-e2e \;' + sh 'find /tmp/k8s-e2e -mindepth 1 -maxdepth 1 -type d ! -name "." -a ! -name ".." -exec ln -s {} /home/jenkins/agent/workspace/k8s-e2e \;' //sh 'sleep 300' def build_dir = sh( returnStdout: true, script:"mktemp -d ${WORKSPACE}/build/build_docker_run.XXXXXXXXXX" ).trim() def tmp_dir = generatePath(build_dir.trim()) From 9b2d1f142ebb6d7589c413d70b8112593055173c Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 10 Oct 2023 17:13:28 +0530 Subject: [PATCH 338/426] added symlink command --- .jenkins/pipeline.jenkins | 1 + 1 file changed, 1 insertion(+) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index b4eae46d5559..cc7ca6cf7708 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -347,6 +347,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { //cleanWs() echo "build_script: ${build_script}" //checkout scm + sh 'sleep 600' sh 'find /tmp/k8s-e2e -mindepth 1 -maxdepth 1 -type d ! -name "." ! -name ".." -exec ln -s {} /home/jenkins/agent/workspace/k8s-e2e \;' //sh 'ln -s /tmp/k8s-e2e/. /home/jenkins/agent/workspace/k8s-e2e' From 9b4980c683ab621a98c95ea34874c2068c2da4ac Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 10 Oct 2023 17:14:19 +0530 Subject: [PATCH 339/426] added symlink command --- .jenkins/pipeline.jenkins | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index cc7ca6cf7708..48ce2eb8618c 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -348,7 +348,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { echo "build_script: ${build_script}" //checkout scm sh 'sleep 600' - sh 'find /tmp/k8s-e2e -mindepth 1 -maxdepth 1 -type d ! -name "." ! -name ".." -exec ln -s {} /home/jenkins/agent/workspace/k8s-e2e \;' + //sh 'find /tmp/k8s-e2e -mindepth 1 -maxdepth 1 -type d ! -name "." ! -name ".." -exec ln -s {} /home/jenkins/agent/workspace/k8s-e2e \;' //sh 'ln -s /tmp/k8s-e2e/. /home/jenkins/agent/workspace/k8s-e2e' sh "echo scm success" @@ -361,7 +361,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { echo "build_script_safe_name: ${build_script_safe_name}" def logfile = "${JOB_NAME}_${BUILD_NUMBER}_${build_script_safe_name}_jdk${jdk}_${arch}_attempt_${attempt}.log" sh "mkdir -p build" - sh 'find /tmp/k8s-e2e -mindepth 1 -maxdepth 1 -type d ! -name "." -a ! -name ".." -exec ln -s {} /home/jenkins/agent/workspace/k8s-e2e \;' + //sh 'find /tmp/k8s-e2e -mindepth 1 -maxdepth 1 -type d ! -name "." -a ! -name ".." -exec ln -s {} /home/jenkins/agent/workspace/k8s-e2e \;' //sh 'sleep 300' def build_dir = sh( returnStdout: true, script:"mktemp -d ${WORKSPACE}/build/build_docker_run.XXXXXXXXXX" ).trim() def tmp_dir = generatePath(build_dir.trim()) From 546cf957185623ce37100a66e2fbd5b4503a5534 Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 10 Oct 2023 17:19:01 +0530 Subject: [PATCH 340/426] updated --- .jenkins/pipeline.jenkins | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 48ce2eb8618c..b96314553f73 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -348,7 +348,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { echo "build_script: ${build_script}" //checkout scm sh 'sleep 600' - //sh 'find /tmp/k8s-e2e -mindepth 1 -maxdepth 1 -type d ! -name "." ! -name ".." -exec ln -s {} /home/jenkins/agent/workspace/k8s-e2e \;' + sh "find /tmp/k8s-e2e/ -mindepth 1 -maxdepth 1 -type d ! -name '.' ! -name '..' -exec ln -s {} /home/jenkins/agent/workspace/k8s-e2e \;" //sh 'ln -s /tmp/k8s-e2e/. /home/jenkins/agent/workspace/k8s-e2e' sh "echo scm success" @@ -361,7 +361,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { echo "build_script_safe_name: ${build_script_safe_name}" def logfile = "${JOB_NAME}_${BUILD_NUMBER}_${build_script_safe_name}_jdk${jdk}_${arch}_attempt_${attempt}.log" sh "mkdir -p build" - //sh 'find /tmp/k8s-e2e -mindepth 1 -maxdepth 1 -type d ! -name "." -a ! -name ".." -exec ln -s {} /home/jenkins/agent/workspace/k8s-e2e \;' + sh "find /tmp/k8s-e2e/ -mindepth 1 -maxdepth 1 -type d ! -name '.' ! -name '..' -exec ln -s {} /home/jenkins/agent/workspace/k8s-e2e \;" //sh 'sleep 300' def build_dir = sh( returnStdout: true, script:"mktemp -d ${WORKSPACE}/build/build_docker_run.XXXXXXXXXX" ).trim() def tmp_dir = generatePath(build_dir.trim()) From 2109074fc53a45927a0a0f12f1de2345a511b91f Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 10 Oct 2023 17:20:18 +0530 Subject: [PATCH 341/426] updated --- .jenkins/pipeline.jenkins | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index b96314553f73..9b4679418c1e 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -348,7 +348,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { echo "build_script: ${build_script}" //checkout scm sh 'sleep 600' - sh "find /tmp/k8s-e2e/ -mindepth 1 -maxdepth 1 -type d ! -name '.' ! -name '..' -exec ln -s {} /home/jenkins/agent/workspace/k8s-e2e \;" + sh "find /tmp/k8s-e2e/ -mindepth 1 -maxdepth 1 -type d ! -name '.' ! -name '..' -exec ln -s {} /home/jenkins/agent/workspace/k8s-e2e \\;" //sh 'ln -s /tmp/k8s-e2e/. /home/jenkins/agent/workspace/k8s-e2e' sh "echo scm success" @@ -361,7 +361,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { echo "build_script_safe_name: ${build_script_safe_name}" def logfile = "${JOB_NAME}_${BUILD_NUMBER}_${build_script_safe_name}_jdk${jdk}_${arch}_attempt_${attempt}.log" sh "mkdir -p build" - sh "find /tmp/k8s-e2e/ -mindepth 1 -maxdepth 1 -type d ! -name '.' ! -name '..' -exec ln -s {} /home/jenkins/agent/workspace/k8s-e2e \;" + sh "find /tmp/k8s-e2e/ -mindepth 1 -maxdepth 1 -type d ! -name '.' ! -name '..' -exec ln -s {} /home/jenkins/agent/workspace/k8s-e2e \\;" //sh 'sleep 300' def build_dir = sh( returnStdout: true, script:"mktemp -d ${WORKSPACE}/build/build_docker_run.XXXXXXXXXX" ).trim() def tmp_dir = generatePath(build_dir.trim()) From 84e65951786a029c558ef7ec06514c4e9594defe Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 10 Oct 2023 17:23:02 +0530 Subject: [PATCH 342/426] updated --- .jenkins/pipeline.jenkins | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 9b4679418c1e..f32b291cd53e 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -347,7 +347,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { //cleanWs() echo "build_script: ${build_script}" //checkout scm - sh 'sleep 600' + //sh 'sleep 600' sh "find /tmp/k8s-e2e/ -mindepth 1 -maxdepth 1 -type d ! -name '.' ! -name '..' -exec ln -s {} /home/jenkins/agent/workspace/k8s-e2e \\;" //sh 'ln -s /tmp/k8s-e2e/. /home/jenkins/agent/workspace/k8s-e2e' @@ -361,7 +361,6 @@ def _buildAxis(build_script, toCopy, arch, jdk) { echo "build_script_safe_name: ${build_script_safe_name}" def logfile = "${JOB_NAME}_${BUILD_NUMBER}_${build_script_safe_name}_jdk${jdk}_${arch}_attempt_${attempt}.log" sh "mkdir -p build" - sh "find /tmp/k8s-e2e/ -mindepth 1 -maxdepth 1 -type d ! -name '.' ! -name '..' -exec ln -s {} /home/jenkins/agent/workspace/k8s-e2e \\;" //sh 'sleep 300' def build_dir = sh( returnStdout: true, script:"mktemp -d ${WORKSPACE}/build/build_docker_run.XXXXXXXXXX" ).trim() def tmp_dir = generatePath(build_dir.trim()) @@ -380,7 +379,8 @@ def _buildAxis(build_script, toCopy, arch, jdk) { echo "${build_dir}" //sh 'cp -r /tmp/* /home/jenkins/agent/workspace/k8s-e2e' echo "${build_dir} ${tmp_dir}" - //sh "cp -r ${build_dir} ${tmp_dir}" + sh "cp -r ${build_dir} ${tmp_dir}"sh "find /tmp/k8s-e2e/ -mindepth 1 -maxdepth 1 -type d ! -name '.' ! -name '..' -exec ln -s {} /home/jenkins/agent/workspace/k8s-e2e \\;" + if (".build/docker/build-artifacts.sh" == build_script || build_script.contains(".build/docker/_docker_run.sh")) { //dir("${build_dir}") { dir("${build_dir}") { From 2207f9fe6b48983cd754e6ca1fda85f43e2e47d3 Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 10 Oct 2023 17:54:43 +0530 Subject: [PATCH 343/426] added sleep --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index f32b291cd53e..4dd02fbfc7d7 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -361,7 +361,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { echo "build_script_safe_name: ${build_script_safe_name}" def logfile = "${JOB_NAME}_${BUILD_NUMBER}_${build_script_safe_name}_jdk${jdk}_${arch}_attempt_${attempt}.log" sh "mkdir -p build" - //sh 'sleep 300' + sh 'sleep 300' def build_dir = sh( returnStdout: true, script:"mktemp -d ${WORKSPACE}/build/build_docker_run.XXXXXXXXXX" ).trim() def tmp_dir = generatePath(build_dir.trim()) echo "tmp_dir ${tmp_dir}" From fe31a27c01e0330a32a88afb72641d33b4284324 Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 10 Oct 2023 18:03:55 +0530 Subject: [PATCH 344/426] added sleep --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 4dd02fbfc7d7..f32b291cd53e 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -361,7 +361,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { echo "build_script_safe_name: ${build_script_safe_name}" def logfile = "${JOB_NAME}_${BUILD_NUMBER}_${build_script_safe_name}_jdk${jdk}_${arch}_attempt_${attempt}.log" sh "mkdir -p build" - sh 'sleep 300' + //sh 'sleep 300' def build_dir = sh( returnStdout: true, script:"mktemp -d ${WORKSPACE}/build/build_docker_run.XXXXXXXXXX" ).trim() def tmp_dir = generatePath(build_dir.trim()) echo "tmp_dir ${tmp_dir}" From 18295dfaeb624b4ada9e0d50016c63498661ce03 Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 10 Oct 2023 18:15:51 +0530 Subject: [PATCH 345/426] troubleshooting container --- .build/docker/_docker_run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.build/docker/_docker_run.sh b/.build/docker/_docker_run.sh index b07f54dd6e49..7706212133be 100755 --- a/.build/docker/_docker_run.sh +++ b/.build/docker/_docker_run.sh @@ -141,7 +141,7 @@ RETURN=$? current_build_dir=$(basename "${build_dir}") docker cp ${container_name}:"/home/build/cassandra/build/${current_build_dir}" /home/jenkins/agent/workspace/k8s-e2e/build -docker stop ${container_name} >/dev/null +#docker stop ${container_name} >/dev/null popd >/dev/null [ $RETURN -eq 0 ] && echo "Build directory found at ${build_dir}" exit $RETURN From b4cbd6a1635b6f2eba652c88abc8286e3fd6c103 Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 10 Oct 2023 18:26:20 +0530 Subject: [PATCH 346/426] troubleshooting container --- .jenkins/pipeline.jenkins | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index f32b291cd53e..8690827f1f8f 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -378,8 +378,8 @@ def _buildAxis(build_script, toCopy, arch, jdk) { sh "echo ${build_script}" echo "${build_dir}" //sh 'cp -r /tmp/* /home/jenkins/agent/workspace/k8s-e2e' - echo "${build_dir} ${tmp_dir}" - sh "cp -r ${build_dir} ${tmp_dir}"sh "find /tmp/k8s-e2e/ -mindepth 1 -maxdepth 1 -type d ! -name '.' ! -name '..' -exec ln -s {} /home/jenkins/agent/workspace/k8s-e2e \\;" + //sh "cp -r ${build_dir} ${tmp_dir}" + sh "find /tmp/k8s-e2e/ -mindepth 1 -maxdepth 1 -type d ! -name '.' ! -name '..' -exec ln -s {} /home/jenkins/agent/workspace/k8s-e2e \\;" if (".build/docker/build-artifacts.sh" == build_script || build_script.contains(".build/docker/_docker_run.sh")) { //dir("${build_dir}") { From ad4d06a258cffff0a6fe06ad141faab1f478ca2c Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 10 Oct 2023 18:31:13 +0530 Subject: [PATCH 347/426] troubleshooting container --- .build/docker/_docker_run.sh | 2 +- .jenkins/pipeline.jenkins | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.build/docker/_docker_run.sh b/.build/docker/_docker_run.sh index 7706212133be..808b9356c2de 100755 --- a/.build/docker/_docker_run.sh +++ b/.build/docker/_docker_run.sh @@ -133,7 +133,7 @@ container_id=$(docker run --name ${container_name} -d --security-opt seccomp=unc echo "Running container ${container_name} ${container_id}" -#sleep 3600 +sleep 600 #docker exec --user root ${container_name} bash -c "\${CASSANDRA_DIR}/.build/docker/_create_user.sh build $(id -u) $(id -g)" docker exec --user root ${container_name} bash -c "/home/build/cassandra/.build/docker/_create_user.sh build $(id -u) $(id -g)" docker exec --user build ${container_name} bash -c "${docker_command}" diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 8690827f1f8f..97f6157f5344 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -379,7 +379,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { echo "${build_dir}" //sh 'cp -r /tmp/* /home/jenkins/agent/workspace/k8s-e2e' //sh "cp -r ${build_dir} ${tmp_dir}" - sh "find /tmp/k8s-e2e/ -mindepth 1 -maxdepth 1 -type d ! -name '.' ! -name '..' -exec ln -s {} /home/jenkins/agent/workspace/k8s-e2e \\;" + //sh "find /tmp/k8s-e2e/ -mindepth 1 -maxdepth 1 -type d ! -name '.' ! -name '..' -exec ln -s {} /home/jenkins/agent/workspace/k8s-e2e \\;" if (".build/docker/build-artifacts.sh" == build_script || build_script.contains(".build/docker/_docker_run.sh")) { //dir("${build_dir}") { From 3f99f2f1e5d87b469cb7eb2c232a20a199dc639d Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 10 Oct 2023 18:50:14 +0530 Subject: [PATCH 348/426] added cassandra dir env value --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 97f6157f5344..6a9c682a8ce6 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -374,7 +374,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { } } echo "Executing `build_dir=${build_dir} ${build_script} ${jdk} 2>&1 | tee ${logfile}` on ${NODE_NAME}" - statusCode = sh returnStatus:true, script:"build_dir=\"${build_dir}\" ${build_script} ${jdk} 2>&1 | tee ${logfile}" + statusCode = sh returnStatus:true, script:"cassandra_dir=/home/jenkins/agent/workspace/k8s-e2e build_dir=\"${build_dir}\" ${build_script} ${jdk} 2>&1 | tee ${logfile}" sh "echo ${build_script}" echo "${build_dir}" //sh 'cp -r /tmp/* /home/jenkins/agent/workspace/k8s-e2e' From 3d97537aa8470b6053d148e31513fd3e6fd5006a Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 11 Oct 2023 13:28:53 +0530 Subject: [PATCH 349/426] updated script --- .build/run-ci.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.build/run-ci.sh b/.build/run-ci.sh index d4e004da2c01..2a7856c33229 100755 --- a/.build/run-ci.sh +++ b/.build/run-ci.sh @@ -79,6 +79,31 @@ echo "Jenkins Operator installed successfully!" # condition to check if above co # deploy jenkins Instance TODO jenkins file parameter kubectl apply --namespace ${KUBE_NS} -f ${CASSANDRA_DIR}/.build/jenkins-deployment.yaml +BUILD_DIR=/var/lib/jenkins/jobs/k8s-e2e/builds/ +LATEST_BUILD=$(kubectl exec -it jenkins-example -- /bin/bash -c "ls -t $BUILD_DIR | head -n 1") + +CONSOLE_LOG_FILE="$BUILD_DIR/$LATEST_BUILD/consoleLog" + +# Define a function to check if "FINISHED" is in the consoleLog +check_finished() { + kubectl exec -n "$NAMESPACE" "$POD_NAME" -- cat "$CONSOLE_LOG_FILE" | grep -q "FINISHED" +} + +# Continuously check for "FINISHED" +while true; do + if check_finished; then + echo "Build has finished." + break + else + echo "Build is still in progress." + fi + sleep 5 # Adjust the sleep interval as needed +done + + + + + # TODO wait for job pods #kubectl rollout --namespace ${KUBE_NS} wait pod/ [--for=] From 98c3ede725b7cf62d1a5b631b513ff9f6cdb10b0 Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 11 Oct 2023 13:52:23 +0530 Subject: [PATCH 350/426] updated script --- .build/run-ci.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.build/run-ci.sh b/.build/run-ci.sh index 2a7856c33229..da61f59949f7 100755 --- a/.build/run-ci.sh +++ b/.build/run-ci.sh @@ -80,7 +80,10 @@ echo "Jenkins Operator installed successfully!" # condition to check if above co kubectl apply --namespace ${KUBE_NS} -f ${CASSANDRA_DIR}/.build/jenkins-deployment.yaml BUILD_DIR=/var/lib/jenkins/jobs/k8s-e2e/builds/ -LATEST_BUILD=$(kubectl exec -it jenkins-example -- /bin/bash -c "ls -t $BUILD_DIR | head -n 1") +NAMESPACE=default +POD_NAME=jenkins-example + +LATEST_BUILD=$(kubectl exec -it $POD_NAME -- /bin/bash -c "ls -t $BUILD_DIR | head -n 1") CONSOLE_LOG_FILE="$BUILD_DIR/$LATEST_BUILD/consoleLog" From c3a1a326c148379943a4945f4df8bce958206249 Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 11 Oct 2023 14:00:15 +0530 Subject: [PATCH 351/426] updated script --- .build/run-ci.sh | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.build/run-ci.sh b/.build/run-ci.sh index da61f59949f7..f484c1cfe37c 100755 --- a/.build/run-ci.sh +++ b/.build/run-ci.sh @@ -79,17 +79,14 @@ echo "Jenkins Operator installed successfully!" # condition to check if above co # deploy jenkins Instance TODO jenkins file parameter kubectl apply --namespace ${KUBE_NS} -f ${CASSANDRA_DIR}/.build/jenkins-deployment.yaml -BUILD_DIR=/var/lib/jenkins/jobs/k8s-e2e/builds/ -NAMESPACE=default -POD_NAME=jenkins-example +BUILD_DIR=/var/lib/jenkins/jobs/k8s-e2e/builds +LATEST_BUILD=$(kubectl exec -it jenkins-example -- /bin/bash -c "ls -t $BUILD_DIR | head -n 1" | tr -d '\r') -LATEST_BUILD=$(kubectl exec -it $POD_NAME -- /bin/bash -c "ls -t $BUILD_DIR | head -n 1") - -CONSOLE_LOG_FILE="$BUILD_DIR/$LATEST_BUILD/consoleLog" +CONSOLE_LOG_FILE="$BUILD_DIR/$LATEST_BUILD/log" # Define a function to check if "FINISHED" is in the consoleLog check_finished() { - kubectl exec -n "$NAMESPACE" "$POD_NAME" -- cat "$CONSOLE_LOG_FILE" | grep -q "FINISHED" + kubectl exec -n default jenkins-example -- cat "$CONSOLE_LOG_FILE" | grep -q "Finished" } # Continuously check for "FINISHED" From a59258bd7571407b4583d6f0bd9d9f8a09f63fad Mon Sep 17 00:00:00 2001 From: richamishra Date: Wed, 11 Oct 2023 15:40:24 +0530 Subject: [PATCH 352/426] updated script --- .build/run-ci.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.build/run-ci.sh b/.build/run-ci.sh index f484c1cfe37c..4555901ab831 100755 --- a/.build/run-ci.sh +++ b/.build/run-ci.sh @@ -80,13 +80,14 @@ echo "Jenkins Operator installed successfully!" # condition to check if above co kubectl apply --namespace ${KUBE_NS} -f ${CASSANDRA_DIR}/.build/jenkins-deployment.yaml BUILD_DIR=/var/lib/jenkins/jobs/k8s-e2e/builds -LATEST_BUILD=$(kubectl exec -it jenkins-example -- /bin/bash -c "ls -t $BUILD_DIR | head -n 1" | tr -d '\r') +POD_NAME=jenkins-example +LATEST_BUILD=$(kubectl exec -it $POD_NAME -- /bin/bash -c "ls -t $BUILD_DIR | head -n 1" | tr -d '\r') CONSOLE_LOG_FILE="$BUILD_DIR/$LATEST_BUILD/log" # Define a function to check if "FINISHED" is in the consoleLog check_finished() { - kubectl exec -n default jenkins-example -- cat "$CONSOLE_LOG_FILE" | grep -q "Finished" + kubectl exec -n $KUBE_NS $POD_NAME -- cat "$CONSOLE_LOG_FILE" | grep -q "Finished" } # Continuously check for "FINISHED" @@ -100,6 +101,10 @@ while true; do sleep 5 # Adjust the sleep interval as needed done +LOCAL_DIR=. +mkdir -p $LOCAL_DIR/$LATEST_BUILD +kubectl cp -n $KUBE_NS $POD_NAME:$BUILD_DIR/$LATEST_BUILD/log $LOCAL_DIR/$LATEST_BUILD/log +kubectl cp -n $KUBE_NS $POD_NAME:$BUILD_DIR/$LATEST_BUILD/junitResult.xml $LOCAL_DIR/$LATEST_BUILD/junitResult.xml From 8da7257e890328b0fc20eeb0cd6aac695e2fe959 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Wed, 11 Oct 2023 15:44:57 +0530 Subject: [PATCH 353/426] add mount bind in pipeline.jenkins --- .jenkins/pipeline.jenkins | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 6a9c682a8ce6..655268590e09 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -348,9 +348,10 @@ def _buildAxis(build_script, toCopy, arch, jdk) { echo "build_script: ${build_script}" //checkout scm //sh 'sleep 600' - sh "find /tmp/k8s-e2e/ -mindepth 1 -maxdepth 1 -type d ! -name '.' ! -name '..' -exec ln -s {} /home/jenkins/agent/workspace/k8s-e2e \\;" + //sh "find /tmp/k8s-e2e/ -mindepth 1 -maxdepth 1 -type d ! -name '.' ! -name '..' -exec ln -s {} /home/jenkins/agent/workspace/k8s-e2e \\;" //sh 'ln -s /tmp/k8s-e2e/. /home/jenkins/agent/workspace/k8s-e2e' - + mount --bind /tmp/k8s-e2e/ /home/jenkins/agent/workspace/k8s-e2e/ + sh "echo scm success" tool type: 'jdk', name: "jdk_${jdk}_latest" sh "echo tool success" From 1942c8dda9c054611926d93e135fcc7273d03888 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Wed, 11 Oct 2023 15:46:47 +0530 Subject: [PATCH 354/426] add mount bind in pipeline.jenkins --- .jenkins/pipeline.jenkins | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 655268590e09..38d51b8ff806 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -350,8 +350,8 @@ def _buildAxis(build_script, toCopy, arch, jdk) { //sh 'sleep 600' //sh "find /tmp/k8s-e2e/ -mindepth 1 -maxdepth 1 -type d ! -name '.' ! -name '..' -exec ln -s {} /home/jenkins/agent/workspace/k8s-e2e \\;" //sh 'ln -s /tmp/k8s-e2e/. /home/jenkins/agent/workspace/k8s-e2e' - mount --bind /tmp/k8s-e2e/ /home/jenkins/agent/workspace/k8s-e2e/ - + sh 'mount --bind /tmp/k8s-e2e/ /home/jenkins/agent/workspace/k8s-e2e/' + sh "echo scm success" tool type: 'jdk', name: "jdk_${jdk}_latest" sh "echo tool success" From d87111dabcadc0bf7f7a137953ba5f93d214d585 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Wed, 11 Oct 2023 15:51:28 +0530 Subject: [PATCH 355/426] add sleep to troubleshoot mount bind in pipeline.jenkins --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 38d51b8ff806..bde1185f3479 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -347,7 +347,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { //cleanWs() echo "build_script: ${build_script}" //checkout scm - //sh 'sleep 600' + sh 'sleep 600' //sh "find /tmp/k8s-e2e/ -mindepth 1 -maxdepth 1 -type d ! -name '.' ! -name '..' -exec ln -s {} /home/jenkins/agent/workspace/k8s-e2e \\;" //sh 'ln -s /tmp/k8s-e2e/. /home/jenkins/agent/workspace/k8s-e2e' sh 'mount --bind /tmp/k8s-e2e/ /home/jenkins/agent/workspace/k8s-e2e/' From 9112b04aeaf797293aaaf2320f5e2ef66fc17aa7 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Wed, 11 Oct 2023 15:59:40 +0530 Subject: [PATCH 356/426] add securityContext as privileged in pipeline.jenkins --- .jenkins/pipeline.jenkins | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index bde1185f3479..29d43232b139 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -79,8 +79,8 @@ pipeline { - name: cassandra-dir mountPath: /tmp/k8s-e2e tty: true - //securityContext: - //privileged: true + securityContext: + privileged: true nodeSelector: gke-node: first volumes: From 238b21d11ad91f6b255ec8627b4f75b87ccee563 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Wed, 11 Oct 2023 16:06:49 +0530 Subject: [PATCH 357/426] add securityContext as SYS_ADMIN in pipeline.jenkins --- .jenkins/pipeline.jenkins | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 29d43232b139..adacaf57339d 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -80,7 +80,9 @@ pipeline { mountPath: /tmp/k8s-e2e tty: true securityContext: - privileged: true + capabilities: + add: + - SYS_ADMIN nodeSelector: gke-node: first volumes: From 46838cef74f895c8729dab90301f20cc0f7fd170 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Wed, 11 Oct 2023 16:09:13 +0530 Subject: [PATCH 358/426] add securityContext as root user in pipeline.jenkins --- .jenkins/pipeline.jenkins | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index adacaf57339d..15bc9656b9a6 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -80,9 +80,7 @@ pipeline { mountPath: /tmp/k8s-e2e tty: true securityContext: - capabilities: - add: - - SYS_ADMIN + runAsUser: 0 nodeSelector: gke-node: first volumes: From 392c486bab87d8918f12790e042c2188a4653d87 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Wed, 11 Oct 2023 18:33:17 +0530 Subject: [PATCH 359/426] add securityContext as root user and privileged in pipeline.jenkins --- .jenkins/pipeline.jenkins | 1 + 1 file changed, 1 insertion(+) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 15bc9656b9a6..2bd0b0b06e1a 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -81,6 +81,7 @@ pipeline { tty: true securityContext: runAsUser: 0 + privileged: true nodeSelector: gke-node: first volumes: From 837df0b7d1e1315e9cab853c5e0c5bd9fcaacc60 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Wed, 11 Oct 2023 18:39:29 +0530 Subject: [PATCH 360/426] remove sleep added previously for troubleshooting in pipeline.jenkins --- .jenkins/pipeline.jenkins | 1 - 1 file changed, 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 2bd0b0b06e1a..a9927585cf96 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -348,7 +348,6 @@ def _buildAxis(build_script, toCopy, arch, jdk) { //cleanWs() echo "build_script: ${build_script}" //checkout scm - sh 'sleep 600' //sh "find /tmp/k8s-e2e/ -mindepth 1 -maxdepth 1 -type d ! -name '.' ! -name '..' -exec ln -s {} /home/jenkins/agent/workspace/k8s-e2e \\;" //sh 'ln -s /tmp/k8s-e2e/. /home/jenkins/agent/workspace/k8s-e2e' sh 'mount --bind /tmp/k8s-e2e/ /home/jenkins/agent/workspace/k8s-e2e/' From 6ac16ab8f8f4a23bd32362576160caaf48d9bbac Mon Sep 17 00:00:00 2001 From: Nbarola Date: Wed, 11 Oct 2023 18:46:46 +0530 Subject: [PATCH 361/426] add switch user to jenkins in pipeline.jenkins --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index a9927585cf96..b9ea7046744d 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -351,7 +351,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { //sh "find /tmp/k8s-e2e/ -mindepth 1 -maxdepth 1 -type d ! -name '.' ! -name '..' -exec ln -s {} /home/jenkins/agent/workspace/k8s-e2e \\;" //sh 'ln -s /tmp/k8s-e2e/. /home/jenkins/agent/workspace/k8s-e2e' sh 'mount --bind /tmp/k8s-e2e/ /home/jenkins/agent/workspace/k8s-e2e/' - + sh 'su - jenkins' sh "echo scm success" tool type: 'jdk', name: "jdk_${jdk}_latest" sh "echo tool success" From 385eaec105100b64c3fb6c9d9b37cb52087ef635 Mon Sep 17 00:00:00 2001 From: richamishra Date: Thu, 12 Oct 2023 10:47:39 +0530 Subject: [PATCH 362/426] updated init container --- .build/run-new-ci.sh | 118 ++----- .jenkins/pipeline.jenkins | 5 +- 2/log | 723 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 751 insertions(+), 95 deletions(-) create mode 100644 2/log diff --git a/.build/run-new-ci.sh b/.build/run-new-ci.sh index b975d6374ac8..b49f201e1b0c 100644 --- a/.build/run-new-ci.sh +++ b/.build/run-new-ci.sh @@ -1,96 +1,28 @@ #!/bin/bash -# -# 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. -# - -# variables, with defaults -[ "x${CASSANDRA_DIR}" != "x" ] || CASSANDRA_DIR="$(readlink -f $(dirname "$0")/..)" -[ "x${KUBECONFIG}" != "x" ] || KUBECONFIG="${HOME}/.kube/apache-config" -[ "x${KUBE_NS}" != "x" ] || KUBE_NS="default" # FIXME – doesn't work in other namespaces :shrug: - -# pre-conditions -command -v kubectl >/dev/null 2>&1 || { echo >&2 "kubectl needs to be installed"; exit 1; } -command -v helm >/dev/null 2>&1 || { echo >&2 "helm needs to be installed"; exit 1; } - -# Parse command-line arguments -while [[ $# -gt 0 ]]; do - key="$1" - case $key in - -c|--kubeconfig) - KUBECONFIG="$2" # This sets the KUBECONFIG variable to the next argument. - shift # This shifts the arguments to the left, discarding the current argument and moving to the next one. - shift # This is an additional shift to move to the argument after the option value. - ;; - -ctx|--kubecontext) - unset KUBECONFIG - KUBECONTEXT="$2" # This sets the KUBECONTEXT variable to the next argument. - shift # This shifts the arguments to the left, discarding the current argument and moving to the next one. - shift # This is an additional shift to move to the argument after the option value. - ;; - *) - echo "Unknown option: $1" - exit 1 - ;; - esac +KUBE_NS=default +POD_NAME=jenkins-example +BUILD_DIR=/var/lib/jenkins/jobs/k8s-e2e/builds +LATEST_BUILD=$(kubectl exec -it jenkins-example -- /bin/bash -c "ls -t $BUILD_DIR | head -n 1" | tr -d '\r') + +CONSOLE_LOG_FILE="$BUILD_DIR/$LATEST_BUILD/log" + +# Define a function to check if "FINISHED" is in the consoleLog +check_finished() { + kubectl exec -n default jenkins-example -- cat "$CONSOLE_LOG_FILE" | grep -q "Finished" +} + +# Continuously check for "FINISHED" +while true; do + if check_finished; then + echo "Build has finished." + break + else + echo "Build is still in progress." + fi + sleep 5 # Adjust the sleep interval as needed done -if [ -z "$KUBECONFIG" ] && [ -z "$KUBECONTEXT" ]; then - echo "Please provide either the path to the kubeconfig using -c|--kubeconfig option or the kubecontext using -ctx|--kubecontext option." - exit 1 -fi - -# This sets the kubeconfig and kubecontext if provided -if [ -n "$KUBECONFIG" ]; then - export KUBECONFIG="$KUBECONFIG" -fi - -if [ -n "$KUBECONTEXT" ]; then - kubectl config use-context "$KUBECONTEXT" -fi - -if ! kubectl get namespace ${KUBE_NS} >/dev/null 2>/dev/null ; then - kubectl create namespace ${KUBE_NS} -fi - -# Add Helm Jenkins Operator repository -echo "Adding Helm repository for Jenkins Operator..." -helm repo add --namespace ${KUBE_NS} jenkins https://raw.githubusercontent.com/jenkinsci/kubernetes-operator/master/chart - -# Install Jenkins Operator using Helm -echo "Installing Jenkins Operator..." -helm upgrade --namespace ${KUBE_NS} --install jenkins-operator jenkins/jenkins-operator --set jenkins.enabled=false --set jenkins.backup.enabled=false --version 0.8.0-beta.2 - -echo "Jenkins Operator installed successfully!" # condition to check if above command was success - -# deploy jenkins Instance TODO jenkins file parameter -kubectl apply --namespace ${KUBE_NS} -f ${CASSANDRA_DIR}/.build/jenkins-deployment.yaml - -# TODO wait for job pods -#kubectl rollout --namespace ${KUBE_NS} wait pod/ [--for=] - -#sleep 120 - -# get job pod name - TODO parameterise the job name -#jobPodName=$(kubectl --namespace ${KUBE_NS} get po | grep k8sagent-e2e | cut -d " " -f1) - -# get the file - TODO parameterize the path to fetch path -#kubectl exec --namespace ${KUBE_NS} $jobPodName -- tar cf - /home/jenkins/agent/workspace/k8s-e2e | tar xf - -C . - -# teardown # TODO add option to skip teardown -#kubectl delete --namespace ${KUBE_NS} -f ${CASSANDRA_DIR}/.build/jenkins-deployment.yaml -#kubectl delete "$(kubectl api-resources --namespaced=true --verbs=delete -o name | tr "\n" "," | sed -e 's/,$//')" --all -#kubectl delete namespace ${KUBE_NS} \ No newline at end of file +LOCAL_DIR=. +mkdir -p $LOCAL_DIR/$LATEST_BUILD +kubectl cp -n $KUBE_NS $POD_NAME:$BUILD_DIR/$LATEST_BUILD/log $LOCAL_DIR/$LATEST_BUILD/log +kubectl cp -n $KUBE_NS $POD_NAME:$BUILD_DIR/$LATEST_BUILD/junitResult.xml $LOCAL_DIR/$LATEST_BUILD/junitResult.xml \ No newline at end of file diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index b9ea7046744d..1c73d64a53e4 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -60,6 +60,7 @@ pipeline { - sh - -c - chown 1000:1000 /var/run/docker.sock + - mount --bind /tmp/k8s-e2e/ /home/jenkins/agent/workspace/k8s-e2e/ volumeMounts: - name: docker-socket mountPath: /var/run/docker.sock @@ -350,8 +351,8 @@ def _buildAxis(build_script, toCopy, arch, jdk) { //checkout scm //sh "find /tmp/k8s-e2e/ -mindepth 1 -maxdepth 1 -type d ! -name '.' ! -name '..' -exec ln -s {} /home/jenkins/agent/workspace/k8s-e2e \\;" //sh 'ln -s /tmp/k8s-e2e/. /home/jenkins/agent/workspace/k8s-e2e' - sh 'mount --bind /tmp/k8s-e2e/ /home/jenkins/agent/workspace/k8s-e2e/' - sh 'su - jenkins' + //sh 'mount --bind /tmp/k8s-e2e/ /home/jenkins/agent/workspace/k8s-e2e/' + //sh 'su - jenkins' sh "echo scm success" tool type: 'jdk', name: "jdk_${jdk}_latest" sh "echo tool success" diff --git a/2/log b/2/log new file mode 100644 index 000000000000..ebf34ffaffea --- /dev/null +++ b/2/log @@ -0,0 +1,723 @@ +Started by user ha:////4M+feViv8OnIq+kmfa0hvAdixJTg3t7DycFr0DxmNXGuAAAAoR+LCAAAAAAAAP9b85aBtbiIQTGjNKU4P08vOT+vOD8nVc83PyU1x6OyILUoJzMv2y+/JJUBAhiZGBgqihhk0NSjKDWzXb3RdlLBUSYGJk8GtpzUvPSSDB8G5tKinBIGIZ+sxLJE/ZzEvHT94JKizLx0a6BxUmjGOUNodHsLgAyBEgYx/dLi1CL9rNS87My8Yt18oNWJJflFABglii/LAAAAjenkins-operator +Checking out git https://github.com/infracloudio/cassandra.git into /var/lib/jenkins/workspace/k8s-e2e@script/8572f1b68672dd44aa5ba45da665ab98b4e70839ea5fb6f2e96696e9ab1ca47a to read .jenkins/pipeline.jenkins +The recommended git tool is: NONE +No credentials specified + > git rev-parse --resolve-git-dir /var/lib/jenkins/workspace/k8s-e2e@script/8572f1b68672dd44aa5ba45da665ab98b4e70839ea5fb6f2e96696e9ab1ca47a/.git # timeout=10 +Fetching changes from the remote Git repository + > git config remote.origin.url https://github.com/infracloudio/cassandra.git # timeout=10 +Fetching upstream changes from https://github.com/infracloudio/cassandra.git + > git --version # timeout=10 + > git --version # 'git version 2.39.2' + > git fetch --tags --force --progress -- https://github.com/infracloudio/cassandra.git +refs/heads/*:refs/remotes/origin/* # timeout=10 + > git rev-parse refs/remotes/origin/infracloud/cassandra-5.0^{commit} # timeout=10 +Checking out Revision 3d97537aa8470b6053d148e31513fd3e6fd5006a (refs/remotes/origin/infracloud/cassandra-5.0) + > git config core.sparsecheckout # timeout=10 + > git checkout -f 3d97537aa8470b6053d148e31513fd3e6fd5006a # timeout=10 +Commit message: "updated script" + > git rev-list --no-walk 3f99f2f1e5d87b469cb7eb2c232a20a199dc639d # timeout=10 +ha:////4BMX68NJF092/H4PjBSIA15v/9s1kcYkdHsyTRqzeAEuAAAAoh+LCAAAAAAAAP9tjTEOwjAQBM8BClpKHuFItIiK1krDC0x8GCfWnbEdkooX8TX+gCESFVvtrLSa5wtWKcKBo5UdUu8otU4GP9jS5Mixv3geZcdn2TIl9igbHBs2eJyx4YwwR1SwULBGaj0nRzbDRnX6rmuvydanHMu2V1A5c4MHCFXMWcf8hSnC9jqYxPTz/BXAFEIGsfuclm8zQVqFvQAAAA==[Pipeline] Start of Pipeline +ha:////4LjcTbThOpuI+rfO/IQ82QQYVZBEWWW1dfrUAKgsresTAAAAoh+LCAAAAAAAAP9tjTEOAiEURD9rLGwtPQSbaGmsbAmNJ0AWEZb8zwLrbuWJvJp3kLiJlZNMMm+a93rDOic4UbLcG+wdZu14DKOti0+U+lugiXu6ck2YKRguzSSpM+cFJRUDS1gDKwEbgzpQdmgLbIVXD9UGhba9lFS/o4DGdQM8gYlqLiqVL8wJdvexy4Q/z18BzLEA29ce4gfya1RxvAAAAA==[Pipeline] echo +[WARNING] label option is deprecated. To use a static pod template, use the 'inheritFrom' option. +ha:////4KuU9p3qKXCBQbucvjRgkwex7+7DF5IAXtJ7kS+xykB9AAAApR+LCAAAAAAAAP9tjUEKwjAURH8qXbh16SFSEHfiym3IxhPEJMa04f82SW1XnsireQejBVcODMwMDO/5gjpFOFJ0vLXYeUza8z6MriQ+UeyugSbe0oVrwkTBcmknScaeliopW1jEKlgJWFvUgZJHl2EjWnVXTVDomnOOZTsIqLwZ4AFMFHJWMX/LHGF7G00i/HH+AmDuM7Bd8f7zq9/WVBy+wAAAAA==[Pipeline] podTemplate +ha:////4F2zE0sn9HjRrH177OiYNqzz4Wost68SBTXok8ZUDV2uAAAApR+LCAAAAAAAAP9tjTEOwjAUQ3+KOrAycoh0gQkxsUZZOEFIQkgb/d8mKe3EibgadyBQiQlLlmxL1nu+oE4RjhQdby12HpP2vA+jK4lPFLtroIm3dOGaMFGwXNpJkrGnpUrKFhaxClYC1hZ1oOTRZdiIVt1VExS65pxj2Q4CKm8GeAAThZxVzN8yR9jeRpMIf5y/AJj7DGxXvP/86jc09154wAAAAA==[Pipeline] { +ha:////4HuR7a57jO5iIQbfsPqCJI//8axloLS0THsy1sJYny62AAAApR+LCAAAAAAAAP9tjTEOwjAUQ3+KOrAycoh0ggUxsUZZOEFIQkgb/d8mKe3EibgadyBQiQlLlmxL1nu+oE4RjhQdby12HpP2vA+jK4lPFLtroIm3dOGaMFGwXNpJkrGnpUrKFhaxClYC1hZ1oOTRZdiIVt1VExS65pxj2Q4CKm8GeAAThZxVzN8yR9jeRpMIf5y/AJj7DGxXvP/86jek7ggRwAAAAA==[Pipeline] node +Created Pod: kubernetes default/cassandra-mk8d2-ft4r0 +Agent ha:////4CgEb0VZ9b7e9hdsYehapOTgCz9ai3lJ67/512DD8SAnAAAAqx+LCAAAAAAAAP9b85aBtbiIQTGjNKU4P08vOT+vOD8nVc83PyU1x6OyILUoJzMv2y+/JJUBAhiZGBgqihhk0NSjKDWzXb3RdlLBUSYGJk8GtpzUvPSSDB8G5tKinBIGIZ+sxLJE/ZzEvHT94JKizLx0a6BxUmjGOUNodHsLgAzREgZ5/eT83ILSktQi/eTE4uLEvJSiRN3cbIsUI920EpMiAwCdWCi81AAAAA==cassandra-mk8d2-ft4r0 is provisioned from template cassandra-mk8d2 +--- +apiVersion: "v1" +kind: "Pod" +metadata: + annotations: + buildUrl: "http://jenkins-operator-http-example.default.svc.cluster.local:8080/job/k8s-e2e/2/" + runUrl: "job/k8s-e2e/2/" + labels: + jenkins: "slave" + jenkins/label-digest: "5f67e63ee7db1fcdb5d113eb6a080a25296a8bfa" + jenkins/label: "cassandra" + name: "cassandra-mk8d2-ft4r0" + namespace: "default" +spec: + containers: + - command: + - "/bin/sh" + - "-c" + - | + /usr/local/bin/jenkins-agent + env: + - name: "JENKINS_SECRET" + value: "********" + - name: "JENKINS_TUNNEL" + value: "jenkins-operator-slave-example.default.svc.cluster.local:50000" + - name: "JENKINS_AGENT_NAME" + value: "cassandra-mk8d2-ft4r0" + - name: "JENKINS_NAME" + value: "cassandra-mk8d2-ft4r0" + - name: "JENKINS_AGENT_WORKDIR" + value: "/home/jenkins/agent" + - name: "JENKINS_URL" + value: "http://jenkins-operator-http-example.default.svc.cluster.local:8080/" + image: "richamishra006/apache-k8s-agent:32" + name: "jnlp" + resources: + requests: + memory: "256Mi" + cpu: "100m" + tty: true + volumeMounts: + - mountPath: "/var/run/docker.sock" + name: "docker-socket" + - mountPath: "/tmp/k8s-e2e" + name: "cassandra-dir" + - mountPath: "/home/jenkins/agent" + name: "workspace-volume" + readOnly: false + //securityContext: + //privileged: true + initContainers: + - command: + - "sh" + - "-c" + - "chown 1000:1000 /var/run/docker.sock" + image: "alpine:latest" + imagePullPolicy: "Always" + name: "init-docker-socket" + securityContext: + runAsUser: 0 + volumeMounts: + - mountPath: "/var/run/docker.sock" + name: "docker-socket" + nodeSelector: + gke-node: "first" + restartPolicy: "Never" + volumes: + - hostPath: + path: "/home/jenkins/agent/workspace/k8s-e2e" + name: "cassandra-dir" + - emptyDir: + medium: "" + name: "workspace-volume" + - hostPath: + path: "/var/run/docker.sock" + name: "docker-socket" + +Running on ha:////4O1RCVcYAeRQrBC+T2GuewSqgXkbsXE9GXk6o07a8aU7AAAArx+LCAAAAAAAAP9b85aBtbiIQTGjNKU4P08vOT+vOD8nVc83PyU1x6OyILUoJzMv2y+/JJUBAhiZGBgqihhk0NSjKDWzXb3RdlLBUSYGJk8GtpzUvPSSDB8G5tKinBIGIZ+sxLJE/ZzEvHT94JKizLx0a6BxUmjGOUNodHsLgAzREgYV/eT83ILSktQi/eTE4uLEvJSiRFUjl9xsixQjIJ1WYlJkoA8Apo+AUtkAAAA=cassandra-mk8d2-ft4r0 in /home/jenkins/agent/workspace/k8s-e2e +ha:////4LKzCbSpWYC2h/32cwuzMWxZrKQDlrB1E6Mdc0K6fY7CAAAApR+LCAAAAAAAAP9tjTEOwjAUQ3+KOrAycoh0gwExsUZZOEFIQkgb/d8mKe3EibgadyBQiQlLlmxL1nu+oE4RjhQdby12HpP2vA+jK4lPFLtroIm3dOGaMFGwXNpJkrGnpUrKFhaxClYC1hZ1oOTRZdiIVt1VExS65pxj2Q4CKm8GeAAThZxVzN8yR9jeRpMIf5y/AJj7DGxXvP/86jcChmMxwAAAAA==[Pipeline] { +ha:////4EZHAkXmOElD5f3RcBlqzQlAVzu+7OoXzj6No4vDe8QVAAAApR+LCAAAAAAAAP9tjTEOwjAUQ3+KOrAycoh0BAkxsUZZOEFIQkgb/d8mKe3EibgadyBQiQlLlmxL1nu+oE4RjhQdby12HpP2vA+jK4lPFLtroIm3dOGaMFGwXNpJkrGnpUrKFhaxClYC1hZ1oOTRZdiIVt1VExS65pxj2Q4CKm8GeAAThZxVzN8yR9jeRpMIf5y/AJj7DGxXvP/86jfpX/cvwAAAAA==[Pipeline] stage +ha:////4Kw4k6Ey59Wb8IszQHBluVzBke8J8iutFMKq2lgg/RU8AAAApR+LCAAAAAAAAP9tjTEOwjAUQ3+KOrAycoh0BSEm1igLJwhJCGmj/9skpZ04EVfjDgQqMWHJkm3Jes8X1CnCkaLjrcXOY9Ke92F0JfGJYncNNPGWLlwTJgqWSztJMva0VEnZwiJWwUrA2qIOlDy6DBvRqrtqgkLXnHMs20FA5c0AD2CikLOK+VvmCNvbaBLhj/MXAHOfge2K959f/QbB16AVwAAAAA==[Pipeline] { (Declarative: Checkout SCM) +ha:////4KG430af7FjdkX9NwEYQ/lDmhG/SzOF069wnYqagxpyEAAAAoh+LCAAAAAAAAP9tjTEOwjAQBDdBFLSUPMKBEiEqWisNLzCJMU6su2BfSCpexNf4AxGRqNhqZ5p5vbFMEUeOTjWWWk+p8qoLvZueGji218CDaviiKqbEwarSDiXX9jRjyWIxL8ux0FhZqgInT06w1o15mCIYcsVZ4uQOGrmv73gi01NZTJQvjBGbW18npl/nbwBjJ8j2gny37T6VOYoyvQAAAA==[Pipeline] checkout +The recommended git tool is: NONE +No credentials specified +Cloning the remote Git repository +Cloning repository https://github.com/infracloudio/cassandra.git + > git init /home/jenkins/agent/workspace/k8s-e2e # timeout=10 +Fetching upstream changes from https://github.com/infracloudio/cassandra.git + > git --version # timeout=10 + > git --version # 'git version 2.30.2' + > git fetch --tags --force --progress -- https://github.com/infracloudio/cassandra.git +refs/heads/*:refs/remotes/origin/* # timeout=10 +Avoid second fetch +Checking out Revision 3d97537aa8470b6053d148e31513fd3e6fd5006a (refs/remotes/origin/infracloud/cassandra-5.0) +Commit message: "updated script" +ha:////4CsVqgXKVvxcqClcywmNfzfnGnlDnqadG0cQGwNqSgNZAAAAoh+LCAAAAAAAAP9tjbEOgjAURS8YB1dHP6KE0Rgn14bFL6hQa6F5D9uHMPlF/pr/IJHEyTvdc5bzemOdIo4cnWotdZ5S7VUfBjc/NXLsroFH1fJF1UyJg1WVHStu7GnBisViWZZjpbGxVAdOnpxgq1vzMEUw5IqzxNkdNHLf3PFEpueymChfmCJ2t6FJTL/O3wCmvhfkZSnI9h+IfpSRvQAAAA==[Pipeline] } +ha:////4E/+2se/Ew9D2hSPcZx4dLXiXItx+7gYTeSjKlAO3G7yAAAAox+LCAAAAAAAAP9tjTEOwjAQBDdBFLSUPMIRVEiIitZKwwtMYowT6y7YF5KKF/E1/kBEJCq22plmXm8sU8SRo1ONpdZTqrzqQu+mpwaO7TXwoBq+qIopcbCqtEPJtT3NWLJYzMtyLDRWlqrAyZMTrHVjHqYIhlxxlji5g0bu6zueyPRUFhPlC2PE5tbXienX+RvA2HWCfLsTZPsPzjQzob0AAAA=[Pipeline] // stage +ha:////4D8oyJuKBhje0Ff28063+J14fH2LI12K5F1YnQkW+JM0AAAApx+LCAAAAAAAAP9tjTEOwjAQBM9BKWgpeYQjREGBqGgtN7zAxMY4se6CfSGpeBFf4w8EIlGx1c5Kq3m+oMwJDpS8bBy2AXMdZBd7PzU5UGovkQbZ0FnWhJmik9oNmqw7zqiJHcwRBSwULB3WkXJAz7BSjbmbKhr01YnTtO0VFMHe4AFCTWY2ib8wJlhfe5sJf56/Ahg7BrFjKDbbz7F8AxnwXE7BAAAA[Pipeline] withEnv +ha:////4CEthWgxpy369I8Cz7vXppvIWpnNQzK7ZKCCA+wtolZEAAAApx+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycohUCDbE1DXKwglCE0La6P/yk9JOnIircQdaKjHhwbItWe/1hiIynIidaCy2HmPtRRd6NyUxELfXQINo6CJqwkjBCmUHRcZWS1WULCzKclhJWFusA0WPLsFGNvqhy6DRlefE03aUkHtzhydkciInzelbRobtrTeR8Mf5C4CxS5Dv9rMd5mfxAbNWnxXCAAAA[Pipeline] { +ha:////4P6/0viON471BvtLlJIm34Jb0n6Blg7Ip4psD55erdw8AAAApB+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOIiJKgQVVrLDS8wsTFOrDtjOyQVL+Jr/IFAJCq2WO1sM88XLFOEI0eLraHOUWocBt/baeHAsbt4HrDlMzZMib1BaQbJ2tQzSs4G5hQlLASsDDWekyObYS1adVeVV2SrU47TdxBQOn2DBxRiMmcV8xfGCJtrrxPTz/NXAGPIUG53n9qHN8W7Eii+AAAA[Pipeline] sh + > git config remote.origin.url https://github.com/infracloudio/cassandra.git # timeout=10 + > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 + > git rev-parse refs/remotes/origin/infracloud/cassandra-5.0^{commit} # timeout=10 + > git config core.sparsecheckout # timeout=10 + > git checkout -f 3d97537aa8470b6053d148e31513fd3e6fd5006a # timeout=10 ++ grep property\s*name="java.default" build.xml ++ sed -ne s/.*value="\([^"]*\)".*/\1/p +ha:////4CfWi4U2grKa2/cnc8m1JZQc6AhcT+O0TOEv5V0hprpJAAAApR+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOIiJESDqNJabniBiY1xYt0Z2yGpeBFf4w8EIlGxxWpnm3m+YJkiHDlabA11jlLjMPjeTgsHjt3F84Atn7FhSuwNSjNI1qaeUXI2MKcoYSFgZajxnBzZDGvRqruqvCJbnXKcvoOA0ukbPKAQkzmrmL8wRthce52Yfp6/AhhDhnK7+9Q+vAEG6D8DvgAAAA==[Pipeline] sh ++ grep property\s*name="java.supported" build.xml ++ sed -ne s/.*value="\([^"]*\)".*/\1/p +ha:////4HSsnAdVhrQhenUwVWivQV0Ad2SWkNoTloDdwCajN7/kAAAAqB+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycohUSEgMiKlrlIUThCaEtNH/5SelnTgRV+MOtFRiwoNlW7Le6w1FZDgRO9FYbD3G2osu9G5KYiBur4EG0dBF1ISRghXKDoqMrZaqKFlYlOWwkrC2WAeKHl2CjWz0Q5dBoyvPiaftKCH35g5PyORETprTt4wM21tvIuGP8xcAY5cg3+1nO8zP4gOeMTC6wgAAAA==[Pipeline] withEnv +ha:////4I3o/TSP5Y3Lo/EsGR7Pewx/VGmoxQAbRihU6VZFy26/AAAApx+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycohUTCAhpq5RFk4QmhDSRv+Xn5R24kRcjTvQUokJD5ZtyXqvNxSR4UTsRGOx9RhrL7rQuymJgbi9BhpEQxdRE0YKVig7KDK2WqqiZGFRlsNKwtpiHSh6dAk2stEPXQaNrjwnnrajhNybOzwhkxM5aU7fMjJsb72JhD/OXwCMXYJ8t5/tMD+LD0rlhNLCAAAA[Pipeline] { +ha:////4EpS7s+I8RwjpdRSmW7jZaUjVPfmwAPYSl1hQ7uH0CMMAAAApx+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycohUbCDE1DXKwglCE0La6P/yk9JOnIircQdaKjHhwbItWe/1hiIynIidaCy2HmPtRRd6NyUxELfXQINo6CJqwkjBCmUHRcZWS1WULCzKclhJWFusA0WPLsFGNvqhy6DRlefE03aUkHtzhydkciInzelbRobtrTeR8Mf5C4CxS5Dv9rMd5mfxASnCIIrCAAAA[Pipeline] timestamps +ha:////4H7kKCR36PRSQnJpHJ+ReM4S438/oaN2U1lOF4csu7FUAAAApx+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycogU2BDqxBp14QShCSFp9H9JUtKJE3E17kCgEhMeLNuS9Z4vqIKHhrxmVmFvMHSGDW7UObFEvr84SszSmXWEgZxirUotSXWca0tRwayihAWHpcLOUTCoI6y4FXdRO4G6PkWftwOH0sgbPKDgmRyFj98yeVhfRxkIf5y/AJiGCOV2n223+TyrN7xWSV3CAAAA[Pipeline] { +ha:////4Al6BFFvrcg3PWlCNBaclN7kM0yLDOPLwM5cf68hbtp1AAAAph+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycogUWBFT1ygLJwhNCGmj/8tPSjtxIq7GHWipxIQHy7ZkvdcbishwInaisdh6jLUXXejdlMRA3F4DDaKhi6gJIwUrlB0UGVstVVGysCjLYSVhbbEOFD26BBvZ6Icug0ZXnhNP21FC7s0dnpDJiZw0p28ZGba33kTCH+cvAMYuQX7Yzbafn8UHbGnGmsIAAAA=[Pipeline] stage +ha:////4A/v/87J8YPxOjaJOMyi3Eohi5ws4dsIV0xYf/cIlrmxAAAAph+LCAAAAAAAAP9tjTEOwjAUQ3+DOrAycohUdEVMrFEXThCaEJJG/7dJSjpxIq7GHWipxIQHy7ZkvdcbyhjgRMFwp7GzGFvLez+aOfFMobt5ytzRlbeEkbzmjc4NKX1ea0NJw6qCwUbAVmPrKVo0CXbCyYesvERTXVKYt6MAZtUATyjETE4ypG+ZAuzvo4qEP85fAEx9AlYfFquXZ/kBAsTc3cIAAAA=[Pipeline] { (Init) +ha:////4MnlRy7b1yhEf6OXeO4KGf6p/eoA77te+zsXKhtUBv68AAAAph+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycohUKiNiYo2ycILQhJA0+r9NUtKJE3E17kBLJSY8WLYl673eUMUAJwqGOY2dxdha1vvRzIllCt3NU2aOrqwljOQ1EzoLUvq8VkFJw6qihA2HrcbWU7RoEuy4kw9Ze4mmvqQwb0cOpVUDPKHgMznJkL5lCrC/jyoS/jh/ATD1CcqmWeywPKsPpnFij8IAAAA=[Pipeline] container +ha:////4LKw4+ND9Lca76p/rC07UfobnbFqK9vD/ZBzphUkhdAqAAAApx+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycohUAjbE1DXKwglCE0La6P/yk9JOnIircQdaKjHhwbItWe/1hiIynIidaCy2HmPtRRd6NyUxELfXQINo6CJqwkjBCmUHRcZWS1WULCzKclhJWFusA0WPLsFGNvqhy6DRlefE03aUkHtzhydkciInzelbRobtrTeR8Mf5C4CxS5Dv9rMd5mfxAd6e6VPCAAAA[Pipeline] { +ha:////4E/SLk8P+JGy0sM24QgtomQ52lDQlXxJwGQYPk33fpnDAAAApx+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycohUQjAhpq5RFk4QmhDSRv+Xn5R24kRcjTvQUokJD5ZtyXqvNxSR4UTsRGOx9RhrL7rQuymJgbi9BhpEQxdRE0YKVig7KDK2WqqiZGFRlsNKwtpiHSh6dAk2stEPXQaNrjwnnrajhNybOzwhkxM5aU7fMjJsb72JhD/OXwCMXYJ8t5/tMD+LD/hYjrHCAAAA[Pipeline] script +ha:////4Ap3pYzAE7qcIN30Y3umLO7v6fODU4W6xujZiQBVuDNlAAAAqB+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycohUQoIFMXWNsnCC0ISQNvq//KS0EyfiatyBlkpMeLBsS9Z7vaGIDCdiJxqLrcdYe9GF3k1JDMTtNdAgGrqImjBSsELZQZGx1VIVJQuLshxWEtYW60DRo0uwkY1+6DJodOU58bQdJeTe3OEJmZzISXP6lpFhe+tNJPxx/gJg7BLku/1sh/lZfACW9ZT2wgAAAA==[Pipeline] { +ha:////4JDXvtbyTwvJD/bcnoVF2g6cWRrFAX5dk7ITY/Bp2h7vAAAApR+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOIiUUCBqNJabniBiY1xYt0Z2yGpeBFf4w8EIlGxxWpnm3m+YJkiHDlabA11jlLjMPjeTgsHjt3F84Atn7FhSuwNSjNI1qaeUXI2MKcoYSFgZajxnBzZDGvRqruqvCJbnXKcvoOA0ukbPKAQkzmrmL8wRthce52Yfp6/AhhDyFBu95/avQFqe0n4vgAAAA==[Pipeline] } +ha:////4M+oKknDqqVamXwAqHq0nrWHZYobAYnKWIc2HJORN276AAAApR+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOIiISEhIaq0lhteYGJjnFh3xnZIKl7E1/gDgUhUbLHa2WaeL1imCEeOFltDnaPUOAy+t9PCgWN38Txgy2dsmBJ7g9IMkrWpZ5ScDcwpSlgIWBlqPCdHNsNatOquKq/IVqccp+8goHT6Bg8oxGTOKuYvjBE2114npp/nrwDGEDKU2/2ndm8FmBaQvgAAAA==[Pipeline] // script +ha:////4AObZttKbl/IskzMqErC0UMKHphDpTywlSb9zikMoRe1AAAApR+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOIiIRqEqNJabniBiY1xYt0Z2yGpeBFf4w8EIlGxxWpnm3m+YJkiHDlabA11jlLjMPjeTgsHjt3F84Atn7FhSuwNSjNI1qaeUXI2MKcoYSFgZajxnBzZDGvRqruqvCJbnXKcvoOA0ukbPKAQkzmrmL8wRthce52Yfp6/AhhDhnK7+9Q+vAFzTW4IvgAAAA==[Pipeline] sh +[2023-10-11T08:05:59.228Z] + echo stage init +[2023-10-11T08:05:59.229Z] stage init +ha:////4AxFb7NLK55N7DIZMli55wIFdWSwrIT1GLQQD/EQYI9VAAAApB+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOKCgA6lorXc8AKTGOPEugu2g1PxIr7GH7CIRMUWq51t5vWGZfBQszfYaeothcbi4EaTFyb2/dVxwo4v2DAFdhqlTpJbfZpRctQwpyhhIWClqXEcLJkIa9Gph6qcIlOdo8/fUUBp2zs8oRDZHJWPX5g8bG5jG5h+nr8CmIYhQrnf5todPkohNa2+AAAA[Pipeline] } +ha:////4FkEqoX3bVg6QxnSy40C+HyKqyp95XJwgzYSRPWquJxOAAAApB+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOIiSImo0lppeIGJjXFi3RnbIal4EV/jD1hEomKL1c4283rDOgY4cTDYaxosxc6id6PJCycOw9XxhD1fsGOK7DS2empZ6WbBlpOGJUUJKwEbTZ3jaMkk2IpePmTlJJnqnEL+jgJKq+7whEJkc5IhfWEOsLuNKjL9PH8FMHufoKz3uQ71B0xnDfi+AAAA[Pipeline] // container +ha:////4CPaY/X+prCrgKPHwxYe96pmn3YVwWvZto8quJK28z8rAAAApB+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPMKRQomoaC03vMAkxtix7ox9Ial4EV/jD1hEomKL1c4283rDOic4UrLCGxwc5s6JGEZblpgoDddAk/B0ER1hpmCEMpOi3pwWVMQGllQ1rCRsDHaBskPLsJVeP3QTNNrmzKl8Bwm16+/whEoWM+vEX5gT7G5jnwl/nr8CmGNkqPdtqbb9AHQlngm+AAAA[Pipeline] } +ha:////4PSPGy0fAV4C/CVS5dFBC+cdscyB9RAzIFNPsBiuIsfaAAAApB+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOIiSImo0lppeIGJjXFi3RnbIal4EV/jD1hEomKL1c4283rDOgY4cTDYaxosxc6id6PJCycOw9XxhD1fsGOK7DS2empZ6WbBlpOGJUUJKwEbTZ3jaMkk2IpePmTlJJnqnEL+jgJKq+7whEJkc5IhfWEOsLuNKjL9PH8FMHufoKzrXIf9B2uny1u+AAAA[Pipeline] // stage +ha:////4H5CDftHIo1tYYgW2mFFBk9uY16pbxq8wRClFKHH/te/AAAApx+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycogUARvqxBp14QShCSFp9H9JUtKJE3E17kCgEhMeLNuS9Z4vqIKHhrxmVmFvMHSGDW7UObFEvr84SszSmXWEgZxirUotSXWca0tRwayihAWHpcLOUTCoI6y4FXdRO4G6PkWftwOH0sgbPKDgmRyFj98yeVhfRxkIf5y/AJiGCOV2k223/zyrN2vzfGzCAAAA[Pipeline] stage +ha:////4A3joXVcpEp7Cc+kTNyDyP3SrZza+WbK/1oTltOAuvrDAAAApx+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycoh0ACbE1DXKwglCE0La6P/yk9JOnIircQdaKjHhwbItWe/1hiIynIidaCy2HmPtRRd6NyUxELfXQINo6CJqwkjBCmUHRcZWS1WULCzKclhJWFusA0WPLsFGNvqhy6DRlefE03aUkHtzhydkciInzelbRobtrTeR8Mf5C4CxS5Dv9rMd5mfxASMfXIzCAAAA[Pipeline] { (Builds) +ha:////4KNGvN0UjLOHUXU7xVlwcrUitEYxVPE7s1G6IcLX86CSAAAApx+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycoh0QLAgpq5RFk4QmhDSRv+Xn5R24kRcjTvQUokJD5ZtyXqvNxSR4UTsRGOx9RhrL7rQuymJgbi9BhpEQxdRE0YKVig7KDK2WqqiZGFRlsNKwtpiHSh6dAk2stEPXQaNrjwnnrajhNybOzwhkxM5aU7fMjJsb72JhD/OXwCMXYJ8t5/tMD+LD02yRsvCAAAA[Pipeline] parallel +ha:////4A0Rzd1kUstB8tgYZjvBtJxuI2op/9OGeHJ7b7oRh6N0AAAAqB+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycoh0QIIBMXWNsnCC0ISQNvq//KS0EyfiatyBlkpMeLBsS9Z7vaGIDCdiJxqLrcdYe9GF3k1JDMTtNdAgGrqImjBSsELZQZGx1VIVJQuLshxWEtYW60DRo0uwkY1+6DJodOU58bQdJeTe3OEJmZzISXP6lpFhe+tNJPxx/gJg7BLku/1sh/lZfADpB/iZwgAAAA==[Pipeline] { (Branch: artifacts) +ha:////4B4VV1NzAPPnOqkhuXotokl4LtN4SVnF4D+ORk4zlkCxAAAAqB+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycoh0YAAJMXWNsnCC0ISQNvq//KS0EyfiatyBlkpMeLBsS9Z7vaGIDCdiJxqLrcdYe9GF3k1JDMTtNdAgGrqImjBSsELZQZGx1VIVJQuLshxWEtYW60DRo0uwkY1+6DJodOU58bQdJeTe3OEJmZzISXP6lpFhe+tNJPxx/gJg7BLku/1sh/lZfAD8aiCpwgAAAA==[Pipeline] stage +ha:////4GVovZPvohj54OO+9e+qPw6pGS2RlY9zFmAcTVCGWpf3AAAApx+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycoh0YAEhpq5RFk4QmhDSRv+Xn5R24kRcjTvQUokJD5ZtyXqvNxSR4UTsRGOx9RhrL7rQuymJgbi9BhpEQxdRE0YKVig7KDK2WqqiZGFRlsNKwtpiHSh6dAk2stEPXQaNrjwnnrajhNybOzwhkxM5aU7fMjJsb72JhD/OXwCMXYJ8t5/tMD+LD59NhPHCAAAA[Pipeline] { (artifacts) +ha:////4JILzIAgTvhqR8L6KmVNlrPbsS+TCLSIa2mI1RTUBz6rAAAApR+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOKCBA1CqWgtN7zAJMY4se6C7eBUvIiv8QcsIlGxxWpnm3m9YRk81OwNdpp6S6GxOLjR5IWJfX91nLDjCzZMgZ1GqZPkVp9mlBw1zClKWAhYaWocB0smwlp06qEqp8hU5+jzdxRQ2vYOTyhENkfl4xcmD5vb2Aamn+evAKYhQrk75Npvhw/W61xwvgAAAA==[Pipeline] sh +[2023-10-11T08:05:59.806Z] + echo starting artifacts stage +[2023-10-11T08:05:59.806Z] starting artifacts stage +ha:////4Nhf8TiKHMdM5tJ9MQx8Kevort2aoAjUqLszQfSY+lxOAAAAqB+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycohUCBaEOrFGXThBaEJIGv1fkpR04kRcjTsQqMSEB8u2ZL3nC6rgoSGvmVXYGwydYYMbdU4ske8vjhKzdGYdYSCnWKtSS1Id59pSVDCrKGHBYamwcxQM6ggrbsVd1E6grk/R5+3AoTTyBg8oeCZH4eO3TB7W11EGwh/nLwCmIUK53WfbbT7P6g28Lv4ZwgAAAA==[Pipeline] parallel +ha:////4MagaRgqr0z9cF22B4n4LeFWLFLa8t5C7uYa7Ubb4ze6AAAApx+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycohUIDbE1DXKwglCE0La6P/yk9JOnIircQdaKjHhwbItWe/1hiIynIidaCy2HmPtRRd6NyUxELfXQINo6CJqwkjBCmUHRcZWS1WULCzKclhJWFusA0WPLsFGNvqhy6DRlefE03aUkHtzhydkciInzelbRobtrTeR8Mf5C4CxS5AfdrPt52fxAdhUMVHCAAAA[Pipeline] { (Branch: cassandra) +ha:////4JLt7NawpGeQ4un1Luq4I6/YUC4J+RNlIwonnLMPDrd7AAAApx+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycohUAjbE1DXKwglCE0La6P/yk9JOnIircQdaKjHhwbItWe/1hiIynIidaCy2HmPtRRd6NyUxELfXQINo6CJqwkjBCmUHRcZWS1WULCzKclhJWFusA0WPLsFGNvqhy6DRlefE03aUkHtzhydkciInzelbRobtrTeR8Mf5C4CxS5AfdrPt52fxAXzhjwPCAAAA[Pipeline] parallel +ha:////4FKZqvDTHSRbdYzmSjL9r6PTINCvLVj4lYqcz+o+SGPiAAAApx+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycoh0ACbE1DXKwglCE0La6P/yk9JOnIircQdaKjHhwbItWe/1hiIynIidaCy2HmPtRRd6NyUxELfXQINo6CJqwkjBCmUHRcZWS1WULCzKclhJWFusA0WPLsFGNvqhy6DRlefE03aUkHtzhydkciInzelbRobtrTeR8Mf5C4CxS5Dvd7Md5mfxAaHdWBTCAAAA[Pipeline] { (Branch: 11) +ha:////4J7M9T0ir71uXlNze3av7zHpQk+f5/GGWlldMEYIzFFgAAAApx+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycoh0ALEgpq5RFk4QmhDSRv+Xn5R24kRcjTvQUokJD5ZtyXqvNxSR4UTsRGOx9RhrL7rQuymJgbi9BhpEQxdRE0YKVig7KDK2WqqiZGFRlsNKwtpiHSh6dAk2stEPXQaNrjwnnrajhNybOzwhkxM5aU7fMjJsb72JhD/OXwCMXYJ8v5vtMD+LDw+vzJLCAAAA[Pipeline] { (Branch: 17) +ha:////4F283A7XZ37tem3+HQf3GM9Bl5CUzEczp+fwtgUJ8oVeAAAApx+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycoh0ATEgpq5RFk4QmhDSRv+Xn5R24kRcjTvQUokJD5ZtyXqvNxSR4UTsRGOx9RhrL7rQuymJgbi9BhpEQxdRE0YKVig7KDK2WqqiZGFRlsNKwtpiHSh6dAk2stEPXQaNrjwnnrajhNybOzwhkxM5aU7fMjJsb72JhD/OXwCMXYJ8t5/tMD+LD+m2JbHCAAAA[Pipeline] node +ha:////4E6bGZGjHJptV6Zmy+FGoE34hf3lrSfLb+geCmWS/e0BAAAAqB+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycoh0QQgJMXWNsnCC0ISQNvq//KS0EyfiatyBlkpMeLBsS9Z7vaGIDCdiJxqLrcdYe9GF3k1JDMTtNdAgGrqImjBSsELZQZGx1VIVJQuLshxWEtYW60DRo0uwkY1+6DJodOU58bQdJeTe3OEJmZzISXP6lpFhe+tNJPxx/gJg7BLku/1sh/lZfAA9YpHZwgAAAA==[Pipeline] node +Created Pod: kubernetes default/cassandra-mk8d2-btczb +Created Pod: kubernetes default/cassandra-mk8d2-5vk0k +[2023-10-11T08:06:08.384Z] Agent ha:////4Gy+24YQpjdxUu97hPRfIM18sjtZ0xmppOSyC5Oe2uZQAAAAqx+LCAAAAAAAAP9b85aBtbiIQTGjNKU4P08vOT+vOD8nVc83PyU1x6OyILUoJzMv2y+/JJUBAhiZGBgqihhk0NSjKDWzXb3RdlLBUSYGJk8GtpzUvPSSDB8G5tKinBIGIZ+sxLJE/ZzEvHT94JKizLx0a6BxUmjGOUNodHsLgAzREgZ5/eT83ILSktQi/eTE4uLEvJSiRN3cbIsUI92kkuSqJAC4fOdt1AAAAA==cassandra-mk8d2-btczb is provisioned from template cassandra-mk8d2 +[2023-10-11T08:06:08.395Z] --- +[2023-10-11T08:06:08.396Z] apiVersion: "v1" +[2023-10-11T08:06:08.396Z] kind: "Pod" +[2023-10-11T08:06:08.396Z] metadata: +[2023-10-11T08:06:08.396Z] annotations: +[2023-10-11T08:06:08.396Z] buildUrl: "http://jenkins-operator-http-example.default.svc.cluster.local:8080/job/k8s-e2e/2/" +[2023-10-11T08:06:08.396Z] runUrl: "job/k8s-e2e/2/" +[2023-10-11T08:06:08.396Z] labels: +[2023-10-11T08:06:08.396Z] jenkins: "slave" +[2023-10-11T08:06:08.396Z] jenkins/label-digest: "5f67e63ee7db1fcdb5d113eb6a080a25296a8bfa" +[2023-10-11T08:06:08.396Z] jenkins/label: "cassandra" +[2023-10-11T08:06:08.396Z] name: "cassandra-mk8d2-btczb" +[2023-10-11T08:06:08.396Z] namespace: "default" +[2023-10-11T08:06:08.396Z] spec: +[2023-10-11T08:06:08.396Z] containers: +[2023-10-11T08:06:08.396Z] - command: +[2023-10-11T08:06:08.396Z] - "/bin/sh" +[2023-10-11T08:06:08.396Z] - "-c" +[2023-10-11T08:06:08.396Z] - | +[2023-10-11T08:06:08.396Z] /usr/local/bin/jenkins-agent +[2023-10-11T08:06:08.396Z] env: +[2023-10-11T08:06:08.396Z] - name: "JENKINS_SECRET" +[2023-10-11T08:06:08.396Z] value: "********" +[2023-10-11T08:06:08.396Z] - name: "JENKINS_TUNNEL" +[2023-10-11T08:06:08.396Z] value: "jenkins-operator-slave-example.default.svc.cluster.local:50000" +[2023-10-11T08:06:08.396Z] - name: "JENKINS_AGENT_NAME" +[2023-10-11T08:06:08.396Z] value: "cassandra-mk8d2-btczb" +[2023-10-11T08:06:08.396Z] - name: "JENKINS_NAME" +[2023-10-11T08:06:08.396Z] value: "cassandra-mk8d2-btczb" +[2023-10-11T08:06:08.396Z] - name: "JENKINS_AGENT_WORKDIR" +[2023-10-11T08:06:08.396Z] value: "/home/jenkins/agent" +[2023-10-11T08:06:08.396Z] - name: "JENKINS_URL" +[2023-10-11T08:06:08.396Z] value: "http://jenkins-operator-http-example.default.svc.cluster.local:8080/" +[2023-10-11T08:06:08.396Z] image: "richamishra006/apache-k8s-agent:32" +[2023-10-11T08:06:08.396Z] name: "jnlp" +[2023-10-11T08:06:08.396Z] resources: +[2023-10-11T08:06:08.396Z] requests: +[2023-10-11T08:06:08.396Z] memory: "256Mi" +[2023-10-11T08:06:08.396Z] cpu: "100m" +[2023-10-11T08:06:08.396Z] tty: true +[2023-10-11T08:06:08.396Z] volumeMounts: +[2023-10-11T08:06:08.396Z] - mountPath: "/var/run/docker.sock" +[2023-10-11T08:06:08.396Z] name: "docker-socket" +[2023-10-11T08:06:08.396Z] - mountPath: "/tmp/k8s-e2e" +[2023-10-11T08:06:08.396Z] name: "cassandra-dir" +[2023-10-11T08:06:08.396Z] - mountPath: "/home/jenkins/agent" +[2023-10-11T08:06:08.396Z] name: "workspace-volume" +[2023-10-11T08:06:08.396Z] readOnly: false +[2023-10-11T08:06:08.396Z] //securityContext: +[2023-10-11T08:06:08.396Z] //privileged: true +[2023-10-11T08:06:08.396Z] initContainers: +[2023-10-11T08:06:08.396Z] - command: +[2023-10-11T08:06:08.396Z] - "sh" +[2023-10-11T08:06:08.396Z] - "-c" +[2023-10-11T08:06:08.396Z] - "chown 1000:1000 /var/run/docker.sock" +[2023-10-11T08:06:08.396Z] image: "alpine:latest" +[2023-10-11T08:06:08.396Z] imagePullPolicy: "Always" +[2023-10-11T08:06:08.396Z] name: "init-docker-socket" +[2023-10-11T08:06:08.397Z] securityContext: +[2023-10-11T08:06:08.397Z] runAsUser: 0 +[2023-10-11T08:06:08.397Z] volumeMounts: +[2023-10-11T08:06:08.397Z] - mountPath: "/var/run/docker.sock" +[2023-10-11T08:06:08.397Z] name: "docker-socket" +[2023-10-11T08:06:08.397Z] nodeSelector: +[2023-10-11T08:06:08.397Z] gke-node: "first" +[2023-10-11T08:06:08.397Z] restartPolicy: "Never" +[2023-10-11T08:06:08.397Z] volumes: +[2023-10-11T08:06:08.397Z] - hostPath: +[2023-10-11T08:06:08.397Z] path: "/home/jenkins/agent/workspace/k8s-e2e" +[2023-10-11T08:06:08.397Z] name: "cassandra-dir" +[2023-10-11T08:06:08.397Z] - emptyDir: +[2023-10-11T08:06:08.397Z] medium: "" +[2023-10-11T08:06:08.397Z] name: "workspace-volume" +[2023-10-11T08:06:08.397Z] - hostPath: +[2023-10-11T08:06:08.397Z] path: "/var/run/docker.sock" +[2023-10-11T08:06:08.397Z] name: "docker-socket" +[2023-10-11T08:06:08.397Z] +[2023-10-11T08:06:08.405Z] Agent ha:////4FCVRQqXsUUj8njql9W8OedpyI03uFl/Qgu95E/WQ2/0AAAAqx+LCAAAAAAAAP9b85aBtbiIQTGjNKU4P08vOT+vOD8nVc83PyU1x6OyILUoJzMv2y+/JJUBAhiZGBgqihhk0NSjKDWzXb3RdlLBUSYGJk8GtpzUvPSSDB8G5tKinBIGIZ+sxLJE/ZzEvHT94JKizLx0a6BxUmjGOUNodHsLgAzREgZ5/eT83ILSktQi/eTE4uLEvJSiRN3cbIsUI13TsmyDbAB76YQw1AAAAA==cassandra-mk8d2-5vk0k is provisioned from template cassandra-mk8d2 +[2023-10-11T08:06:08.410Z] --- +[2023-10-11T08:06:08.410Z] apiVersion: "v1" +[2023-10-11T08:06:08.410Z] kind: "Pod" +[2023-10-11T08:06:08.410Z] metadata: +[2023-10-11T08:06:08.410Z] annotations: +[2023-10-11T08:06:08.410Z] buildUrl: "http://jenkins-operator-http-example.default.svc.cluster.local:8080/job/k8s-e2e/2/" +[2023-10-11T08:06:08.410Z] runUrl: "job/k8s-e2e/2/" +[2023-10-11T08:06:08.410Z] labels: +[2023-10-11T08:06:08.410Z] jenkins: "slave" +[2023-10-11T08:06:08.410Z] jenkins/label-digest: "5f67e63ee7db1fcdb5d113eb6a080a25296a8bfa" +[2023-10-11T08:06:08.410Z] jenkins/label: "cassandra" +[2023-10-11T08:06:08.410Z] name: "cassandra-mk8d2-5vk0k" +[2023-10-11T08:06:08.410Z] namespace: "default" +[2023-10-11T08:06:08.410Z] spec: +[2023-10-11T08:06:08.410Z] containers: +[2023-10-11T08:06:08.410Z] - command: +[2023-10-11T08:06:08.410Z] - "/bin/sh" +[2023-10-11T08:06:08.411Z] - "-c" +[2023-10-11T08:06:08.411Z] - | +[2023-10-11T08:06:08.411Z] /usr/local/bin/jenkins-agent +[2023-10-11T08:06:08.411Z] env: +[2023-10-11T08:06:08.411Z] - name: "JENKINS_SECRET" +[2023-10-11T08:06:08.411Z] value: "********" +[2023-10-11T08:06:08.411Z] - name: "JENKINS_TUNNEL" +[2023-10-11T08:06:08.411Z] value: "jenkins-operator-slave-example.default.svc.cluster.local:50000" +[2023-10-11T08:06:08.411Z] - name: "JENKINS_AGENT_NAME" +[2023-10-11T08:06:08.411Z] value: "cassandra-mk8d2-5vk0k" +[2023-10-11T08:06:08.411Z] - name: "JENKINS_NAME" +[2023-10-11T08:06:08.411Z] value: "cassandra-mk8d2-5vk0k" +[2023-10-11T08:06:08.411Z] - name: "JENKINS_AGENT_WORKDIR" +[2023-10-11T08:06:08.411Z] value: "/home/jenkins/agent" +[2023-10-11T08:06:08.411Z] - name: "JENKINS_URL" +[2023-10-11T08:06:08.411Z] value: "http://jenkins-operator-http-example.default.svc.cluster.local:8080/" +[2023-10-11T08:06:08.411Z] image: "richamishra006/apache-k8s-agent:32" +[2023-10-11T08:06:08.411Z] name: "jnlp" +[2023-10-11T08:06:08.411Z] resources: +[2023-10-11T08:06:08.411Z] requests: +[2023-10-11T08:06:08.411Z] memory: "256Mi" +[2023-10-11T08:06:08.411Z] cpu: "100m" +[2023-10-11T08:06:08.411Z] tty: true +[2023-10-11T08:06:08.411Z] volumeMounts: +[2023-10-11T08:06:08.411Z] - mountPath: "/var/run/docker.sock" +[2023-10-11T08:06:08.411Z] name: "docker-socket" +[2023-10-11T08:06:08.411Z] - mountPath: "/tmp/k8s-e2e" +[2023-10-11T08:06:08.411Z] name: "cassandra-dir" +[2023-10-11T08:06:08.411Z] - mountPath: "/home/jenkins/agent" +[2023-10-11T08:06:08.411Z] name: "workspace-volume" +[2023-10-11T08:06:08.411Z] readOnly: false +[2023-10-11T08:06:08.411Z] //securityContext: +[2023-10-11T08:06:08.411Z] //privileged: true +[2023-10-11T08:06:08.411Z] initContainers: +[2023-10-11T08:06:08.411Z] - command: +[2023-10-11T08:06:08.411Z] - "sh" +[2023-10-11T08:06:08.411Z] - "-c" +[2023-10-11T08:06:08.411Z] - "chown 1000:1000 /var/run/docker.sock" +[2023-10-11T08:06:08.411Z] image: "alpine:latest" +[2023-10-11T08:06:08.411Z] imagePullPolicy: "Always" +[2023-10-11T08:06:08.411Z] name: "init-docker-socket" +[2023-10-11T08:06:08.411Z] securityContext: +[2023-10-11T08:06:08.411Z] runAsUser: 0 +[2023-10-11T08:06:08.411Z] volumeMounts: +[2023-10-11T08:06:08.411Z] - mountPath: "/var/run/docker.sock" +[2023-10-11T08:06:08.411Z] name: "docker-socket" +[2023-10-11T08:06:08.411Z] nodeSelector: +[2023-10-11T08:06:08.411Z] gke-node: "first" +[2023-10-11T08:06:08.411Z] restartPolicy: "Never" +[2023-10-11T08:06:08.411Z] volumes: +[2023-10-11T08:06:08.411Z] - hostPath: +[2023-10-11T08:06:08.411Z] path: "/home/jenkins/agent/workspace/k8s-e2e" +[2023-10-11T08:06:08.411Z] name: "cassandra-dir" +[2023-10-11T08:06:08.411Z] - emptyDir: +[2023-10-11T08:06:08.411Z] medium: "" +[2023-10-11T08:06:08.411Z] name: "workspace-volume" +[2023-10-11T08:06:08.411Z] - hostPath: +[2023-10-11T08:06:08.411Z] path: "/var/run/docker.sock" +[2023-10-11T08:06:08.411Z] name: "docker-socket" +[2023-10-11T08:06:08.411Z] +[2023-10-11T08:06:08.523Z] Running on ha:////4Ng4aFjPhuc3BIHM9PBPuQQzMb+65AXDZIRREGDaoF+PAAAArx+LCAAAAAAAAP9b85aBtbiIQTGjNKU4P08vOT+vOD8nVc83PyU1x6OyILUoJzMv2y+/JJUBAhiZGBgqihhk0NSjKDWzXb3RdlLBUSYGJk8GtpzUvPSSDB8G5tKinBIGIZ+sxLJE/ZzEvHT94JKizLx0a6BxUmjGOUNodHsLgAzREgYV/eT83ILSktQi/eTE4uLEvJSiRFUjl9xsixQjIG1alm2QrQ8AWmRlG9kAAAA=cassandra-mk8d2-5vk0k in /home/jenkins/agent/workspace/k8s-e2e +ha:////4I0oD8uhh5i6r8Xvibm707E2e6Qvd3KfGqYCv+aiVQeCAAAApx+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycoh0YQAhpq5RFk4QmhDSRv+Xn5R24kRcjTvQUokJD5ZtyXqvNxSR4UTsRGOx9RhrL7rQuymJgbi9BhpEQxdRE0YKVig7KDK2WqqiZGFRlsNKwtpiHSh6dAk2stEPXQaNrjwnnrajhNybOzwhkxM5aU7fMjJsb72JhD/OXwCMXYJ8t5/tMD+LD56au0DCAAAA[Pipeline] { +ha:////4D3oNMQo9FHGzZYQGcHOVQ0dEFGgEbmUOOt9mhhTk0iHAAAApR+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOJCAQVCqWgtN7zAJMY4se6C7eBUvIiv8QcsIlGxxWpnm3m9YRk81OwNdpp6S6GxOLjR5IWJfX91nLDjCzZMgZ1GqZPkVp9mlBw1zClKWAhYaWocB0smwlp06qEqp8hU5+jzdxRQ2vYOTyhENkfl4xcmD5vb2Aamn+evAKYhQrk75Npvhw/4iFt7vgAAAA==[Pipeline] echo +[2023-10-11T08:06:08.644Z] build_script: .build/docker/_docker_run.sh bullseye-build.docker build-jars.sh +ha:////4LbacmxfWAli8ktjEOtIakJ/SZ9W1UotHedx4u+amIcXAAAAph+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOIiJCgQSkVrueEFJjHGiXUXbAen4kV8jT9gEYmKLVY728zrDcvgoWZvsNPUWwqNxcGNJi9M7Pur44QdX7BhCuw0Sp0kt/o0o+SoYU5RwkLASlPjOFgyEdaiUw9VOUWmOkefv6OA0rZ3eEIhsjkqH78wedjcxjYw/Tx/BTANEcrdIdd+O3wAublAYr4AAAA=[Pipeline] sh +[2023-10-11T08:06:08.777Z] Running on ha:////4Da9vwt2kBEP/AmGpUEvfigVSN8jWYor6Edf0hCZGCQtAAAArx+LCAAAAAAAAP9b85aBtbiIQTGjNKU4P08vOT+vOD8nVc83PyU1x6OyILUoJzMv2y+/JJUBAhiZGBgqihhk0NSjKDWzXb3RdlLBUSYGJk8GtpzUvPSSDB8G5tKinBIGIZ+sxLJE/ZzEvHT94JKizLx0a6BxUmjGOUNodHsLgAzREgYV/eT83ILSktQi/eTE4uLEvJSiRFUjl9xsixQjIJ1UklyVpA8AxZRVGdkAAAA=cassandra-mk8d2-btczb in /home/jenkins/agent/workspace/k8s-e2e +ha:////4Bydxicmjzjxwak6LvupINLaRDG+t90/OqM4BmVRHiJbAAAAqB+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycohUQiAG1Ik16sIJQhNC0uj/kqSkEyfiatyBQCUmPFi2Jes9X1AFDw15zazC3mDoDBvcqHNiiXx/cZSYpTPrCAM5xVqVWpLqONeWooJZRQkLDkuFnaNgUEdYcSvuonYCdX2KPm8HDqWRN3hAwTM5Ch+/ZfKwvo4yEP44fwEwDRHK7T7bbvN5Vm8vlfMfwgAAAA==[Pipeline] { +ha:////4PAoMee38UpQAepTJ15nhHwbTvcWxCigJR68iBP/Avj0AAAApB+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOIigagQVVrLDS8wsTFOrDtjOyQVL+Jr/IFAJCq2WO1sM88XLFOEI0eLraHOUWocBt/baeHAsbt4HrDlMzZMib1BaQbJ2tQzSs4G5hQlLASsDDWekyObYS1adVeVV2SrU47TdxBQOn2DBxRiMmcV8xfGCJtrrxPTz/NXAGPIUO63n9qFN1+P256+AAAA[Pipeline] echo +[2023-10-11T08:06:10.139Z] build_script: .build/docker/_docker_run.sh bullseye-build.docker build-jars.sh +ha:////4PuEZdErjUeLdbp0rquca+Iv/L15PtETV0+PKVHHeiwDAAAApB+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOIiIagQVVrLDS8wsTFOrDtjOyQVL+Jr/IFAJCq2WO1sM88XLFOEI0eLraHOUWocBt/baeHAsbt4HrDlMzZMib1BaQbJ2tQzSs4G5hQlLASsDDWekyObYS1adVeVV2SrU47TdxBQOn2DBxRiMmcV8xfGCJtrrxPTz/NXAGPIUO63n9qFN5gZmtG+AAAA[Pipeline] sh +[2023-10-11T08:06:10.412Z] + find /tmp/k8s-e2e/ -mindepth 1 -maxdepth 1 -type d ! -name . ! -name .. -exec ln -s {} /home/jenkins/agent/workspace/k8s-e2e ; +ha:////4B0Q2oBHM2wge24XmO7A7KdOSGsYs615B0qozsx+A4TQAAAApR+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPMJpSIEQVVorDS8w8WGcWHfGdkgqXsTX+AMWkajYYrWzzbzesI4BThyM6JEGS7GzwrvR5CUmDsPV8SR6voiOKbJD0eLUssZmwZYTwpKihJWEDVLnOFoyCbayVw9VOUWmOqeQv6OE0uo7PKGQ2ZxUSF+YA+xuo45MP89fAcw+Qbk/5Kpr/wG9fCwGvgAAAA==[Pipeline] sh +[2023-10-11T08:06:11.582Z] + find /tmp/k8s-e2e/ -mindepth 1 -maxdepth 1 -type d ! -name . ! -name .. -exec ln -s {} /home/jenkins/agent/workspace/k8s-e2e ; +ha:////4NZSQqjiwSbZ9mVjJ+iGiR5iWy2ejEiCbK44DOcCE4BQAAAApR+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOIiIUGDqNJabniBiY1xYt0Z2yGpeBFf4w8EIlGxxWpnm3m+YJkiHDlabA11jlLjMPjeTgsHjt3F84Atn7FhSuwNSjNI1qaeUXI2MKcoYSFgZajxnBzZDGvRqruqvCJbnXKcvoOA0ukbPKAQkzmrmL8wRthce52Yfp6/AhhDhnK3/dQ+vAEae6zjvgAAAA==[Pipeline] sh +[2023-10-11T08:06:11.611Z] + echo scm success +[2023-10-11T08:06:11.611Z] scm success +ha:////4ASfNG6NBXK4FoFPu9aTi97oNUYJsWaWvEYeeB/i2qqrAAAApR+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOLSgBBCqWgtN7zAJMY4se6C7eBUvIiv8QcsIlGxxWpnm3m9YRk81OwNdpp6S6GxOLjR5IWJfX91nLDjCzZMgZ1GqZPkVp9mlBw1zClKWAhYaWocB0smwlp06qEqp8hU5+jzdxRQ2vYOTyhENkfl4xcmD5vb2Aamn+evAKYhQrk95Nrthw8/Hho0vgAAAA==[Pipeline] tool +ha:////4LfZrjjuE5lf/iLHYkxW0nqCQ2OeaqH0G/r1H2Zk0gl3AAAApR+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOLSgARCqWgtN7zAJMY4se6C7eBUvIiv8QcsIlGxxWpnm3m9YRk81OwNdpp6S6GxOLjR5IWJfX91nLDjCzZMgZ1GqZPkVp9mlBw1zClKWAhYaWocB0smwlp06qEqp8hU5+jzdxRQ2vYOTyhENkfl4xcmD5vb2Aamn+evAKYhQrk95Nrthw/wAoKzvgAAAA==[Pipeline] sh +[2023-10-11T08:06:11.967Z] + echo scm success +[2023-10-11T08:06:11.968Z] scm success +ha:////4OJafBD+UOMg68nWD83fYncyznXELMDeAoW84wyk4IcWAAAApR+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOIiIVEgRJXWcsMLTGyME+vO2A5JxYv4Gn8gEImKLVY728zzBcsU4cjRYmuoc5Qah8H3dlo4cOwungds+YwNU2JvUJpBsjb1jJKzgTlFCQsBK0ON5+TIZliLVt1V5RXZ6pTj9B0ElE7f4AGFmMxZxfyFMcLm2uvE9PP8FcAYMpS77af24Q3VZzRkvgAAAA==[Pipeline] tool +ha:////4BSlNn01A0ZdAUlB2R81y4t8E7Do4gKaMQVFAu6srZulAAAApR+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOKCkKBBqWgtN7zAJMY4se6C7eBUvIiv8QcsIlGxxWpnm3m9YRk81OwNdpp6S6GxOLjR5IWJfX91nLDjCzZMgZ1GqZPkVp9mlBw1zClKWAhYaWocB0smwlp06qEqp8hU5+jzdxRQ2vYOTyhENkfl4xcmD5vb2Aamn+evAKYhQrnf5Tpshw/FYrC3vgAAAA==[Pipeline] sh +[2023-10-11T08:06:12.081Z] + echo tool success +[2023-10-11T08:06:12.082Z] tool success +ha:////4PEJMk6TDE96VUYQdgSykRXN3kiSkgLaNCaVWlED7hElAAAAqB+LCAAAAAAAAP9tjUEKwjAURH8rXbh16SFSBBFEunIbuvEEsYkxafi/JqnpyhN5Ne9gtODKWQwzA8N7vqAKHhrymlmFvcHQGTa4UefEEvn+4igxS2fWEQZyirUqtSTVca4tRQWzihIWHJYKO0fBoI6w4lbcRe0E6voUfd4OHEojb/CAgmdyFD5+y+RhfR1lIPxx/gJgGiKU23223ebzrN4a1vn6wgAAAA==[Pipeline] retry +ha:////4KMZPbbNeGdn0rFAbNOwhNfc7kTY4pzXrOmAaGBP+Y6zAAAApx+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycohUMLAgpq5RFk4QmhDSRv+Xn5R24kRcjTvQUokJD5ZtyXqvNxSR4UTsRGOx9RhrL7rQuymJgbi9BhpEQxdRE0YKVig7KDK2WqqiZGFRlsNKwtpiHSh6dAk2stEPXQaNrjwnnrajhNybOzwhkxM5aU7fMjJsb72JhD/OXwCMXYL8sJttPz+LD27blSrCAAAA[Pipeline] { +ha:////4Lus8Hhv1SnItw7ysZniAE7ip7rxWz0LFfIKXe+GM/iaAAAApR+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOIigUSDqNJabniBiY1xYt0Z2yGpeBFf4w8EIlGxxWpnm3m+YJkiHDlabA11jlLjMPjeTgsHjt3F84Atn7FhSuwNSjNI1qaeUXI2MKcoYSFgZajxnBzZDGvRqruqvCJbnXKcvoOA0ukbPKAQkzmrmL8wRthce52Yfp6/AhhDhnK//dQuvAHlNhISvgAAAA==[Pipeline] echo +[2023-10-11T08:06:12.160Z] build_script_safe_name: _docker_run__bullseye-build.docker_build-jars_ +ha:////4Psg3d5NZLdkEFFjplrTkNBfS+D3b7kRpOOmC04sPEcmAAAApR+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOIiIUSDqNJabniBiY1xYt0Z2yGpeBFf4w8EIlGxxWpnm3m+YJkiHDlabA11jlLjMPjeTgsHjt3F84Atn7FhSuwNSjNI1qaeUXI2MKcoYSFgZajxnBzZDGvRqruqvCJbnXKcvoOA0ukbPKAQkzmrmL8wRthce52Yfp6/AhhDhnK//dQuvAEioFNdvgAAAA==[Pipeline] sh +[2023-10-11T08:06:12.343Z] + echo tool success +[2023-10-11T08:06:12.343Z] tool success +ha:////4Miw9sTJ3/JQTz+pxxV/8vZjGTMcR1smRM+27lKqWGUMAAAAqB+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycohUQioLYuoaZeEEIQkhbfR/SVLaiRNxNe5AoBITHizbkvWeL6higCMFyzqDvcOoHBv8aHNiE4X+4mliHZ2ZIozkDRNmEqRNu1RBycCiooQVh7VB5Sk6tAk2vJN3WXuJtj6lkLcDh9LpGzyg4JmcZEjfMgfYXkcdCX+cvwCYhwRls8u2bz7P6g0nX+zZwgAAAA==[Pipeline] retry +ha:////4DUg9pqUBg0kRlAKzNHQXaVDkv6iMriSxioMsnyfZO4bAAAAph+LCAAAAAAAAP9tjTEOwjAUQ3+DOrAycoh0ogtiYo26cILQhJA0+r9NUtKJE3E17kBLJSY8WLYl673eUMYAJwqGO42dxdha3vvRzIlnCt3NU+aOrrwljOQ1b3RuSOnzWhtKGlYVDDYCthpbT9GiSbATTj5k5SWa6pLCvB0FMKsGeEIhZnKSIX3LFGB/H1Uk/HH+AmDqE7D6sFi9PMsP+urdAcIAAAA=[Pipeline] { +ha:////4IQztXOj2eYFrcp4w6xrjZgRodD/8Hobhgj5+SzkPX2GAAAAox+LCAAAAAAAAP9tjTESwiAURH/iWNhaegjSxcKxsmVoPAEmiBDmfwJEUnkir+YdRDNj5RY7+7Z5zxesY4AjBc2swsFg7AzzbtJlsUxhuDrKzNKFdYSRnGJCZUG9Oi0oKClYUtWw4rBR2DmKBnWCLbfyLhsnUTfnFMp34FCbfoQHVLyYkwzpC3OA3W3qI+HP81cAs09Qt+2n9v4N8tcxgr4AAAA=[Pipeline] echo +[2023-10-11T08:06:12.413Z] build_script_safe_name: _docker_run__bullseye-build.docker_build-jars_ +ha:////4NCU/jGUnDiZ2lJ5Q55dmhQ2L2An3jc6YcOggg/LzGRmAAAApB+LCAAAAAAAAP9tjbEOwiAURV9rHFwd/Qi6NSbGyZWw+AXYIkLJexSodPKL/DX/QbSJk3e4uecu5/mCdQxwpKCZVTgYjJ1h3k26LJYpDFdHmVm6sI4wklNMqCyoV6cFBSUFS6oaVhw2CjtH0aBOsOVW3mXjJOrmnEL5Dhxq04/wgIoXc5IhfWEOsLtNfST8ef4KYPYJ6rb91N6/AT3LqQW+AAAA[Pipeline] sh +[2023-10-11T08:06:12.491Z] + mkdir -p build +ha:////4D9nO8qV0O+c0IBmcRDG8xIUx/uFFrgorJpD16FgyWVrAAAApR+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOIiUSAhRJXWcsMLTGyME+vO2A5JxYv4Gn8gEImKLVY728zzBcsU4cjRYmuoc5Qah8H3dlo4cOwungds+YwNU2JvUJpBsjb1jJKzgTlFCQsBK0ON5+TIZliLVt1V5RXZ6pTj9B0ElE7f4AGFmMxZxfyFMcLm2uvE9PP8FcAYMpS77af24Q1v3v3ovgAAAA==[Pipeline] sh +[2023-10-11T08:06:12.751Z] + mkdir -p build +ha:////4FqfRIh3lqEG/+azf9JNKANokFD0N0BwmxXMBX8buSzXAAAApB+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPMKhCgWiSmul4QUmPowT687YDknFi/gaf8AiEhVbrHa2mdcb1jHAiYMRPdJgKXZWeDeavMTEYbg6nkTPF9ExRXYoWpxa1tgs2HJCWFKUsJKwQeocR0smwVb26qEqp8hU5xTyd5RQWn2HJxQym5MK6QtzgN1t1JHp5/krgNknKOs612HvPwIrssy+AAAA[Pipeline] sh +[2023-10-11T08:06:12.863Z] + mktemp -d /home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.XXXXXXXXXX +ha:////4Mk2i1XPsLx770ZsUQZ4/3FtiQILV8woMoo5dN4VJuYzAAAApR+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOIiKKBAqWgtN7zAJMY4se6C7eBUvIiv8QcsIlGxxWpnm3m9YRk81OwNdpp6S6GxOLjR5IWJfX91nLDjCzZMgZ1GqZPkVp9mlBw1zClKWAhYaWocB0smwlp06qEqp8hU5+jzdxRQ2vYOTyhENkfl4xcmD5vb2Aamn+evAKYhQrnf5Tpshw9QPuYhvgAAAA==[Pipeline] echo +[2023-10-11T08:06:12.944Z] parts[6]: build +ha:////4Crmwxx52RgcatwFZr/v6w4drk1aXTb9RUK3c3/BgdMWAAAApR+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOIipYACUaW10vACExvjxLoztkNS8SK+xh+wiETFFqudbeb1hnUMcOJgsNc0WIqdRe9GkxdOHIar4wl7vmDHFNlpbPXUstLNgi0nDUuKElYCNpo6x9GSSbAVvXzIykky1TmF/B0FlFbd4QmFyOYkQ/rCHGB3G1Vk+nn+CmD2Ccp9netQ+w+TbcsKvgAAAA==[Pipeline] echo +[2023-10-11T08:06:12.955Z] hash: build_docker_run.I67afn88uM +ha:////4BZJYjw9zgSLDE6Jcw6bJWhdhUtv6fGx6mPmXJrcIrQvAAAAph+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOIigQQFSkVrueEFJjHGiXUXbAen4kV8jT9gEYmKLVY728zrDcvgoWZvsNPUWwqNxcGNJi9M7Pur44QdX7BhCuw0Sp0kt/o0o+SoYU5RwkLASlPjOFgyEdaiUw9VOUWmOkefv6OA0rZ3eEIhsjkqH78wedjcxjYw/Tx/BTANEcr9NtdhN3wA0lzQE74AAAA=[Pipeline] echo +[2023-10-11T08:06:12.966Z] tmp_dir /tmp/build/build_docker_run.I67afn88uM +ha:////4BK3Vo1iLTNnpYgI+wnVq4TwSnSGsclVlg1V8Vtgvn92AAAAph+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOIiIQQFSkVrueEFJjHGiXUXbAen4kV8jT9gEYmKLVY728zrDcvgoWZvsNPUWwqNxcGNJi9M7Pur44QdX7BhCuw0Sp0kt/o0o+SoYU5RwkLASlPjOFgyEdaiUw9VOUWmOkefv6OA0rZ3eEIhsjkqH78wedjcxjYw/Tx/BTANEcr9NtdhN3wAFcqRXL4AAAA=[Pipeline] sh +[2023-10-11T08:06:13.082Z] + mktemp -d /home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.XXXXXXXXXX +[2023-10-11T08:06:13.271Z] + echo +[2023-10-11T08:06:13.271Z] +ha:////4MDDsvI7gMJlTVGrpzGFGFsBH7KALuYODXfFJip8Mk3PAAAAph+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOIiIQEFSkVrueEFJjHGiXUXbAen4kV8jT9gEYmKLVY728zrDcvgoWZvsNPUWwqNxcGNJi9M7Pur44QdX7BhCuw0Sp0kt/o0o+SoYU5RwkLASlPjOFgyEdaiUw9VOUWmOkefv6OA0rZ3eEIhsjkqH78wedjcxjYw/Tx/BTANEcr9NtdhN3wAVPuKRb4AAAA=[Pipeline] echo +[2023-10-11T08:06:13.313Z] Executing `build_dir=/home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.I67afn88uM .build/docker/_docker_run.sh bullseye-build.docker build-jars.sh 17 2>&1 | tee k8s-e2e_2__docker_run__bullseye-build.docker_build-jars__jdk17_cassandra_attempt_1.log` on cassandra-mk8d2-5vk0k +ha:////4KWDC7KiBme7CQ4B5Y6mSmL2r/JLD/pz+UCW0eJx4E+mAAAApR+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPMKRKEKBqNJaaXiBiQ/jxLoztkNS8SK+xh+wiETFFqudbeb1hnUMcOJgRI80WIqdFd6NJi8xcRiujifR80V0TJEdihanljU2C7acEJYUJawkbJA6x9GSSbCVvXqoyiky1TmF/B0llFbf4QmFzOakQvrCHGB3G3Vk+nn+CmD2Ccp6n+tQ+w+XqKduvgAAAA==[Pipeline] sh +ha:////4FIvnzDlrIkNdey/h9VGeOZ6NZ/LElGhJDXD7CHyDGvEAAAApB+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPMLpkgJR0VppeIGJjXFi3Tn2haTiRXyNP2ARiYotVjvbzOsN2xThRNGK3uDgMHVOBD/ZvMRMcbh5mkVPV9ERJvJGtGZuSZvzii2xgTVFCRsJO4Odp+TQMuxlrx6q8gptdeGYv6OE0ukRnlDIbGYV+QtLhMN90onw5/krgCUwlHWdq2nCB8W984O+AAAA[Pipeline] echo +[2023-10-11T08:06:13.419Z] parts[6]: build +ha:////4Oi5yx1OZsSOl9b+QnVQFYtlBIJ4zEtRQ3LfZoxiZXc1AAAApB+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOLSBSREldZKwwtMbIwT687YDknFi/gaf8AiEhVbrHa2mdcb1jHAiYPBXtNgKXYWvRtNXjhxGK6OJ+z5gh1TZKex1VPLSjcLtpw0LClKWAnYaOocR0smwVb08iErJ8lU5xTydxRQWnWHJxQim5MM6QtzgN1tVJHp5/krgNknKOs61/7gPwqhawS+AAAA[Pipeline] echo +[2023-10-11T08:06:13.431Z] hash: build_docker_run.moWSfQYNlt +ha:////4PAOx2Zs08tvYtlh2XcOqy8JLwf6CXGLxfxvI7bzHuQgAAAApB+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOLSBSFEldZKwwtMbIwT687YDknFi/gaf8AiEhVbrHa2mdcb1jHAiYPBXtNgKXYWvRtNXjhxGK6OJ+z5gh1TZKex1VPLSjcLtpw0LClKWAnYaOocR0smwVb08iErJ8lU5xTydxRQWnWHJxQim5MM6QtzgN1tVJHp5/krgNknKOs61/7gP0uQcB2+AAAA[Pipeline] echo +[2023-10-11T08:06:13.444Z] tmp_dir /tmp/build/build_docker_run.moWSfQYNlt +ha:////4EVlh2YlBIANfT5sZMeFnxtRjxz24haR0K1p9vKMJYKnAAAApR+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPMKhipAQVVorDS8w8WGcWHfGdkgqXsTX+AMWkajYYrWzzbzesI4BThyM6JEGS7GzwrvR5CUmDsPV8SR6voiOKbJD0eLUssZmwZYTwpKihJWEDVLnOFoyCbayVw9VOUWmOqeQv6OE0uo7PKGQ2ZxUSF+YA+xuo45MP89fAcw+QVnXuQ57/wE/bO7HvgAAAA==[Pipeline] sh +[2023-10-11T08:06:13.634Z] + tee k8s-e2e_2__docker_run__bullseye-build.docker_build-jars__jdk17_cassandra_attempt_1.log +[2023-10-11T08:06:13.634Z] + cassandra_dir=/home/jenkins/agent/workspace/k8s-e2e build_dir=/home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.I67afn88uM .build/docker/_docker_run.sh bullseye-build.docker build-jars.sh 17 +[2023-10-11T08:06:13.634Z] + '[' x/home/jenkins/agent/workspace/k8s-e2e '!=' x ']' +[2023-10-11T08:06:13.634Z] + '[' x/home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.I67afn88uM '!=' x ']' +[2023-10-11T08:06:13.634Z] + '[' -d /home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.I67afn88uM ']' +[2023-10-11T08:06:13.634Z] + echo ' from _docker_run' +[2023-10-11T08:06:13.634Z] from _docker_run +[2023-10-11T08:06:13.634Z] ++ grep 'property\s*name="java.default"' /home/jenkins/agent/workspace/k8s-e2e/build.xml +[2023-10-11T08:06:13.634Z] ++ sed -ne 's/.*value="\([^"]*\)".*/\1/p' +[2023-10-11T08:06:13.634Z] grep: /home/jenkins/agent/workspace/k8s-e2e/build.xml: No such file or directory +[2023-10-11T08:06:13.634Z] + java_version_default= +[2023-10-11T08:06:13.634Z] ++ sed -ne 's/.*value="\([^"]*\)".*/\1/p' +[2023-10-11T08:06:13.634Z] ++ grep 'property\s*name="java.supported"' /home/jenkins/agent/workspace/k8s-e2e/build.xml +[2023-10-11T08:06:13.634Z] grep: /home/jenkins/agent/workspace/k8s-e2e/build.xml: No such file or directory +[2023-10-11T08:06:13.634Z] + java_version_supported= +[2023-10-11T08:06:13.634Z] + '[' bullseye-build.docker == -h ']' +[2023-10-11T08:06:13.634Z] + dockerfile=bullseye-build.docker +[2023-10-11T08:06:13.634Z] + run_script=build-jars.sh +[2023-10-11T08:06:13.634Z] + java_version=17 +[2023-10-11T08:06:13.634Z] + command -v docker +[2023-10-11T08:06:13.634Z] + command -v timeout +[2023-10-11T08:06:13.634Z] + docker info +[2023-10-11T08:06:13.770Z] + echo +[2023-10-11T08:06:13.770Z] +ha:////4AhLBsOa061BgOoCjpNjB6Rl0mispfmGtnpUUeOHpS/IAAAApR+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPMIRTYSEqNJaaXiBiQ/jxLoztkNS8SK+xh+wiETFFqudbeb1hnUMcOJgRI80WIqdFd6NJi8xcRiujifR80V0TJEdihanljU2C7acEJYUJawkbJA6x9GSSbCVvXqoyiky1TmF/B0llFbf4QmFzOakQvrCHGB3G3Vk+nn+CmD2Ccq6znXY+w9+XfXevgAAAA==[Pipeline] echo +[2023-10-11T08:06:13.799Z] Executing `build_dir=/home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.moWSfQYNlt .build/docker/_docker_run.sh bullseye-build.docker build-jars.sh 11 2>&1 | tee k8s-e2e_2__docker_run__bullseye-build.docker_build-jars__jdk11_cassandra_attempt_1.log` on cassandra-mk8d2-btczb +ha:////4MiZPmaZLwCDpQ9s7xte5v5IhH4x2q5kVV4N1pjjpePbAAAAph+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPMKRKCIkRJXWSsMLTHwYJ9adsR2SihfxNf6ARSQqtljtbDOvN6xjgBMHI3qkwVLsrPBuNHmJicNwdTyJni+iY4rsULQ4tayxWbDlhLCkKGElYYPUOY6WTIKt7NVDVU6Rqc4p5O8oobT6Dk8oZDYnFdIX5gC726gj08/zVwCzT1DWda7D3n8AvQ7Y9b4AAAA=[Pipeline] sh +[2023-10-11T08:06:13.901Z] + '[' -f /home/jenkins/agent/workspace/k8s-e2e/build.xml ']' +[2023-10-11T08:06:13.901Z] + echo '/home/jenkins/agent/workspace/k8s-e2e/build.xml must exist' +[2023-10-11T08:06:13.901Z] /home/jenkins/agent/workspace/k8s-e2e/build.xml must exist +[2023-10-11T08:06:13.902Z] + exit 1 +ha:////4F0GTi4vz5/zG3ToAqMsSkoU6pUd9SQByV8hypq8wvMnAAAAph+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOIigYSQUCpayw0vMIkxTqy7YDs4FS/ia/wBi0hUbLHa2WZeb1gGDzV7g52m3lJoLA5uNHlhYt9fHSfs+IINU2CnUeokudWnGSVHDXOKEhYCVpoax8GSibAWnXqoyiky1Tn6/B0FlLa9wxMKkc1R+fiFycPmNraB6ef5K4BpiFDut7kOu+ED7xuMGL4AAAA=[Pipeline] sh +[2023-10-11T08:06:14.096Z] + cassandra_dir=/home/jenkins/agent/workspace/k8s-e2e build_dir=/home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.moWSfQYNlt .build/docker/_docker_run.sh bullseye-build.docker build-jars.sh 11 +[2023-10-11T08:06:14.096Z] + tee k8s-e2e_2__docker_run__bullseye-build.docker_build-jars__jdk11_cassandra_attempt_1.log +[2023-10-11T08:06:14.096Z] + '[' x/home/jenkins/agent/workspace/k8s-e2e '!=' x ']' +[2023-10-11T08:06:14.096Z] + '[' x/home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.moWSfQYNlt '!=' x ']' +[2023-10-11T08:06:14.096Z] + '[' -d /home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.moWSfQYNlt ']' +[2023-10-11T08:06:14.096Z] + echo ' from _docker_run' +[2023-10-11T08:06:14.096Z] from _docker_run +[2023-10-11T08:06:14.096Z] ++ grep 'property\s*name="java.default"' /home/jenkins/agent/workspace/k8s-e2e/build.xml +[2023-10-11T08:06:14.096Z] ++ sed -ne 's/.*value="\([^"]*\)".*/\1/p' +[2023-10-11T08:06:14.096Z] grep: /home/jenkins/agent/workspace/k8s-e2e/build.xml: No such file or directory +[2023-10-11T08:06:14.096Z] + java_version_default= +[2023-10-11T08:06:14.096Z] ++ grep 'property\s*name="java.supported"' /home/jenkins/agent/workspace/k8s-e2e/build.xml +[2023-10-11T08:06:14.096Z] ++ sed -ne 's/.*value="\([^"]*\)".*/\1/p' +[2023-10-11T08:06:14.096Z] grep: /home/jenkins/agent/workspace/k8s-e2e/build.xml: No such file or directory +[2023-10-11T08:06:14.096Z] + java_version_supported= +[2023-10-11T08:06:14.096Z] + '[' bullseye-build.docker == -h ']' +[2023-10-11T08:06:14.096Z] + dockerfile=bullseye-build.docker +[2023-10-11T08:06:14.096Z] + run_script=build-jars.sh +[2023-10-11T08:06:14.096Z] + java_version=11 +[2023-10-11T08:06:14.096Z] + command -v docker +[2023-10-11T08:06:14.096Z] + command -v timeout +[2023-10-11T08:06:14.096Z] + docker info +[2023-10-11T08:06:14.096Z] + '[' -f /home/jenkins/agent/workspace/k8s-e2e/build.xml ']' +[2023-10-11T08:06:14.096Z] + echo '/home/jenkins/agent/workspace/k8s-e2e/build.xml must exist' +[2023-10-11T08:06:14.096Z] /home/jenkins/agent/workspace/k8s-e2e/build.xml must exist +[2023-10-11T08:06:14.096Z] + exit 1 +ha:////4MgJMEESmSKIJmHuJtHx/gT4p1sMmpGwewLPiseYiyK9AAAApR+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPMJpUISEqNJaaXiBiQ/jxLoztkNS8SK+xh+wiETFFqudbeb1hnUMcOJgRI80WIqdFd6NJi8xcRiujifR80V0TJEdihanljU2C7acEJYUJawkbJA6x9GSSbCVvXqoyiky1TmF/B0llFbf4QmFzOakQvrCHGB3G3Vk+nn+CmD2Ccq6znXY+w87qYKjvgAAAA==[Pipeline] sh +[2023-10-11T08:06:14.213Z] + echo .build/docker/_docker_run.sh bullseye-build.docker build-jars.sh +[2023-10-11T08:06:14.213Z] .build/docker/_docker_run.sh bullseye-build.docker build-jars.sh +ha:////4BCN32qmSIzbMq2+CGIVo7x7B7yYSBZKU9Q/K+hnilYfAAAAph+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOIiIYGQUCpayw0vMIkxTqy7YDs4FS/ia/wBi0hUbLHa2WZeb1gGDzV7g52m3lJoLA5uNHlhYt9fHSfs+IINU2CnUeokudWnGSVHDXOKEhYCVpoax8GSibAWnXqoyiky1Tn6/B0FlLa9wxMKkc1R+fiFycPmNraB6ef5K4BpiFDut7kOu+EDabzWTr4AAAA=[Pipeline] echo +[2023-10-11T08:06:14.241Z] /home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.I67afn88uM +ha:////4NRAfuafRhKZVnDPUbMuz0085Gg8PfnU263VmHF4d6riAAAAqB+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycohUYqiQEFPXKAsnCEkIaaP/S5LSTpyIq3EHApWY8GDZlqz3fEEVAxwpWNYZ7B1G5djgR5sTmyj0F08T6+jMFGEkb5gwkyBt2qUKSgYWFSWsOKwNKk/RoU2w4Z28y9pLtPUphbwdOJRO3+ABBc/kJEP6ljnA9jrqSPjj/AXAPCQom122ffN5Vm8khNl4wgAAAA==[Pipeline] dir +[2023-10-11T08:06:14.253Z] Running in /home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.I67afn88uM +ha:////4CWROo+pgFHjFuF6lIA7OoJ9355yPmE23QDjwE9OmawLAAAApx+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycoh0AyTE1DXKwglCE0La6P/yk9JOnIircQdaKjHhwbItWe/1hiIynIidaCy2HmPtRRd6NyUxELfXQINo6CJqwkjBCmUHRcZWS1WULCzKclhJWFusA0WPLsFGNvqhy6DRlefE03aUkHtzhydkciInzelbRobtrTeR8Mf5C4CxS5AfdrPt52fxAR33berCAAAA[Pipeline] { +ha:////4AQbJgzAk05/oWUXKtyH3Tf73/ia5A3eYnvk1ERbqJS9AAAAox+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOJSEglR0VppeIFJjLFj3Tm2g1PxIr7GHwhEomKL1c4283zBOgY4ctBoFfWGYmvQu1HPCzOH/uo4o+ULtkyRncJG5YY7dVqw4aRgSVHCSsBGUes4GtIJtsLKu6ycJF2dU5i/g4DSdAM8oBCzOcmQvjAF2N3GLjL9PH8FMPkEZb3/VO3fsf/KvL4AAAA=[Pipeline] stash +[2023-10-11T08:06:14.414Z] + echo .build/docker/_docker_run.sh bullseye-build.docker build-jars.sh +[2023-10-11T08:06:14.414Z] .build/docker/_docker_run.sh bullseye-build.docker build-jars.sh +ha:////4F/U1mDt33ievSuzfOALL/GaXiHTzZ5JQ/gzEC4WgbIlAAAApB+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOLSRSBEldZKwwtMbIwT687YDknFi/gaf8AiEhVbrHa2mdcb1jHAiYPBXtNgKXYWvRtNXjhxGK6OJ+z5gh1TZKex1VPLSjcLtpw0LClKWAnYaOocR0smwVb08iErJ8lU5xTydxRQWnWHJxQim5MM6QtzgN1tVJHp5/krgNknKOs61/7gP3bXLBa+AAAA[Pipeline] echo +[2023-10-11T08:06:14.448Z] /home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.moWSfQYNlt +ha:////4JXjBnkUTEHIZSzAsYGL2DqvjVuY/iTEbt/JyhKN4EB2AAAAqB+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycoiUqRJCTF2jLJwgJCGkjf4vSUo7cSKuxh0IVGLCg2Vbst7zBVUMcKRgWWewdxiVY4MfbU5sotBfPE2sozNThJG8YcJMgrRplyooGVhUlLDisDaoPEWHNsGGd/Iuay/R1qcU8nbgUDp9gwcUPJOTDOlb5gDb66gj4Y/zFwDzkKBsmmz73edZvQEPHy64wgAAAA==[Pipeline] dir +[2023-10-11T08:06:14.458Z] Running in /home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.moWSfQYNlt +ha:////4FfQ8lOqb2nQUCdMSAHAMekLGawlCtjoxpuQ7N39b14bAAAAph+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycogURoSYukZZOEFoQkgb/V9+UtqJE3E17kBLJSY8WLYl673eUESGE7ETjcXWY6y96ELvpiQG4vYaaBANXURNGClYoeygyNhqqYqShUVZDisJa4t1oOjRJdjIRj90GTS68px42o4Scm/u8IRMTuSkOX3LyLC99SYS/jh/ATB2CfLDbrb9/Cw+mJlT6cIAAAA=[Pipeline] { +ha:////4Ans7fFGjl7Y9CPUaXp/2TqfRa/ZSpTcLcVGsCymbAf2AAAApB+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOIi6BCiSmu54QUmNsaJdWdsh6TiRXyNPxCIRMUWq51t5vmCZYpw5GixNdQ5So3D4Hs7LRw4dhfPA7Z8xoYpsTcozSBZm3pGydnAnKKEhYCVocZzcmQzrEWr7qryimx1ynH6DgJKp2/wgEJM5qxi/sIYYXPtdWL6ef4KYAwZyv32U7vwBqhInei+AAAA[Pipeline] stash +ha:////4JyXWo6xBs2YydVS7gpY1/mq/zWs/9hvAIzeO2UZMBfBAAAApR+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOJSUABCqWgtN7zAJMY4se6C7eBUvIiv8QcsIlGxxWpnm3m9YRk81OwNdpp6S6GxOLjR5IWJfX91nLDjCzZMgZ1GqZPkVp9mlBw1zClKWAhYaWocB0smwlp06qEqp8hU5+jzdxRQ2vYOTyhENkfl4xcmD5vb2Aamn+evAKZhiFAetrn2uw+atTfsvgAAAA==[Pipeline] } +ha:////4EncnSmtuvh4bSIAp5mdKhUDXUBSPNBMZ35bqeBOmckuAAAApR+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOLSIARCqWgtN7zAJMY4se6C7eBUvIiv8QcsIlGxxWpnm3m9YRk81OwNdpp6S6GxOLjR5IWJfX91nLDjCzZMgZ1GqZPkVp9mlBw1zClKWAhYaWocB0smwlp06qEqp8hU5+jzdxRQ2vYOTyhENkfl4xcmD5vb2Aamn+evAKZhiFAetrn2uw+0tTWGvgAAAA==[Pipeline] // dir +ha:////4HVgSFhmIRpWP+2y5P7GI6Zr17TvBMbj8UVWLV8RdPlzAAAAph+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOIiIYGEUCpayw0vMIkxTqy7YDs4FS/ia/wBi0hUbLHa2WZeb1gGDzV7g52m3lJoLA5uNHlhYt9fHSfs+IINU2CnUeokudWnGSVHDXOKEhYCVpoax8GSibAWnXqoyiky1Tn6/B0FlLa9wxMKkc1R+fiFycPmNraB6ef5K4BpiFDut7kOu+EDXtYUT74AAAA=[Pipeline] sh +ha:////4NGdGeI3BS0SHKmRrHET3k0PsWnFEO7NbDsaIuSafPg5AAAApR+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOIiGiSEqNJabniBiY1xYt0Z2yGpeBFf4w8EIlGxxWpnm3m+YJkiHDlabA11jlLjMPjeTgsHjt3F84Atn7FhSuwNSjNI1qaeUXI2MKcoYSFgZajxnBzZDGvRqruqvCJbnXKcvoOA0ukbPKAQkzmrmL8wRthce52Yfp6/AhhDyFDud5/avgFdsIJMvgAAAA==[Pipeline] } +ha:////4F0J9HH1k3n+L9sdxJCloUQcSPHqfJzwohtKyMXPgUpoAAAApB+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOJChxCiSmu54QUmNsaJdWdsh6TiRXyNPxCIRMUWq51t5vmCZYpw5GixNdQ5So3D4Hs7LRw4dhfPA7Z8xoYpsTcozSBZm3pGydnAnKKEhYCVocZzcmQzrEWr7qryimx1ynH6DgJKp2/wgEJM5qxi/sIYYXPtdWL6ef4KYAwhQ7nffWr7Bm5T2fC+AAAA[Pipeline] // dir +ha:////4Pusol50zR8dMBvEx/2qqYg57g/9FpB8xp4IMiBiX6LeAAAApB+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOLSRSBEldZKwwtMbIwT687YDknFi/gaf8AiEhVbrHa2mdcb1jHAiYPBXtNgKXYWvRtNXjhxGK6OJ+z5gh1TZKex1VPLSjcLtpw0LClKWAnYaOocR0smwVb08iErJ8lU5xTydxRQWnWHJxQim5MM6QtzgN1tVJHp5/krgNknKOs612HvPwCM9Q6+AAAA[Pipeline] sh +[2023-10-11T08:06:14.982Z] + xz -f k8s-e2e_2__docker_run__bullseye-build.docker_build-jars__jdk17_cassandra_attempt_1.log +ha:////4OvJNtuDCb626i0s4ue6BZrl3YQ7fMPe1bxPcjjWCxjTAAAAqB+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycohUYkCqEFPXKAsnCEkIaaP/S5LSTpyIq3EHApWY8GDZlqz3fEEVAxwpWNYZ7B1G5djgR5sTmyj0F08T6+jMFGEkb5gwkyBt2qUKSgYWFSWsOKwNKk/RoU2w4Z28y9pLtPUphbwdOJRO3+ABBc/kJEP6ljnA9jrqSPjj/AXAPCQo97tsTfN5Vm9FPfgvwgAAAA==[Pipeline] dir +[2023-10-11T08:06:15.019Z] Running in /home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.I67afn88uM +ha:////4JKJpW2i08gcZ2FqfyAK7T30tNR+Tscx7so2DPCx4YUuAAAApx+LCAAAAAAAAP9tjbEOgjAURR8QBldHP6LgSIwTa8PiF9RSa6F5D9uHMPlF/pr/IEri5J3uucnNeb4gjwGOFKzoDPYOo3Zi8KNdmpgo9BdPk+joLDRhJG9EY6aGWlOv2BAbWJOkkEnYGNSeokPLsJWduqvCK7TFicOyHSSkrr3BAxK5mFkF/sIcYHcd20j48/wVwDwwpFXFkO3L8nPN3zgbWwvDAAAA[Pipeline] { +ha:////4BI/CFJSfIYqSake1hEilGGiDCFkwJz36dG96iOp88Z/AAAAox+LCAAAAAAAAP9tjTESgjAQRRcYC1tLDxGgdqxsMzSeIIYYA5ndkCxC5Ym8mneQgRkrf/Hnv9+89wd2KcKZohWdwd5h0k4EP9pliYlif/c0iY5uQhMm8kY0ZmqoNZcNG2IDW7IcCgl7g9pTcmgZDrJTT1V6hba8cly+k4TctQO8IJOLmVXkFeYIx8fYJsKf568A5hAYirqq166+ulaRjcAAAAA=[Pipeline] } +ha:////4AUiGKfQQpfMciU1ZYgkOU0KcdEBJbyZwJAF/1+uDmNtAAAApR+LCAAAAAAAAP9tjTESgjAQRZcwFraWHiKoHeNQ2WZoPEEMMQYyu5gsQuWJvJp3kJEZK3/132ve6w2rFKGi6GRrsfOYjJd9GNz85EixuwYaZUsXaQgTBStrO9bU2NOCNbGFZZmAXMHaogmUPDqGjWr1QxdBoyvOHGd3VCB8c4cnZGous478hSnC9jY0ifDX+RuAqe8Z8v3uwCDK8gM8FWKgvwAAAA==[Pipeline] // dir +ha:////4BYoSkrLybB6xoj02pdcoQVr/7MreCpHs+pgUlIIBavAAAAAph+LCAAAAAAAAP9tjTsOwjAQBTeJKGgpOYTDR6KJqGitNJzAxMY4sXaDvSGpOBFX4w5YRKLiVW+mmdcbFjHAkYIVrcHOYWyc6P1g0xMjhe7qaRQtXURDGMkbUZuxJm1OM9bEBuZlORQSlgYbT9GhZVjJVj1U6RXa8swhuUpC7vQdnpDJVGYV+AtTgPVt0JHw1/kbgKlnyA87hmK72fcf5inQK78AAAA=[Pipeline] echo +[2023-10-11T08:06:15.112Z] Complete '.build/docker/_docker_run.sh bullseye-build.docker build-jars.sh 17' on cassandra-mk8d2-5vk0k +ha:////4P2vzCGjOnsmNm1HaZnHjxEokQKFXgFLCzE2AE6zYRguAAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQDCNFEVLRWGl5gYmOcWHfBvpBUvIiv8QcsIlGx1c4083rDIgY4UrCiNdg5jI0TvR9semKk0F09jaKli2gII3kjajPWpM1pxprYwLwsh0LC0mDjKTq0DCvZqocqvUJbnjkkV0nInb7DEzKZyqwCf2EKsL4NOhL+On8DMPU9Q7Hd7Bnyw+4DZjNxZr8AAAA=[Pipeline] } +[2023-10-11T08:06:15.122Z] ERROR: No files included in stash ‘cassandra_17’ +[2023-10-11T08:06:15.122Z] Retrying +ha:////4EDIbJNC0GTQHSxV5DlAssTbNGaMM5RKKDpOvXQPCmtnAAAAqB+LCAAAAAAAAP9tjTESgjAQRRcYCltLDxGk0Mahss3QeIIYYgxkdjFZhMoTeTXvIMqMlb/678/8ec8X5DFARcGK1mDnMGonej/YuYmRQnfxNIqWzkITRvJG1GasqTHHBWtiA0uSFDIJK4PaU3RoGdayVXdVeIW2OHGYt4OE1DU3eEAiZzOrwF+YAmyuQxMJf56/Aph6hnRfMmTldve55m9AKep6wwAAAA==[Pipeline] { +ha:////4KQ/ZmoJPbNjZh5Q1JtEiTExNDYRxk0e7K7BYKyF3jmCAAAApR+LCAAAAAAAAP9tjTESwiAURH+SsbC19BBEC22cVLZMGk+AgAhh/o9AJJUn8mrewUwyY+UWO/u2ee8PrGKAhoJhTmNnMUrLej+YabFMobt5yszRlUnCSF6zVueWlD4v2FLSsKQooeKw1ig9RYsmwYY78RS1F2jqSwrTd+JQWvWAFxR8MicR0gxjgO19UJHw5/krgLFPUO13h7mP/RdWe116wAAAAA==[Pipeline] sleep +[2023-10-11T08:06:15.184Z] Sleeping for 2 min 0 sec +[2023-10-11T08:06:15.225Z] + xz -f k8s-e2e_2__docker_run__bullseye-build.docker_build-jars__jdk11_cassandra_attempt_1.log +ha:////4K48/FTHwrdcCezQsMLimgSlVhwZzMaPsY2ve54pfspXAAAAqB+LCAAAAAAAAP9tjTESgjAQRRcYCltLDxG0wcKhss3QeIIYYgxkdjFZhMoTeTXvIMqMlb/678/8ec8X5DFARcGK1mDnMGonej/YuYmRQnfxNIqWzkITRvJG1GasqTHHBWtiA0uSFDIJK4PaU3RoGdayVXdVeIW2OHGYt4OE1DU3eEAiZzOrwF+YAmyuQxMJf56/Aph6hrQsGbLddv+55m/EYbpDwwAAAA==[Pipeline] dir +[2023-10-11T08:06:15.253Z] Running in /home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.moWSfQYNlt +ha:////4GM7eQrzVJWvO2bRdhUg6dcO+yY+do2HDAvQF9lXYQ3xAAAAqB+LCAAAAAAAAP9tjTEOwjAUQ39bdWBl5BApTCChTqxRF04QkhCSRv+XJKWdOBFX4w6UVmLCg2Vbst7rDWUMUFMwzGlsLUZpWed7MyU2UGivngbm6MIkYSSvWaOHhpQ+LbWhpGFRlkPBYaVReooWTYI1d+IhKi/QVOcUpu3IIbfqDk/I+EROIqS5jAE2t15Fwh/nLwDGLkGx2+5nP3y/5Qdi1BftxAAAAA==[Pipeline] { +ha:////4FbLcY7maKRwdLiZw2BiTOX4X40MAitUgsKaaSGV0KW8AAAApR+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQDHQilorXS8AJjG2PHugu2g1PxIr7GH4gSiYotVjvbzPsDqxigoWCY09hZjNKy3g9mWixT6G6eMnN0ZZIwktes1bklpc8LtpQ0LClKqDisNUpP0aJJsOFOPEXtBZr6ksL0nTiUVj3gBQWfzEmENMMYYHsfVCT8ef4KYOz7BNV+d5z78AXvkKWwwAAAAA==[Pipeline] } +ha:////4KmKFpKHVzWjSXVdQGLfg2h5Q7ZRATiBSxbfVQ13Y1DmAAAApR+LCAAAAAAAAP9tjTESgjAQRRcYC1tLDxGgsnCsbDM0niCSGAOZXUwWofJEXs07GGXGyl/8+e837/mCVQxwoGBFZ7B3GFsnBj/atMREob94mkRHZ9ESRvJGNGZqSJvjgg2xgSVZDoWEtcHWU3RoGTayU3dVeoW2PHFI315C7vQNHpDJZGYV+AtzgO111JHw5/krgHkYGIq6rj5d7d4zyCh5wAAAAA==[Pipeline] // dir +ha:////4Kb1PSQHmfl1wPDdv5QL2RPqDwH1YLIpq/NZ2UYaQONgAAAApR+LCAAAAAAAAP9tjTESgjAQRRcYC1tLDxGGhsaxss2k8QQRYgxkdmOyCJUn8mrewYzMWPmr/17zXm/YpAhHilYMBkeHqXMi+MnmJ2aK49XTLAa6iI4wkTdCmVlRb04rKmID64oSKglbg52n5NAy7OSgH7r2Gm195pjdQULp+js8oZC5zDryF5YI+9vUJ8Jf528AlsBQti1D1TRN+ACpL26cvwAAAA==[Pipeline] echo +[2023-10-11T08:06:15.344Z] Complete '.build/docker/_docker_run.sh bullseye-build.docker build-jars.sh 11' on cassandra-mk8d2-btczb +ha:////4KEmsp/ohcFV4vVvhjwCm7QazOwM9Sxj0s449JuArDTWAAAApR+LCAAAAAAAAP9tjTESgjAQRRcYC1tLDxEGCxrHijZD4wliEmMgs4vJIlSeyKt5BxmZsfJX/73mvd6wSRFOFJ3oLPYek/ZiCKNbnpgo9tdAk+joIjRhomBFa6eWjG1WbIktrMtyKCRsLepAyaNj2MlOPVQZFLryzHFxRwm5N3d4QiaXMqvIX5gj7G+jSYS/zt8AzMPAUFTVgSGv6w/WHzIRvwAAAA==[Pipeline] } +[2023-10-11T08:06:15.354Z] ERROR: No files included in stash ‘cassandra_11’ +[2023-10-11T08:06:15.354Z] Retrying +ha:////4E6LTJrO9FNf4rIul7l0QmQRWMskfVppikvmhC8Bf8+xAAAAqR+LCAAAAAAAAP9tjbEOgjAURR8QBldHP6KEGF0Mk2vTxS+oUGuheQ/bhzD5Rf6a/yBK4uSd7rnJzXm+II8BKgpWtAY7h7F2oveDnZsYKXQXT6No6SxqwkjeCGVGRY05LqiIDSxJUsgkrAzWnqJDy7CWrb7rwmu0xYnDvB0kpK65wQMSOZtZB/7CFGBzHZpI+PP8FcDUM6T7HUNWltvPNX8DlvrCCcMAAAA=[Pipeline] { +ha:////4IsusbN+EsJFF06vkq9kVFhvQRbk5XhEtCvaDVAVdCJLAAAApR+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYSjCDpEldZKwwtMbIwd687YDknFi/gaf8BKJCq2WO1sM+8PbGKAMwXNrMLBYOwN827UebGJwnBzNDFLV9YTRnKKdWrqSKp2xY6SgjVFCRWHrcLeUTSoE+y4FU9RO4G6vqSQvxOH0sgHvKDg2ZxESAvMAfb3UUbCn+evAGafoGqaw9JH/wUnbr2YwAAAAA==[Pipeline] sleep +[2023-10-11T08:06:15.439Z] Sleeping for 2 min 0 sec +ha:////4GSIXxlOiuTgmzEU2Z8f3A71WShV0JJagD0Kg7bXP+ffAAAApR+LCAAAAAAAAP9tjTESwiAURH+SsbC19BDEFKkcK1uGxhMgQSRh/kcgksoTeTXvYDQzVm6xs2+b93zBKgY4UDCs1zhYjMoy70YzL5YpDBdHmfV0ZoowktNM6Cyo08cFBSUNS4oSKg5rjcpRtGgSbHgv77J2Ek19SmH+9hxK293gAQWfzUmG9IUpwPY6dpHw5/krgMknqJpd++mm9W+iQrJQwAAAAA==[Pipeline] echo +[2023-10-11T08:08:15.199Z] build_script_safe_name: _docker_run__bullseye-build.docker_build-jars_ +ha:////4EtUKKCmwPaqsH0k1Mff8F7Ik3FhEO6rf2jTNbyGceO1AAAAph+LCAAAAAAAAP9tjTESgjAQRRcYC1tLDxGk0Maxss3QeIIIMSZkdmOyCJUn8mreQZQZK3/x57/fvOcLFinCgaIRTmNnMTVWBN+baYmBYnfxNAhHZ9EQJvJa1HqoqdXHGWtiDXOyHAoJS42Np2TRMKykU3dVeoWmPHGcvr2E3LY3eEAmJzOryF8YI6yvfZsIf56/AhgDQ1Fttp+uduENYRGfe8AAAAA=[Pipeline] sh +ha:////4INlZcluMJUFU5BVlC5dfGMf78+GMFw3foXoOWRkUQiJAAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYSjiIICUaW10vACExtjx7oztkNS8SK+xh+wEomKLVY728z7A5sY4ExBM6twMBh7w7wbdV5sojDcHE3M0pX1hJGcYp2aOpKqXbGjpGBNUULFYauwdxQN6gQ7bsVT1E6gri8p5O/EoTTyAS8oeDYnEdICc4D9fZSR8Of5K4DZJ6ia5rD00X8B5D2Qs8AAAAA=[Pipeline] echo +[2023-10-11T08:08:15.452Z] build_script_safe_name: _docker_run__bullseye-build.docker_build-jars_ +ha:////4GnCz4i5eAO6sgmzCwzT4CnHwiSTI7UrBctP9qUTb4QWAAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYSjiAYJUaW10vACExtjx7oztkNS8SK+xh+wEomKLVY728z7A5sY4ExBM6twMBh7w7wbdV5sojDcHE3M0pX1hJGcYp2aOpKqXbGjpGBNUULFYauwdxQN6gQ7bsVT1E6gri8p5O/EoTTyAS8oeDYnEdICc4D9fZSR8Of5K4DZJ6ia5rD00X8BKyEINMAAAAA=[Pipeline] sh +[2023-10-11T08:08:15.504Z] + mkdir -p build +ha:////4JCJHx/KZao/g1tlY65bIn9/4LXgwn0p9oUFUMHpuibQAAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYRDCgqEqGitNLzAJMbYse6MfSGpeBFf4w8EIlGxxWpnm3m+YJEiHCga4TR2FlNjRfC9mZYYKHYXT4NwdBYNYSKvRa2Hmlp9nLEm1jAny6GQsNTYeEoWDcNKOnVXpVdoyhPH6dtLyG17gwdkcjKzivyFMcL62reJ8Of5K4AxMBTVZvvpahferg0H/MAAAAA=[Pipeline] sh +[2023-10-11T08:08:15.762Z] + mkdir -p build +ha:////4HUmMyfQp5b2a7BIZN4VzYoUsIE7VX2vQyEzgiiIGgXFAAAApR+LCAAAAAAAAP9tjTESgjAQRRcYC1tLDxFES8fKNkPjCSLEmJDZjckiVJ7Iq3kHUWas/MWf/37zni9YpAgHikY4jZ3F1FgRfG+mJQaK3cXTIBydRUOYyGtR66GmVh9nrIk1zMlyKCQsNTaekkXDsJJO3VXpFZryxHH69hJy297gAZmczKwif2GMsL72bSL8ef4KYAwMRVXtPr3dhDd6FZf+wAAAAA==[Pipeline] sh +[2023-10-11T08:08:15.834Z] + mktemp -d /home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.XXXXXXXXXX +ha:////4OlOmmu6nEsBvGoiXDyrAYKlbV8+R3pCopMESuhjbz1wAAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYRDkKgQFa2VhheYxBg71p2xLyQVL+Jr/IFAJCq2WO1sM88XLFKEA0UjnMbOYmqsCL430xIDxe7iaRCOzqIhTOS1qPVQU6uPM9bEGuZkORQSlhobT8miYVhJp+6q9ApNeeI4fXsJuW1v8IBMTmZWkb8wRlhf+zYR/jx/BTAGhqLa7D69rcIb/zmYNsAAAAA=[Pipeline] echo +[2023-10-11T08:08:15.865Z] parts[6]: build +ha:////4JGkkZ9F76n9mz8YAwHoQyBHKoRg98WzCMLU/68IRP1AAAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQDkagQFa2VhheYxBg71p2xLyQVL+Jr/IFAJCq2WO1sM88XLFKEA0UjnMbOYmqsCL430xIDxe7iaRCOzqIhTOS1qPVQU6uPM9bEGuZkORQSlhobT8miYVhJp+6q9ApNeeI4fXsJuW1v8IBMTmZWkb8wRlhf+zYR/jx/BTAGhmK72X26qsIbPGq1HcAAAAA=[Pipeline] echo +[2023-10-11T08:08:15.876Z] hash: build_docker_run.3LqMDy8yF3 +ha:////4Ot9by6Rkdk3ji1HqlYqrFdPOqRklWhr60kfgrkcAGovAAAAph+LCAAAAAAAAP9tjTsOwjAQRDeJKGgpOYTDR1SIitZywwmMbYwTazfYDknFibgad8AQiYopRvOmec8XzGKAAwXLGoOtw6gc63xv82IDhfbiaWANnZkijOQNE2YQpM1xQkHJwJSihIrD3KDyFB3aBAveyLusvURbn1LI355D6fQNHlDwbE4ypC+MAZbXXkfCn+evAMYuQbVe7T692XZvfVuuBMAAAAA=[Pipeline] echo +[2023-10-11T08:08:15.886Z] tmp_dir /tmp/build/build_docker_run.3LqMDy8yF3 +ha:////4K+aK67Jahu6uyEhlrPsSem+9ZBNhPmij+v/OXih6ZELAAAAph+LCAAAAAAAAP9tjTESwiAURH+SsbC19BBEHa0cK1uGxhMgIJIw/0cgJpUn8mreQTQzVm6xs2+b93zBLAY4ULCsMdg6jMqxzvc2LzZQaC+eBtbQmSnCSN4wYQZB2hwnFJQMTClKqDjMDSpP0aFNsOCNvMvaS7T1KYX87TmUTt/gAQXP5iRD+sIYYHntdST8ef4KYOwSVOvV7tObbfcGus3vS8AAAAA=[Pipeline] sh +[2023-10-11T08:08:16.074Z] + mktemp -d /home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.XXXXXXXXXX +ha:////4Gj0vzdjIEB9yuduhqEJ39nw0GF/CNFL+Q0Snwtq2Nv+AAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYSjgKgQFa3lhhcY2xgn1l2wHZyKF/E1/kAgEhVbrHa2mecLFjHAgYJlrcHOYVSO9X6w02KZQnfxlFlLZ6YII3nDhMmCtDnOKCgZmFOUUHFYGlSeokObYMVbeZe1l2jrUwrTt+dQOn2DBxR8MicZ0hfGAOvroCPhz/NXAGOfoGqa7ac3u/4NP+Hgg8AAAAA=[Pipeline] echo +[2023-10-11T08:08:16.106Z] parts[6]: build +ha:////4FV5hI+ZeDP7qkmIc32Xn4fWCKIL6C7MHs9rVHoFRR0FAAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYSjgESDqGgtN7zA2MY4se6C7eBUvIiv8QcCkajYYrWzzTxfsIgBDhQsaw12DqNyrPeDnRbLFLqLp8xaOjNFGMkbJkwWpM1xRkHJwJyihIrD0qDyFB3aBCveyrusvURbn1KYvj2H0ukbPKDgkznJkL4wBlhfBx0Jf56/Ahj7BFXTbD+92fVv/LLNqMAAAAA=[Pipeline] echo +[2023-10-11T08:08:16.118Z] hash: build_docker_run.WKMAvXDf8n +ha:////4IrxH0p2GimVvoOXZhjvt6/PzRJ3VQ4VkAnFdp/Mm4BUAAAAph+LCAAAAAAAAP9tjTESwiAURH+SsbC19BBkooWFY2XL0HgCBEQS5v8IRFJ5Iq/mHYxmxsotdvZt854vWMQABwqWtQY7h1E51vvBTotlCt3FU2YtnZkijOQNEyYL0uY4o6BkYE5RQsVhaVB5ig5tghVv5V3WXqKtTylM355D6fQNHlDwyZxkSF8YA6yvg46EP89fAYx9gqpptp/e7Po3vYPWscAAAAA=[Pipeline] echo +[2023-10-11T08:08:16.129Z] tmp_dir /tmp/build/build_docker_run.WKMAvXDf8n +ha:////4PHcTFknqD7KV5axX2mg5HHbMXLzGnVYj4ZPSYesXBP9AAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYSjQIOEqGgtN7zA2MY4se6C7eBUvIiv8QcCkajYYrWzzTxfsIgBDhQsaw12DqNyrPeDnRbLFLqLp8xaOjNFGMkbJkwWpM1xRkHJwJyihIrD0qDyFB3aBCveyrusvURbn1KYvj2H0ukbPKDgkznJkL4wBlhfBx0Jf56/Ahj7BFXTbD+92fVvcp9ONsAAAAA=[Pipeline] sh +[2023-10-11T08:08:16.180Z] + echo +[2023-10-11T08:08:16.181Z] +ha:////4ETiKStCbR93/FMvj0PPhqT96EQH6Afr4tvDmmWKFmkSAAAApx+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQDSBQIUdFabniBsY1xYt0F2yGpeBFf4w8YIlGxxWpnm3m+YBYDHChY1hhsHUblWOd7mxcbKLQXTwNr6MwUYSRvmDCDIG2OEwpKBqYUJVQc5gaVp+jQJljwRt5l7SXa+pRC/vYcSqdv8ICCZ3OSIX1hDLC89joS/jx/BTB2Car1avvpza57A/ezQf7AAAAA[Pipeline] echo +[2023-10-11T08:08:16.223Z] Executing `build_dir=/home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.3LqMDy8yF3 .build/docker/_docker_run.sh bullseye-build.docker build-jars.sh 17 2>&1 | tee k8s-e2e_2__docker_run__bullseye-build.docker_build-jars__jdk17_cassandra_attempt_2.log` on cassandra-mk8d2-5vk0k +ha:////4C7oXkSdadM5kt/GcSb/J4WmafdloA3wFUYy2dI3JpVaAAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQThKgQFa3lhhcY2xgn1l2wHZyKF/E1/kAgEhVbrHa2mecLFjHAgYJlrcHOYVSO9X6w02KZQnfxlFlLZ6YII3nDhMmCtDnOKCgZmFOUUHFYGlSeokObYMVbeZe1l2jrUwrTt+dQOn2DBxR8MicZ0hfGAOvroCPhz/NXAGOfoNo0u09vm/4NiWJBLsAAAAA=[Pipeline] sh +[2023-10-11T08:08:16.424Z] + echo +[2023-10-11T08:08:16.424Z] +ha:////4IiaAW5OloAII+xrq7mQGUh+BKv1PPmswov056T81k9rAAAApR+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYSjKCWiorXc8ALjGOPEunNsB6fiRXyNPxCIRMUWq51t5vmCTQxwpGBYr3GwGJVl3k1mWSxTGK6OMuvpwhRhJKeZ0FlQp08rCkoa1hQlVBy2GpWjaNEk2PFe3mXtJJr6nMLyHTiUthvhAQVfzEmG9IU5wP42dZHw5/krgNknqJqm/XTb+DcMTk7mwAAAAA==[Pipeline] echo +[2023-10-11T08:08:16.453Z] Executing `build_dir=/home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.WKMAvXDf8n .build/docker/_docker_run.sh bullseye-build.docker build-jars.sh 11 2>&1 | tee k8s-e2e_2__docker_run__bullseye-build.docker_build-jars__jdk11_cassandra_attempt_2.log` on cassandra-mk8d2-btczb +ha:////4JeESaCQSdV5arTumsTbhU0h7G422kigZCKhm2SjRA4qAAAApR+LCAAAAAAAAP9tjTESgjAQRRcYC1tLDxEGKR0r2wyNJ4gkxkBmF5NFqDyRV/MORpmx8hd//vvNe75gFQMcKFjRGewdxtaJwY82LTFR6C+eJtHRWbSEkbwRjZka0ua4YENsYEmWQyFhbbD1FB1aho3s1F2VXqEtTxzSt5eQO32DB2QymVkF/sIcYHsddST8ef4KYB4YiqqqP13vhjfPHWPNwAAAAA==[Pipeline] sh +[2023-10-11T08:08:16.521Z] + cassandra_dir=/home/jenkins/agent/workspace/k8s-e2e build_dir=/home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.3LqMDy8yF3 .build/docker/_docker_run.sh bullseye-build.docker build-jars.sh 17 +[2023-10-11T08:08:16.521Z] + tee k8s-e2e_2__docker_run__bullseye-build.docker_build-jars__jdk17_cassandra_attempt_2.log +[2023-10-11T08:08:16.521Z] + '[' x/home/jenkins/agent/workspace/k8s-e2e '!=' x ']' +[2023-10-11T08:08:16.521Z] + '[' x/home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.3LqMDy8yF3 '!=' x ']' +[2023-10-11T08:08:16.521Z] + '[' -d /home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.3LqMDy8yF3 ']' +[2023-10-11T08:08:16.521Z] + echo ' from _docker_run' +[2023-10-11T08:08:16.521Z] from _docker_run +[2023-10-11T08:08:16.521Z] ++ grep 'property\s*name="java.default"' /home/jenkins/agent/workspace/k8s-e2e/build.xml +[2023-10-11T08:08:16.521Z] ++ sed -ne 's/.*value="\([^"]*\)".*/\1/p' +[2023-10-11T08:08:16.521Z] grep: /home/jenkins/agent/workspace/k8s-e2e/build.xml: No such file or directory +[2023-10-11T08:08:16.521Z] + java_version_default= +[2023-10-11T08:08:16.521Z] ++ grep 'property\s*name="java.supported"' /home/jenkins/agent/workspace/k8s-e2e/build.xml +[2023-10-11T08:08:16.521Z] ++ sed -ne 's/.*value="\([^"]*\)".*/\1/p' +[2023-10-11T08:08:16.521Z] grep: /home/jenkins/agent/workspace/k8s-e2e/build.xml: No such file or directory +[2023-10-11T08:08:16.521Z] + java_version_supported= +[2023-10-11T08:08:16.521Z] + '[' bullseye-build.docker == -h ']' +[2023-10-11T08:08:16.521Z] + dockerfile=bullseye-build.docker +[2023-10-11T08:08:16.521Z] + run_script=build-jars.sh +[2023-10-11T08:08:16.521Z] + java_version=17 +[2023-10-11T08:08:16.521Z] + command -v docker +[2023-10-11T08:08:16.521Z] + command -v timeout +[2023-10-11T08:08:16.521Z] + docker info +[2023-10-11T08:08:16.521Z] + '[' -f /home/jenkins/agent/workspace/k8s-e2e/build.xml ']' +[2023-10-11T08:08:16.521Z] + echo '/home/jenkins/agent/workspace/k8s-e2e/build.xml must exist' +[2023-10-11T08:08:16.521Z] /home/jenkins/agent/workspace/k8s-e2e/build.xml must exist +[2023-10-11T08:08:16.521Z] + exit 1 +ha:////4EcxSk7PEMTbV6MMmgnewrB4Wf3QVl1sjAar9fRApnwfAAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQDiqgQFa2VhheYxBg71p2xLyQVL+Jr/IFAJCq2WO1sM88XLFKEA0UjnMbOYmqsCL430xIDxe7iaRCOzqIhTOS1qPVQU6uPM9bEGuZkORQSlhobT8miYVhJp+6q9ApNeeI4fXsJuW1v8IBMTmZWkb8wRlhf+zYR/jx/BTAGhmK72X26qsIbSjFsBcAAAAA=[Pipeline] sh +[2023-10-11T08:08:16.757Z] + cassandra_dir=/home/jenkins/agent/workspace/k8s-e2e build_dir=/home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.WKMAvXDf8n .build/docker/_docker_run.sh bullseye-build.docker build-jars.sh 11 +[2023-10-11T08:08:16.757Z] + tee k8s-e2e_2__docker_run__bullseye-build.docker_build-jars__jdk11_cassandra_attempt_2.log +[2023-10-11T08:08:16.757Z] + '[' x/home/jenkins/agent/workspace/k8s-e2e '!=' x ']' +[2023-10-11T08:08:16.757Z] + '[' x/home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.WKMAvXDf8n '!=' x ']' +[2023-10-11T08:08:16.757Z] + '[' -d /home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.WKMAvXDf8n ']' +[2023-10-11T08:08:16.757Z] + echo ' from _docker_run' +[2023-10-11T08:08:16.757Z] from _docker_run +[2023-10-11T08:08:16.757Z] ++ grep 'property\s*name="java.default"' /home/jenkins/agent/workspace/k8s-e2e/build.xml +[2023-10-11T08:08:16.757Z] ++ sed -ne 's/.*value="\([^"]*\)".*/\1/p' +[2023-10-11T08:08:16.757Z] grep: /home/jenkins/agent/workspace/k8s-e2e/build.xml: No such file or directory +[2023-10-11T08:08:16.757Z] + java_version_default= +[2023-10-11T08:08:16.757Z] ++ grep 'property\s*name="java.supported"' /home/jenkins/agent/workspace/k8s-e2e/build.xml +[2023-10-11T08:08:16.757Z] ++ sed -ne 's/.*value="\([^"]*\)".*/\1/p' +[2023-10-11T08:08:16.757Z] grep: /home/jenkins/agent/workspace/k8s-e2e/build.xml: No such file or directory +[2023-10-11T08:08:16.757Z] + java_version_supported= +[2023-10-11T08:08:16.757Z] + '[' bullseye-build.docker == -h ']' +[2023-10-11T08:08:16.757Z] + dockerfile=bullseye-build.docker +[2023-10-11T08:08:16.757Z] + run_script=build-jars.sh +[2023-10-11T08:08:16.757Z] + java_version=11 +[2023-10-11T08:08:16.757Z] + command -v docker +[2023-10-11T08:08:16.757Z] + command -v timeout +[2023-10-11T08:08:16.757Z] + docker info +[2023-10-11T08:08:16.757Z] + '[' -f /home/jenkins/agent/workspace/k8s-e2e/build.xml ']' +[2023-10-11T08:08:16.757Z] + echo '/home/jenkins/agent/workspace/k8s-e2e/build.xml must exist' +[2023-10-11T08:08:16.757Z] /home/jenkins/agent/workspace/k8s-e2e/build.xml must exist +[2023-10-11T08:08:16.757Z] + exit 1 +ha:////4KRP5ukVWua6Y1JEFhXZK5nvaWrVKa9KM4YSB4ee4xgbAAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYSjKHSIitZKwwtMbIwT6y7YF5KKF/E1/oAhEhVbrHa2mecLVjHAgYIVncHeYWydGPxo0xIThf7iaRIdnUVLGMkb0ZipIW2OCzbEBpZkORQS1gZbT9GhZdjITt1V6RXa8sQhfXsJudM3eEAmk5lV4C/MAbbXUUfCn+evAOaBoaiq+tP1bngDSbo5m8AAAAA=[Pipeline] sh +[2023-10-11T08:08:16.838Z] + echo .build/docker/_docker_run.sh bullseye-build.docker build-jars.sh +[2023-10-11T08:08:16.838Z] .build/docker/_docker_run.sh bullseye-build.docker build-jars.sh +ha:////4OzvdbEGwqd93NTBsF29yoc5dgNokyMVCXk+ugzN2gcTAAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQDQqkQFa2VhheYxBg71p2xLyQVL+Jr/IFAJCq2WO1sM88XLFKEA0UjnMbOYmqsCL430xIDxe7iaRCOzqIhTOS1qPVQU6uPM9bEGuZkORQSlhobT8miYVhJp+6q9ApNeeI4fXsJuW1v8IBMTmZWkb8wRlhf+zYR/jx/BTAGhmK7qT69q8IbzJY2U8AAAAA=[Pipeline] echo +[2023-10-11T08:08:16.866Z] /home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.3LqMDy8yF3 +ha:////4Jfx824L1Fq0ab8iUqx1GYXtxB7s+G5Wj3MACWmzmtQ+AAAAqR+LCAAAAAAAAP9tjTEOwjAUQ39bdWBl5BApCMGCmFijLJwgpCGkjf4vSUo6cSKuxh1oqcSEB8u2ZL3XG8rg4UjesEZjazEoyzrXmzGxRL69OkqsoQtThIGcZkInQbU+zVVQ1DAry6HgsNCoHAWLJsKSN/IhKyfRVOfox+3AIbf1HZ6Q8ZEcpY/fMnhY3fo6EP44fwEwdBGKzXo3+XY/fcsPEDHOCsQAAAA=[Pipeline] dir +[2023-10-11T08:08:16.877Z] Running in /home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.3LqMDy8yF3 +ha:////4EREdvM8GSKn5CCTG+p7ZypAHieIw9NOHwZQr5n3xUtsAAAAqR+LCAAAAAAAAP9tjTEOwjAUQ39bdWBl5BCpEBIMqBNr1IUThCSEpNH/JUlpJ07E1bgDpZWY8GDZlqz3ekMZA9QUDHMaW4tRWtb53kyJDRTaq6eBObowSRjJa9booSGlT0ttKGlYlOVQcFhplJ6iRZNgzZ14iMoLNNU5hWk7csitusMTMj6RkwhpLmOAza1XkfDH+QuAsUtQbHf72Q/fb/kBi1zGC8QAAAA=[Pipeline] { +ha:////4OTuMzpcUyag7VLOukVKotxfDRvE1PIeosN4L/tNBBzKAAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQjRAESSkVrpeEFxjbGjnUXbAen4kV8jT8QJRIVW6x2tpn3B1YxQEPBMKexsxilZb0fzLRYptDdPGXm6MokYSSvWatzS0qfF2wpaVhSlFBxWGuUnqJFk2DDnXiK2gs09SWF6TtxKK16wAsKPpmTCGmGMcD2PqhI+PP8FcDYJ6h2+8Pcx/4LOdMwncAAAAA=[Pipeline] stash +[2023-10-11T08:08:16.921Z] Warning: overwriting stash ‘cassandra_17’ +ha:////4ER2/PQKTY89z8wiBT055TLIrDs0GHeDumebWNDvE8LvAAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQjRIEQSkVrpeEFxjbGjnUXbAen4kV8jT8QJRIVW6x2tpn3B1YxQEPBMKexsxilZb0fzLRYptDdPGXm6MokYSSvWatzS0qfF2wpaVhSlFBxWGuUnqJFk2DDnXiK2gs09SWF6TtxKK16wAsKPpmTCGmGMcD2PqhI+PP8FcDY9wmq3f449+ELXtm4hcAAAAA=[Pipeline] } +ha:////4P9jP7NUDBiGxS9+roWQaIfKNuaS8YHcWsmrb3aE6xfnAAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQDAtEgKlrLDS8wtjFOrLtgOyQVL+Jr/AFDJCq2WO1sM88XzGKAAwXLGoOtw6gc63xv82IDhfbiaWANnZkijOQNE2YQpM1xQkHJwJSihIrD3KDyFB3aBAveyLusvURbn1LI355D6fQNHlDwbE4ypC+MAZbXXkfCn+evAMauS1Ctt6tPb3ZvAqXibcAAAAA=[Pipeline] // dir +ha:////4Dz7Zn6Cs5n91+owK1bKmnHj9Ata6P/uwCZC4NG14FgbAAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYRDJKgQFa2VhheYxBg71p2xLyQVL+Jr/IFAJCq2WO1sM88XLFKEA0UjnMbOYmqsCL430xIDxe7iaRCOzqIhTOS1qPVQU6uPM9bEGuZkORQSlhobT8miYVhJp+6q9ApNeeI4fXsJuW1v8IBMTmZWkb8wRlhf+zYR/jx/BTAGhqLa7D69rcIbTUUVMsAAAAA=[Pipeline] sh +[2023-10-11T08:08:17.073Z] + echo .build/docker/_docker_run.sh bullseye-build.docker build-jars.sh +[2023-10-11T08:08:17.073Z] .build/docker/_docker_run.sh bullseye-build.docker build-jars.sh +ha:////4IxgJ8jaX2UEu/P/dEXuklgyFMPTkDBBMB+oOO0eBRq6AAAApR+LCAAAAAAAAP9tjTESwiAURH+SsbC19BBkonaOlS1D4wkQEEmY/yMQSeWJvJp3MJoZK7fY2bfNe75gEQMcKFjWGuwcRuVY7wc7LZYpdBdPmbV0ZoowkjdMmCxIm+OMgpKBOUUJFYelQeUpOrQJVryVd1l7ibY+pTB9ew6l0zd4QMEnc5IhfWEMsL4OOhL+PH8FMPYJqqbZfnq36d9KCyzIwAAAAA==[Pipeline] echo +[2023-10-11T08:08:17.131Z] /home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.WKMAvXDf8n +ha:////4EsRwwEnVBSV8E3xZ7a2U6lvocrnErcMyvAIjjE85dRSAAAAqB+LCAAAAAAAAP9tjbEOgjAYhH8gDK6OPkQJwc04uTYsPkFtay00/49tsUw+ka/mOwiSOHnD5e6Sy/d6Qxk8HMkb1mnsLQZp2eBGMyeWyPdXR4l1dGGSMJDTrNWpJaVPa20paliV5VBw2GiUjoJFE2HLO/EQlRNoqnP083bgkFt1hydkfCZH4eO3TB52t1EFwh/nLwCmIUJR183i+2b5lh9I4g+txAAAAA==[Pipeline] dir +[2023-10-11T08:08:17.143Z] Running in /home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.WKMAvXDf8n +ha:////4FkVLvAYd3ULyPpZ6n8USm6S4fhk9bLfyjAZmCvATAZoAAAAqB+LCAAAAAAAAP9tjbEOgjAYhH8gDK6OPkSJkc04sTYsPkEttRaa/8e2WCafyFfzHayQOHnD5e6Sy/d6Q+kdnMhp1iscDHpp2GgnnRKL5Iarpch6ujBJ6Mkq1qrYUqeatbYUFKzKcig4bBRKS96gDrDlvXiIygrU1Tm4tB055Ka7wxMynshBuLCU2cHuNnWe8Mf5C4B5DFDs68Pi9fdbfgDjYSWtxAAAAA==[Pipeline] { +ha:////4AOWWt63DFaDbjsGN8v0YGjB+WVKqrscoBWVL8rbL2WbAAAApR+LCAAAAAAAAP9tjbEOgjAURR8QB1dHP+IRE5yME2vTxS+opdZC8x62RZj8In/Nf5BA4uQdbu65y3l/YBMDnDlYbA11jqJ22PvBzgtHDt3N84gtX1EzRfYGpRklN6ZeUXIysCbLoRCwNaQ9R0c2wU606qlKr8iWlxTm7yQgd80DXpCJ2ZxUSAtMAfb3oYlMP89fAUx9guJQVUsf+y/b0T/HwAAAAA==[Pipeline] stash +[2023-10-11T08:08:17.184Z] Warning: overwriting stash ‘cassandra_11’ +ha:////4H8aaF8TGNKc/DGhqM/LGgBC2vBJduP515u4C8mb5lnpAAAAph+LCAAAAAAAAP9tjbEOgjAURR8QB1dHP+IRE+JinFibLn5BLbUWmvewLcLkF/lr/oMEEifvcHPPXc77A5sY4MzBYmuocxS1w94Pdl44cuhunkds+YqaKbI3KM0ouTH1ipKTgTVZDoWArSHtOTqyCXaiVU9VekW2vKQwfycBuWse8IJMzOakQlpgCrC/D01k+nn+CmDq+wTFoTouXX0B02d9r8AAAAA=[Pipeline] } +ha:////4PXl8jrmbpIbDYtG4ortDiPOiIdNmi2kWdXDfidKLjh4AAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQjBBIFSkVrpeEFxjbGjnUXbAen4kV8jT8QJRIVW6x2tpn3B1YxQEPBMKexsxilZb0fzLRYptDdPGXm6MokYSSvWatzS0qfF2wpaVhSlFBxWGuUnqJFk2DDnXiK2gs09SWF6TtxKK16wAsKPpmTCGmGMcD2PqhI+PP8FcDY9wmq3eE49/4LxPlul8AAAAA=[Pipeline] // dir +ha:////4LaiHIm7Ru11fWmrVdeF4XdSCivafGWpoTdN9SOWJxKCAAAApx+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYSjCAokREVrueEFxjbGiXUXbAen4kV8jT8QiETFFqudbeb5gkUMcKBgWWuwcxiVY70f7LRYptBdPGXW0pkpwkjeMGGyIG2OMwpKBuYUJVQclgaVp+jQJljxVt5l7SXa+pTC9O05lE7f4AEFn8xJhvSFMcD6OuhI+PP8FcDYJ6iaZvPp7a5/A8DjwzLAAAAA[Pipeline] sh +[2023-10-11T08:08:17.315Z] + xz -f k8s-e2e_2__docker_run__bullseye-build.docker_build-jars__jdk17_cassandra_attempt_2.log +ha:////4DEM1gPbUyx4922SwFKovOf0EXhc4X09YCv5wCNKYcbpAAAAqh+LCAAAAAAAAP9tjTEOwjAUQ39bdWBl5BApSDAgxMQaZeEEIQ0hbfR/SVLSiRNxNe5ASyUmPFi2Jeu93lAGD0fyhjUaW4tBWda53oyJJfLt1VFiDV2YIgzkNBM6Car1aa6CooZZWQ4Fh4VG5ShYNBGWvJEPWTmJpjpHP24HDrmt7/CEjI/kKH38lsHD6tbXgfDH+QuAoYtQbNa7ybf76Vt+AEu9Pz7EAAAA[Pipeline] dir +[2023-10-11T08:08:17.363Z] Running in /home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.3LqMDy8yF3 +ha:////4NSngREuPTwje0jj/dkAIYOMXTtztimKH0JonKdWs1YwAAAAqh+LCAAAAAAAAP9tjTEOwjAUQ39bdWBl5BApSDAgxMQaZeEEIQ0hbfR/SVLSiRNxNe5ASyUmPFi2Jeu93lAGD0fyhjUaW4tBWda53oyJJfLt1VFiDV2YIgzkNBM6Car1aa6CooZZWQ4Fh4VG5ShYNBGWvJEPWTmJpjpHP24HDrmt7/CEjI/kKH38lsHD6tbXgfDH+QuAoYtQbLb7yXfr6Vt+ACDA9HrEAAAA[Pipeline] { +ha:////4F31oT8wjHDZ4VvkV6iAdIFZRPon5W8sFcedHuAeZJpGAAAApR+LCAAAAAAAAP9tjTESgjAQRRcYC1tLD7FIYeVY0WbSeIIYYgxkdjEJQuWJvJp3kIEZK3/x57/fvPcHNjHAmYPF1lDnKGqHvR/svHDk0N08j9jyFTVTZG9QmlFyY+oVJScDa7IcCgFbQ9pzdGQT7ESrnqr0imx5SWH+TgJy1zzgBZmYzUmFtMAUYH8fmsj08/wVwNT3CYrqWC19+AKbrAa4wAAAAA==[Pipeline] } +ha:////4LnLjmTBtvmb0v3Smj/8l7wtEhKO4ndaT33NHrJabZVPAAAApx+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQjEBQIUdFabniBsY1xYt0F2yGpeBFf4w8YIlGxxWpnm3m+YBYDHChY1hhsHUblWOd7mxcbKLQXTwNr6MwUYSRvmDCDIG2OEwpKBqYUJVQc5gaVp+jQJljwRt5l7SXa+pRC/vYcSqdv8ICCZ3OSIX1hDLC89joS/jx/BTB2XYJqtV1/erN7A+M/KenAAAAA[Pipeline] // dir +ha:////4BPgxGSLl/leuPXAmbWLfryOpmIpxeBytbaIxGk3N9xjAAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQDQqkQFa2VhheYxBg71p2xLyQVL+Jr/IFAJCq2WO1sM88XLFKEA0UjnMbOYmqsCL430xIDxe7iaRCOzqIhTOS1qPVQU6uPM9bEGuZkORQSlhobT8miYVhJp+6q9ApNeeI4fXsJuW1v8IBMTmZWkb8wRlhf+zYR/jx/BTAGhmK7qT5d7cIb+E3hAcAAAAA=[Pipeline] echo +[2023-10-11T08:08:17.462Z] Complete '.build/docker/_docker_run.sh bullseye-build.docker build-jars.sh 17' on cassandra-mk8d2-5vk0k +ha:////4Eg8msn3dQgSycRuI9wHKoTHl1fhF87E81EXxNzFIrKIAAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQDEqkQFa2VhheYxBg71p2xLyQVL+Jr/IFAJCq2WO1sM88XLFKEA0UjnMbOYmqsCL430xIDxe7iaRCOzqIhTOS1qPVQU6uPM9bEGuZkORQSlhobT8miYVhJp+6q9ApNeeI4fXsJuW1v8IBMTmZWkb8wRlhf+zYR/jx/BTCGwFBsq92nN9Ub9oMj58AAAAA=[Pipeline] } +ha:////4NGNCXAjGqxPKiza35f/BQMOKCMOn0hTIAy1dzKn6DVUAAAApR+LCAAAAAAAAP9tjTESgjAQRRcYC1tLDxGGAhvHijZD4wliEmMgs4vJIlSeyKt5BxmZsfJX/73mvd6wSRFOFJ3oLPYek/ZiCKNbnpgo9tdAk+joIjRhomBFa6eWjG1WbIktrMtyKCRsLepAyaNj2MlOPVQZFLryzHFxRwm5N3d4QiaXMqvIX5gj7G+jSYS/zt8AzMPAUFR1zZAfqg/enhxmvwAAAA==[Pipeline] // retry +ha:////4BXL4JV9aEW6zxQkfD+PeZA1oOgo63QAcNs2M2l5ZiTfAAAApx+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQjJEBCERWtlYYXmNgYJ9ZdsC8kFS/ia/wBi0hUbLUzzbzesIgBjhSsaA12DmPjRO8Hm54YKXRXT6No6SIawkjeiNqMNWlzmrEmNjAvy6GQsDTYeIoOLcNKtuqhSq/QlmcOyVUScqfv8IRMpjKrwF+YAqxvg46Ev87fAEx9z1BsdnuGfHv4AMAGZdy/AAAA[Pipeline] } +[2023-10-11T08:08:17.568Z] + xz -f k8s-e2e_2__docker_run__bullseye-build.docker_build-jars__jdk11_cassandra_attempt_2.log +ha:////4O607biu1k392LQj+Hfxyse0Fww7ZoLJIIpYXqMXwz5xAAAApx+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQjJBBIERWtlYYXmNgYJ9ZdsC8kFS/ia/wBi0hUbLUzzbzesIgBjhSsaA12DmPjRO8Hm54YKXRXT6No6SIawkjeiNqMNWlzmrEmNjAvy6GQsDTYeIoOLcNKtuqhSq/QlmcOyVUScqfv8IRMpjKrwF+YAqxvg46Ev87fAEx9z1BsdnuGfHv4APPlPmC/AAAA[Pipeline] // node +ha:////4CU9CMOjTF0uVoX+yBjbXTqoh9E7jP/SrHRQtEn8JrezAAAApx+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQjJEBIERWtlYYXmNgYJ9ZdsC8kFS/ia/wBi0hUbLUzzbzesIgBjhSsaA12DmPjRO8Hm54YKXRXT6No6SIawkjeiNqMNWlzmrEmNjAvy6GQsDTYeIoOLcNKtuqhSq/QlmcOyVUScqfv8IRMpjKrwF+YAqxvg46Ev87fAEx9z1BsdgeGfLv/ACF60Ha/AAAA[Pipeline] } +[2023-10-11T08:08:17.655Z] Failed in branch 17 +ha:////4IbKU0jhPWMvVLsQ6wLZYYhgHd42fWPo/y8zooHxtUHOAAAAqh+LCAAAAAAAAP9tjTEOwjAUQ39bdWBl5BCpKsSAEBNr1IUThCaEtNH/JUlJJ07E1bgDKZWY8GDZlqz3ekPpHRzJadYp7A361rDBjjolFsn1V0uRdXRhLaEnq1ijYkNSnZbaUFCwKMuh4LBS2FryBnWANe/EQ1RWoK7OwaXtwCE38g5PyHgiB+HCt0wONrdResIf5y8ApiFAUdfb2Xf7+Vt+AJrK46rEAAAA[Pipeline] dir +[2023-10-11T08:08:17.695Z] Running in /home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.WKMAvXDf8n +ha:////4GTE87EHhwNKn7Xsw8j3guwQLLmjWQbJnw96trPYMi7xAAAAqh+LCAAAAAAAAP9tjTEOwjAUQ39bdWBl5BApDCAhxMQaZeEEIQ0hbfR/SVLSiRNxNe5ASyUmPFi2Jeu93lAGD0fyhjUaW4tBWda53oyJJfLt1VFiDV2YIgzkNBM6Car1aa6CooZZWQ4Fh4VG5ShYNBGWvJEPWTmJpjpHP24HDrmt7/CEjI/kKH38lsHD6tbXgfDH+QuAoYtQbLb7yXfr6Vt+ADgDipbEAAAA[Pipeline] { +ha:////4EIuum7iLzKSjRi8KGWZE4i9hJy4N/O9UHe+psuTXwGHAAAApR+LCAAAAAAAAP9tjTESgjAQRRcYC1tLD7FIY+NY0WbSeIIYYgxkdjEJQuWJvJp3kIEZK3/x57/fvPcHNjHAmYPF1lDnKGqHvR/svHDk0N08j9jyFTVTZG9QmlFyY+oVJScDa7IcCgFbQ9pzdGQT7ESrnqr0imx5SWH+TgJy1zzgBZmYzUmFtMAUYH8fmsj08/wVwNT3CYrqWC19+AK7+KQdwAAAAA==[Pipeline] } +ha:////4JEHC7NWIn7BF5AltrB1KyWLCBScREga/BLfyvKDmTCcAAAApx+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQjkEBCiIrWcsMLjG2ME+su2A5JxYv4Gn/AEImKLVY728zzBbMY4EDBssZg6zAqxzrf27zYQKG9eBpYQ2emCCN5w4QZBGlznFBQMjClKKHiMDeoPEWHNsGCN/Iuay/R1qcU8rfnUDp9gwcUPJuTDOkLY4DltdeR8Of5K4Cx6xJUq+3605vdG0EJvX7AAAAA[Pipeline] // dir +ha:////4LuwC9srVs/68ZmddGk+porFovMNkOsvDw576EI4cun/AAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYSjKBINoqK10vACExvjxLoL9oWk4kV8jT9giETFFqudbeb5glUMcKBgRWewdxhbJwY/2rTERKG/eJpER2fREkbyRjRmakib44INsYElWQ6FhLXB1lN0aBk2slN3VXqFtjxxSN9eQu70DR6QyWRmFfgLc4DtddSR8Of5K4B5YCiqqv70rh7eZe6z0sAAAAA=[Pipeline] echo +[2023-10-11T08:08:17.790Z] Complete '.build/docker/_docker_run.sh bullseye-build.docker build-jars.sh 11' on cassandra-mk8d2-btczb +ha:////4EQidcBr/Q96j3cQwuQ9ImFYAsF3iuT88wMeO0mVrMv3AAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYSjCESDqGgtN7zA2MY4se6C7eBUvIiv8QcCkajYYrWzzTxfsIgBDhQsaw12DqNyrPeDnRbLFLqLp8xaOjNFGMkbJkwWpM1xRkHJwJyihIrD0qDyFB3aBCveyrusvURbn1KYvj2H0ukbPKDgkznJkL4wBlhfBx0Jf56/Ahj7PkHV7LafbjZvYRDUmcAAAAA=[Pipeline] } +ha:////4HUwhRy+tmzNhB/LLyPyZXF/+vxo+8AXHWKGyployz6AAAAApR+LCAAAAAAAAP9tjTESgjAQRRcYC1tLDxHGAhrHijZD4wliiDGQ2cVkESpP5NW8gxmZsfJX/73mvd6wiQFOFKzoDQ4Oo3Zi9JNNT8wUhqunWfR0EZowkjeiNXNLnWlWbIkNrMtyKCRsDWpP0aFl2MlePVTpFdryzCG5o4TcdXd4QiZTmVXgLywB9repi4S/zt8ALOPIUBzqiiGvqw9aQJlQvwAAAA==[Pipeline] // retry +ha:////4ER2ZXnYRMaYyjuLr9+JtU3vzrTDtgzshWQuH6pFx2nZAAAAph+LCAAAAAAAAP9tjbEOgjAURR8lDq6OfkSJJrIYJteGxS+opdZC8x62D2Hyi/w1/0EiiZN3uucs5/WGVYpQUXSytdh5TMbLPgxufnKk2F0DjbKlizSEiYKVtR1rauxpwZrYwrJMQK5gbdEESh4dw0a1+qGLoNEVZ46zOyoQvrnDEzI1l1lH/sIUYXsbmkT46/wNwNT3DPmuLBnEYf8BlPREY78AAAA=[Pipeline] } +ha:////4Lwrk0+owB8TvXmHrc4/Ay74hqapzxQq+ZWm2YnPOZvrAAAAph+LCAAAAAAAAP9tjbEOgjAURR8lDq6OfkSJiZHBMLk2LH5BLbUWmvewfQiTX+Sv+Q8SSZy80z1nOa83rFKEiqKTrcXOYzJe9mFw85Mjxe4aaJQtXaQhTBSsrO1YU2NPC9bEFpZlAnIFa4smUPLoGDaq1Q9dBI2uOHOc3VGB8M0dnpCpucw68hemCNvb0CTCX+dvAKa+Z8h3h5JB7MsP/+Jpwb8AAAA=[Pipeline] // node +ha:////4JSiT+rJH/vGCZBkoFxBeBoIwab3FTO6zq+biRRXX0HLAAAApx+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQjJEBIERWtlYYXmNgYJ9ZdsC8kFS/ia/wBi0hUbLUzzbzesIgBjhSsaA12DmPjRO8Hm54YKXRXT6No6SIawkjeiNqMNWlzmrEmNjAvy6GQsDTYeIoOLcNKtuqhSq/QlmcOyVUScqfv8IRMpjKrwF+YAqxvg46Ev87fAEx9z1Bs9geGfLv7AAYxMd6/AAAA[Pipeline] } +[2023-10-11T08:08:17.960Z] Failed in branch 11 +ha:////4M4xhDGFlyQ969rlFphQCklgOad0eykq75tyyfDotzqxAAAApx+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQjBEJCERWtlYYXmNgYJ9ZdsC8kFS/ia/wBi0hUbLUzzbzesIgBjhSsaA12DmPjRO8Hm54YKXRXT6No6SIawkjeiNqMNWlzmrEmNjAvy6GQsDTYeIoOLcNKtuqhSq/QlmcOyVUScqfv8IRMpjKrwF+YAqxvg46Ev87fAEx9z1Bs9geGfLf9AJZHDvy/AAAA[Pipeline] // parallel +ha:////4Huvapl6UmqNJHNboiAjdIb3oCwloychgB2gsW8mkwTdAAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQDCIkioqK10vACExvjxLoL9oWk4kV8jT9gEYmKrXammdcbFjHAkYIVrcHOYWyc6P1g0xMjhe7qaRQtXURDGMkbUZuxJm1OM9bEBuZlORQSlgYbT9GhZVjJVj1U6RXa8swhuUpC7vQdnpDJVGYV+AtTgPVt0JHw1/kbgKnvGYrtYcOQ73cffC1xCr8AAAA=[Pipeline] } +[2023-10-11T08:08:18.034Z] Failed in branch cassandra +ha:////4FCJj8fK/z1n++ur8SE9Mi074/K+rm/cGCfIp7bPwhn6AAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYSjSEgUiIrWSsMLTGyME+vO2BecihfxNf5ARCQqttqZZl5vWKUIR4pW9AYHh6lzIvjRzk9kisPVUxY9XURHmMgb0ZrckjanBVtiA8uKEioJa4Odp+TQMmxkrx6q9gptfeY4u4OE0uk7PKGQc5lV5C9MEba3USfCX+dvAKYQGKpm3zCUu+YDY68kWL8AAAA=[Pipeline] // parallel +ha:////4BSEHAlgHp+GxTpIzWn/farH5sBtlALF5TX+EoFRMcMpAAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQjoEAooqK10vACExvjxLoL9oWk4kV8jT9gEYmKrXammdcbFjHAkYIVrcHOYWyc6P1g0xMjhe7qaRQtXURDGMkbUZuxJm1OM9bEBuZlORQSlgYbT9GhZVjJVj1U6RXa8swhuUpC7vQdnpDJVGYV+AtTgPVt0JHw1/kbgKnvGYrNfsuQ7w4fOMMqn78AAAA=[Pipeline] } +ha:////4A475TBTWyzvJnVlBnxkfXcJq90X161ejM5jITGT5F2qAAAAph+LCAAAAAAAAP9tjbEOgjAURR8QB1dHP6LEMGhimFwbFr+g0loLzXvYPoTJL/LX/AcbSZy80z1nOa83rGKAmoIVncHeYWydGPxo0xMThf7qaRIdXURLGMkb0ZipIW1OCzbEBpZlORQS1gZbT9GhZdjITj1U6RXa8swhuaOE3Ok7PCGTqcwq8BfmANvbqCPhr/M3APMwMBS7fcWQV4cPCyBxI78AAAA=[Pipeline] // stage +ha:////4H2pvlu8zi0A9yo4q1YOMhue34Di9h4dCj7VLANSBG33AAAAph+LCAAAAAAAAP9tjbEOgjAURR8lDq6OfkSJ0YTBMLk2LH5BLbUWmvewfQiTX+Sv+Q8SSZy80z1nOa83rFKEiqKTrcXOYzJe9mFw85Mjxe4aaJQtXaQhTBSsrO1YU2NPC9bEFpZlAnIFa4smUPLoGDaq1Q9dBI2uOHOc3VGB8M0dnpCpucw68hemCNvb0CTCX+dvAKa+Z8h35YFB7MsPIg3Lrr8AAAA=[Pipeline] } +[2023-10-11T08:08:18.167Z] Failed in branch artifacts +ha:////4JoKjS4csPAHh+XSQkaRAJ7Nan1AxUAvAUGj5U7++NZ/AAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQjhIAioqK10vACExvjxLoL9oWk4kV8jT9gEYmKrXammdcbFjHAkYIVrcHOYWyc6P1g0xMjhe7qaRQtXURDGMkbUZuxJm1OM9bEBuZlORQSlgYbT9GhZVjJVj1U6RXa8swhuUpC7vQdnpDJVGYV+AtTgPVt0JHw1/kbgKnvGYrNYceQb/cfEe6QEr8AAAA=[Pipeline] // parallel +ha:////4IjKPOzWPKn87FuXGv6v20Gj7MXeMdcPSxcUlGEB9xElAAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQjhIAioqK10vACExvjxLoL9oWk4kV8jT9gEYmKrXammdcbFjHAkYIVrcHOYWyc6P1g0xMjhe7qaRQtXURDGMkbUZuxJm1OM9bEBuZlORQSlgYbT9GhZVjJVj1U6RXa8swhuUpC7vQdnpDJVGYV+AtTgPVt0JHw1/kbgKnvGYrNYc+Qb3cfBc0NDb8AAAA=[Pipeline] } +ha:////4Cu7XnBBzxBEAQE3qwenOays9OyXgUEJ+toemKtu6LKtAAAAph+LCAAAAAAAAP9tjbEOgjAURR8lDq6OfkSJ0YTBMLk2LH5BLbUWmvewfQiTX+Sv+Q8SSZy80z1nOa83rFKEiqKTrcXOYzJe9mFw85Mjxe4aaJQtXaQhTBSsrO1YU2NPC9bEFpZlAnIFa4smUPLoGDaq1Q9dBI2uOHOc3VGB8M0dnpCpucw68hemCNvb0CTCX+dvAKa+Z8h3Zckg9ocPNi5Wsb8AAAA=[Pipeline] // stage +ha:////4B6PUu9VtfbiU1xrMkiyNP9iTpvwJ9SlrgE+FNiiDv5zAAAAqR+LCAAAAAAAAP9tjbEOgjAURR8QBldHP6KoiybEybVh8Qsq1Fpo3sP2YZn8In/NfxAlcfJO99zk5jxfkAcPB/JGtBo7i6G2oneDmZqI5LuLoyhaOouaMJDTotKxokYfZ6yINcxJUsgkLDTWjoJFw7CUrbqrwik0xYn9tJUSUtvc4AGJnMysPH9h9LC6Dk0g/Hn+CmDsGdLtmiHb7Pafa/4G6SLPWMMAAAA=[Pipeline] stage +ha:////4PYZQF1Wieo/hX0OtbT+jgQTvx8cx+1tSNs2vTbNAG0qAAAAqB+LCAAAAAAAAP9tjTEOwjAUQ39bdWBl5BCpmAChTqxRF04QkhCSRv+XJKWdOBFX4w6UVmLCg2Vbst7rDWUMUFMwzGlsLUZpWed7MyU2UGivngbm6MIkYSSvWaOHhpQ+LbWhpGFRlkPBYaVReooWTYI1d+IhKi/QVOcUpu3IIbfqDk/I+EROIqS5jAE2t15Fwh/nLwDGLkGx3e1nP3y/5QdgoAvsxAAAAA==[Pipeline] { (Test) +Stage "Test" skipped due to earlier failure(s) +ha:////4FTxrxZV3fKAVlotJvyComqQs+bCY6IjcVub0S0CqMoMAAAAqR+LCAAAAAAAAP9tjTEOwjAUQ39bdWBl5BApTIAQE2uUhROENIS00f8lSUknTsTVuAMtlZjwYNmWrPd6Qxk8HMkb1mhsLQZlWed6MyaWyLdXR4k1dGGKMJDTTOgkqNanuQqKGmZlORQcFhqVo2DRRFjyRj5k5SSa6hz9uB045La+wxMyPpKj9PFbBg+rW18Hwh/nLwCGLkKx2e4n362nb/kBLs3ppsQAAAA=[Pipeline] parallel +ha:////4OoCSy8HL6Jm9R2p9p3XZ1mgzfTPgYOvee4XkerB6dfGAAAAqB+LCAAAAAAAAP9tjTEOwjAUQ39bdWBl5BApLAgJdWKNunCCkISQNPq/JCntxIm4GnegtBITHizbkvVebyhjgJqCYU5jazFKyzrfmymxgUJ79TQwRxcmCSN5zRo9NKT0aakNJQ2LshwKDiuN0lO0aBKsuRMPUXmBpjqnMG1HDrlVd3hCxidyEiHNZQywufUqEv44fwEwdgmK3WE7+/77LT+XwWnKxAAAAA==[Pipeline] { (Branch: lint) +ha:////4NWb5oDX5lkOlGH/X8bKfxoFNdrAzTw221lxUv+zIibrAAAAqB+LCAAAAAAAAP9tjTEOwjAUQ39bdWBl5BApTCChTqxRF04QkhCSRv+XJKWdOBFX4w6UVmLCg2Vbst7rDWUMUFMwzGlsLUZpWed7MyU2UGivngbm6MIkYSSvWaOHhpQ+LbWhpGFRlkPBYaVReooWTYI1d+IhKi/QVOcUpu3IIbfqDk/I+EROIqS5jAE2t15Fwh/nLwDGLkGxO2xn33+/5QcyEjUBxAAAAA==[Pipeline] { (Branch: debian) +ha:////4KK/4slUiT7PR4El7DHlJhI8GFFk2dVvtJgoIXWJtQ5/AAAAqB+LCAAAAAAAAP9tjbEOgjAYhH8gDK6OPkTRjcQ4sTYsPkEttRaa/8e2WCafyFfzHayQOHnD5e6Sy/d6Q+kdnMhp1iscDHpp2GgnnRKL5Iarpch6ujBJ6Mkq1qrYUqeatbYUFKzKcig4bBRKS96gDrDlvXiIygrU1Tm4tB055Ka7wxMynshBuLCU2cHuNnWe8Mf5C4B5DFAc6v3i9fdbfgDnoGPwxAAAAA==[Pipeline] { (Branch: redhat) +ha:////4HCxzFhe+wu4Cnhq6pIdvYlPa6Bs4/QUIFKEV8pzoxhzAAAAqB+LCAAAAAAAAP9tjTEOwjAUQ39bdWBl5BApbCDUiTXqwglCEkLS6P+SpLQTJ+Jq3IHSSkx4sGxL1nu9oYwBagqGOY2txSgt63xvpsQGCu3V08AcXZgkjOQ1a/TQkNKnpTaUNCzKcig4rDRKT9GiSbDmTjxE5QWa6pzCtB055Fbd4QkZn8hJhDSXMcDm1qtI+OP8BcDYJSh2++3sh++3/ABCcz87xAAAAA==[Pipeline] { (Branch: centos7) +ha:////4GYZBQRSCoNoooFWCmbdq2lokdbgW5T99qxNdBlJ8tnZAAAAqB+LCAAAAAAAAP9tjTEOwjAUQ39bdWBl5BBp2UCIiTXqwglCE0La6P+SpKQTJ+Jq3IGUSkx4sGxL1nu9ofQOjuQ06xT2Bn1r2GBHnRKL5Pqrpcg6urCW0JNVrFGxIalOS20oKFiU5VBwWClsLXmDOsCad+IhKitQV+fg0nbgkBt5hydkPJGDcOFbJgeb2yg94Y/zFwDTEKDY7urZ9/X8LT8+KUe6xAAAAA==[Pipeline] { (Branch: stress) +ha:////4HLMp8QT2N/E1ClnSsGYPICKWJgM0+sEnS8l5TisY4eOAAAAqB+LCAAAAAAAAP9tjTEOwjAUQ39bdWBl5BAp3UCIiTXqwglCG0LS6P+SpKQTJ+Jq3IGUSkx4sGxL1nu9ofQOjuQUMxJ7jb7VbLCjSolFcv3VUmSGLqwl9GQla2RsqJOnpTYUJCzKcig4rCS2lrxGFWDNjXiIygpU1Tm4tB045Lq7wxMynshBuPAtk4PNbew84Y/zFwDTEKCod9vZ9/X8LT+b+htxxAAAAA==[Pipeline] { (Branch: fqltool) +ha:////4I4UqBcBiCUrgoecV/abvCOJVupO3zj7CQ9tZD9c1Kc+AAAAqh+LCAAAAAAAAP9tjTEOwjAUQ39bdWBl5BCpYEAgxMQaZeEEIQ0hbfR/SVLSiRNxNe5ASyUmPFi2Jeu93lAGD0fyhjUaW4tBWda53oyJJfLt1VFiDV2YIgzkNBM6Car1aa6CooZZWQ4Fh4VG5ShYNBGWvJEPWTmJpjpHP24HDrmt7/CEjI/kKH38lsHD6tbXgfDH+QuAoYtQrHfbyfeb6Vt+ANUtshjEAAAA[Pipeline] stage +ha:////4Ma2ARK3ryYYAQJ5GfnY2hz/4pyP/wQ0jAXzgqHvt8i0AAAAqB+LCAAAAAAAAP9tjTEOwjAUQ39bdWBl5BCpgAmhTqxRF04QkhCSRv+XJKWdOBFX4w6UVmLCg2Vbst7rDWUMUFMwzGlsLUZpWed7MyU2UGivngbm6MIkYSSvWaOHhpQ+LbWhpGFRlkPBYaVReooWTYI1d+IhKi/QVOcUpu3IIbfqDk/I+EROIqS5jAE2t15Fwh/nLwDGLkGxPexm33+/5QeKHH4NxAAAAA==[Pipeline] { (lint) +ha:////4N3WXibb33ZxYjApqEQSyv4rkbrMZXLjUKiiv1J/xRydAAAAqh+LCAAAAAAAAP9tjUEKwjAURH9bunDr0kOkCIKKuHIbsvEEMY0xbfi/JqnpyhN5Ne9ga8GVsxhmBob3ekMZPBzJG9ZobC0GZVnnejMmlsi3V0eJNXRhijCQ00zoJKjWp7kKihpmZTkUHBYalaNg0URY8kY+ZOUkmuoc/bgdOOS2vsMTMj6So/TxWwYPq1tfB8If5y8Ahi5Csd5tJ99vpm/5AaeCTlXEAAAA[Pipeline] stage +ha:////4MJZUTmwEToGdPc/gOOXUXSXSmvU0AtYr28G+ojhZFmUAAAAqR+LCAAAAAAAAP9tjTEOwjAUQ39bdWBl5BCpkGBAqBNr1IUThCSEpNH/JUlpJ07E1bgDpZWY8GDZlqz3ekMZA9QUDHMaW4tRWtb53kyJDRTaq6eBObowSRjJa9booSGlT0ttKGlYlOVQcFhplJ6iRZNgzZ14iMoLNNU5hWk7csitusMTMj6RkwhpLmOAza1XkfDH+QuAsUtQbA+72fffb/kBd1oaNMQAAAA=[Pipeline] { (debian) +ha:////4FuoNq3kPASR0oxCDYUrGByeBKo70l4+QlUJEnllkEqLAAAAqR+LCAAAAAAAAP9tjTEOwjAUQ39bdWBl5BCpWFARYmKNunCC0ISQNPq/JCntxIm4GncgpRITHizbkvVebyiDhyN5zazCzmBoDevdoFNiI/nu6mhkli6sJQzkFGvU2JBUp6U2FBUsynIoOKwUto6CQR1hza14iMoJ1NU5+rQdOORG3uEJGU/kKHz8lsnD5jbIQPjj/AXA1EcotnU9+343f8sP3bwSasQAAAA=[Pipeline] stage +ha:////4MBdJgvgjQZPKN+Tu09Zu5fQh+xnPH1q/Z3TF1m3OG9EAAAAqB+LCAAAAAAAAP9tjTEOwjAUQ39bdWBl5BCpWEAIdWKNunCCkISQNPq/JCntxIm4GnegtBITHizbkvVebyhjgJqCYU5jazFKyzrfmymxgUJ79TQwRxcmCSN5zRo9NKT0aakNJQ2LshwKDiuN0lO0aBKsuRMPUXmBpjqnMG1HDrlVd3hCxidyEiHNZQywufUqEv44fwEwdgmK7WE3+/77LT/jZemVxAAAAA==[Pipeline] { (redhat) +ha:////4EoZmccfR4yr0S4alfDOgc8tfrEIiuAXv7excWllts4iAAAAqB+LCAAAAAAAAP9tjbEOgjAYhH8gDK6OPkSJG8Q4uTYsPkFtay00/49tsUw+ka/mOwiSOHnD5e6Sy/d6Qxk8HMkb1mnsLQZp2eBGMyeWyPdXR4l1dGGSMJDTrNWpJaVPa20paliV5VBw2GiUjoJFE2HLO/EQlRNoqnP083bgkFt1hydkfCZH4eO3TB52t1EFwh/nLwCmIUKxr5vFm3r5lh/Ckb3LxAAAAA==[Pipeline] stage +ha:////4NJ2tiRtfZJmhs8iNN1SpHBSjf4rvS8S7UOI+hh+ZDBrAAAAqB+LCAAAAAAAAP9tjbEOgjAYhH8gDK6OPkSJm8Q4sTYsPkEttRaa/8e2WCafyFfzHayQOHnD5e6Sy/d6Q+kdnMhp1iscDHpp2GgnnRKL5Iarpch6ujBJ6Mkq1qrYUqeatbYUFKzKcig4bBRKS96gDrDlvXiIygrU1Tm4tB055Ka7wxMynshBuLCU2cHuNnWe8Mf5C4B5DFDs68Pi9fdbfgCN19JGxAAAAA==[Pipeline] { (centos7) +ha:////4HImw2Zbc5oukYeIo3AADbR2PIcvgrW4HtH7b+rtA7QbAAAAqR+LCAAAAAAAAP9tjTEOwjAUQ39bdWBl5BBpYEOoE2vUhROEJoS00f8lSWknTsTVuAOBSkx4sGxL1nu+oAweavKGdRp7i6G1bHCjSYlN5PuLo4l1dGYtYSCnWaOnhpQ+LrWhqGFRlkMhYKWxdRQsmghr0cm7rJxEU52iT9tBQG7VDR6QiUSO0sdvmT1srqMKhD/OXwDMQ4Riu+fJd5x/vuUbi7LGfMQAAAA=[Pipeline] stage +ha:////4B0TsWMnbQBaBDQSxdBYJW2CkN3bx4VkiaeRn6AwoFDrAAAApx+LCAAAAAAAAP9tjbEOgjAYhH8gDK6OPkRBV+PE2rD4BLXUWmj+H9timXwiX813sELi5A2Xu0su3+sNpXdwIqdZr3Aw6KVho510SiySG66WIuvpwiShJ6tYq2JLnWrW2lJQsCrLoeCwUSgteYM6wJb34iEqK1BX5+DSduSQm+4OT8h4IgfhwlJmB7vb1HnCH+cvAOYxQHGo68X332/5AR1ObkzEAAAA[Pipeline] { (stress) +ha:////4Fqlp5+1Uh+VxUFHAiqYz65hkzwwrb8yUbglInGqADDaAAAAqR+LCAAAAAAAAP9tjTEOwjAUQ39bdWBl5BAp7YYQE2vUhROEJoSk0f8lSWknTsTVuAOBSkx4sGxL1nu+oAweDuQ1swp7g6EzbHCjTolN5PuLo4lZOrOOMJBTrFVTS1Idl9pSVLAoy6HgsFLYOQoGdYQ1t+IuKidQV6fo07bnkBt5gwdkPJGj8PFbZg+b6ygD4Y/zFwDzEKGod3XyZtt8vuUb71+rqsQAAAA=[Pipeline] stage +ha:////4K6NmDyYGB+Xq0dFpYJTJlAx+qxu4xVOBnb8UitTAonwAAAApx+LCAAAAAAAAP9tjbEOgjAYhH8gDK6OPkQxOBon1obFJ6il1kLz/9gWy+QT+Wq+gxUSJ2+43F1y+V5vKL2DEznNeoWDQS8NG+2kU2KR3HC1FFlPFyYJPVnFWhVb6lSz1paCglVZDgWHjUJpyRvUAba8Fw9RWYG6OgeXtiOH3HR3eELGEzkIF5YyO9jdps4T/jh/ATCPAYp6Xy9++H7LD4lxne3EAAAA[Pipeline] { (fqltool) +Stage "lint" skipped due to earlier failure(s) +ha:////4I9WTKsVVZKCHoPtCGYQrBdTBwzZdaO26ZnSXLC1Trf+AAAApx+LCAAAAAAAAP9tjTsOwjAQRDeJKGgpOYTDr0GIitZywwmMY4wdazfYDknFibgad8AiEhVTjOZN815vmMUARwqGOY2txags63xv8mIDhfbqaWCOLkwRRvKaCT0IavRpQkFJw5SihIrDXKPyFC2aBAvu5EPWXqKpzynk78ChtM0dnlDwbE4ypC+MAZa3vomEP89fAYxdl6DarHa51/vtByuv767AAAAA[Pipeline] } +Stage "debian" skipped due to earlier failure(s) +ha:////4NWZEtjxmhx+5CZnSb0rjjhb0gco4AwjHgiAgKX6YZwWAAAApx+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQDSCkQoqK10vAC4xjjxLoztoNT8SK+xh+wiETFFqudbeb1hkXwcCSvWa9wMBikYc6OOi+WyA9XS4n1dGGSMJBVrFWppU6dZmwpKphTlFBxWCqUloJBHWHFe/EQtRWo63P0+TtwKE13hycUPJuj8PELk4f1bewC4c/zVwCTcxGq3abJvd03H6oB++HAAAAA[Pipeline] } +Stage "redhat" skipped due to earlier failure(s) +ha:////4G7uDiymVc8a9OVih63YY6eKc0qnsV5md9qB8jVodGu/AAAApx+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQDFCCEqGgtN7zAOMbYse6C7ZBUvIiv8QcsIlGxxWpnm3m9YRYDHCkY5jS2FqOyrPO9yYsNFNqrp4E5ujBFGMlrJvQgqNGnCQUlDVOKEioOc43KU7RoEiy4kw9Ze4mmPqeQvwOH0jZ3eELBsznJkL4wBlje+iYS/jx/BTB2XYJqs9rmXu93Hxt6HT7AAAAA[Pipeline] } +Stage "centos7" skipped due to earlier failure(s) +ha:////4JmPCqsDWKyxsWfzNsWUhbrjuJ9qyJv2Hwe6Cv/t42zYAAAApx+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQDNChCVLRWGl5gHGOcWHfGdnAqXsTX+AMWkajYYrWzzbzesAgejuQ16xUOBoM0zNlR58US+eFqKbGeLkwSBrKKtSq11KnTjC1FBXOKEioOS4XSUjCoI6x4Lx6itgJ1fY4+fwcOpenu8ISCZ3MUPn5h8rC+jV0g/Hn+CmByLkK12+xzb5vmA6hc0n/AAAAA[Pipeline] } +Stage "stress" skipped due to earlier failure(s) +ha:////4J81P6p5t+vYqSyO9Og8oJ5aHJLffhDi1jn7PhvsnUDaAAAApR+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQDVEgoFa2VhhcY2xg71l2wHZyKF/E1/kCUSFRssdrZZt4fWMUADQXDnMbOYpSW9X4w02KZQnfzlJmjK5OEkbxmrc4tKX1esKWkYUlRQsVhrVF6ihZNgg134ilqL9DUlxSm78ShtOoBLyj4ZE4ipBnGANv7oCLhz/NXAGPfJ6gOu+Pc+y9jocVUwAAAAA==[Pipeline] } +Stage "fqltool" skipped due to earlier failure(s) +ha:////4FiwGZIKxvB9E735gu174VjCLZFLLg+l3SH9uud8edy1AAAApR+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYSDoEIoFa2VhhcY2xg71l2wHZyKF/E1/kCUSFRssdrZZt4fWMUADQXDnMbOYpSW9X4w02KZQnfzlJmjK5OEkbxmrc4tKX1esKWkYUlRQsVhrVF6ihZNgg134ilqL9DUlxSm78ShtOoBLyj4ZE4ipBnGANv7oCLhz/NXAGPfJ6j2u+Pchy/7y7wcwAAAAA==[Pipeline] } +ha:////4HP/qZvgG1+vb/x8eSIdDve/rj1zFdh08DAo2TZN/qawAAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYRD0iFERWu54QXGNsaJdRdsh6TiRXyNP2ARiYotVjvbzOsNqxjgSMGyzmDvMCrHBj/avNhEob96mlhHF6YII3nDhJkEaXNaUFAysKQooeKwNqg8RYc2wYZ38iFrL9HW5xTyd+BQOn2HJxQ8m5MM6QtzgO1t1JHw5/krgHkYElRts8vd7NsPMLsN4cAAAAA=[Pipeline] // stage +ha:////4Pw1gAQ0dEVUAGSFUIIqBrz7UvULZpuadJfoPXkS56V7AAAApx+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQjIxqEUtFaaXiBiY1xYt0Z2yGpeBFf4w9YRKJii9XONvN6wyoGaCgY1mscLMbOMu9GkxebKAxXRxPr6cI6wkhOs1ZPLSl9WrClpGFJUUIlYK2xcxQtmgQb0cuHrJ1EU59TyN9RQGnVHZ5QiGxOMqQvzAG2t1FFwp/nrwBm7xNUO85z88P+A7EVGa7AAAAA[Pipeline] // stage +ha:////4C1q5bdsmbFgM2/xbvnlXcoZtdTDF68tiKKdsUbhXILxAAAApx+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYSjpEBCiIrWSsMLjG2ME+vO2A5JxYv4Gn/AIhIVW6x2tpnXG1YxwJGCYb3GwWKUlnk3mrzYRGG4OppYTxcmCSM5zTo9daT0acGOkoYlRQkVh7VG6ShaNAk2vBcPUTuBpj6nkL8Dh9KqOzyh4NmcREhfmANsb6OKhD/PXwHM3ieo2qbN3ex3HwBu/3HAAAAA[Pipeline] // stage +ha:////4MSWSDRIqJjZuJjplvdYdhEwCJvPPWwpQze5gknx2t3PAAAApx+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYSjQANCVLRWGl5gHGOcWHfGdnAqXsTX+AMWkajYYrWzzbzesAgejuQ16xUOBoM0zNlR58US+eFqKbGeLkwSBrKKtSq11KnTjC1FBXOKEioOS4XSUjCoI6x4Lx6itgJ1fY4+fwcOpenu8ISCZ3MUPn5h8rC+jV0g/Hn+CmByLkK1aba5m/3uA7NIMDDAAAAA[Pipeline] // stage +ha:////4Pero4m4/hKiwPRWiA4U/GRaxBaKV9VmOOaqdxspoR+1AAAApR+LCAAAAAAAAP9tjTESwiAURH+SsbC19BAkOnaOlS1D4wkQEEmY/yMQSeWJvJp3MJoZK7fY2bfNe75gEQMcKFjWGuwcRuVY7wc7LZYpdBdPmbV0ZoowkjdMmCxIm+OMgpKBOUUJFYelQeUpOrQJVryVd1l7ibY+pTB9ew6l0zd4QMEnc5IhfWEMsL4OOhL+PH8FMPZ9gmq72X26ad4f+8gowAAAAA==[Pipeline] // stage +ha:////4L22m43GUDvGF2BrByG72n/N+arcBiKqp2Ud9D+itpZfAAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQDkagQFa2VhheYxBg71p2xLyQVL+Jr/IFAJCq2WO1sM88XLFKEA0UjnMbOYmqsCL430xIDxe7iaRCOzqIhTOS1qPVQU6uPM9bEGuZkORQSlhobT8miYVhJp+6q9ApNeeI4fXsJuW1v8IBMTmZWkb8wRlhf+zYR/jx/BTCGwFBU292nN9Ubh5GxYMAAAAA=[Pipeline] // stage +ha:////4AHudcc3ubJNH/WnsHNwoVu0Rm51w8seCJhug4El0RV1AAAApx+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYSjUERIiIrWSsMLjG2ME+vO2A5JxYv4Gn/AIhIVW6x2tpnXG1YxwJGCYb3GwWKUlnk3mrzYRGG4OppYTxcmCSM5zTo9daT0acGOkoYlRQkVh7VG6ShaNAk2vBcPUTuBpj6nkL8Dh9KqOzyh4NmcREhfmANsb6OKhD/PXwHM3ieodk2bu9m3H1J7q5zAAAAA[Pipeline] } +[2023-10-11T08:08:18.967Z] Failed in branch lint +ha:////4L1WKjhWp9yplT2tMo4MwpxsyuS5DcGQDkao/UI37a9HAAAApx+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYSj0AQJUdFaaXiBsY1xYt0Z2yGpeBFf4w9YRKJii9XONvN6wyoGOFIwrNc4WIzSMu9GkxebKAxXRxPr6cIkYSSnWaenjpQ+LdhR0rCkKKHisNYoHUWLJsGG9+IhaifQ1OcU8nfgUFp1hycUPJuTCOkLc4DtbVSR8Of5K4DZ+wTVrmlzN/v2A3BA203AAAAA[Pipeline] } +[2023-10-11T08:08:18.985Z] Failed in branch debian +ha:////4I+945eyRDGg9+ZlMGxabTp9uoMTIjI/1q+oDVqAq2Q6AAAApx+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYSjUFlCVGmtNLzAxMY4se6M7ZBUvIiv8QcsIlGxxWpnm3m9YRMDnCgYNmgcLcbeMu8mkxebKYxXRzMb6MJ6wkhOs07PHSndrthR0rCmKKESsNXYO4oWTYKdGORD1k6iqc8p5O8ooLTqDk8oRDYnGdIXlgD726Qi4c/zVwCL9wmqQ8NzN5x/AAgtLCvAAAAA[Pipeline] } +[2023-10-11T08:08:18.995Z] Failed in branch redhat +ha:////4Hp696yi54swWXlshV42cCpx8JwalReJfiiLNr+7MKPDAAAApx+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYSjUBEhKlorDS8wtjFOrDtjOyQVL+Jr/AGLSFRssdrZZl5vWMUARwqG9RoHi1Fa5t1o8mITheHqaGI9XZgkjOQ06/TUkdKnBTtKGpYUJVQc1hqlo2jRJNjwXjxE7QSa+pxC/g4cSqvu8ISCZ3MSIX1hDrC9jSoS/jx/BTB7n6DaNW3uZt9+ACoWXPrAAAAA[Pipeline] } +[2023-10-11T08:08:19.005Z] Failed in branch centos7 +ha:////4HZcULc1OntcYNY32qVK0YXz3+N7+IHdGzml5A9jWe8vAAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQT0iFERWul4QXGNsaJdWdsh6TiRXyNP2ARiYotVjvbzOsNqxjgSMGwXuNgMUrLvBtNXmyiMFwdTaynC5OEkZxmnZ46Uvq0YEdJw5KihIrDWqN0FC2aBBvei4eonUBTn1PI34FDadUdnlDwbE4ipC/MAba3UUXCn+evAGbvE1Rt2+Te7ZsP/92MgcAAAAA=[Pipeline] } +[2023-10-11T08:08:19.014Z] Failed in branch stress +ha:////4DM3nHKo8vvDx7hE4cts7Bp8vSokowr1aFfvgCQjebFyAAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQjp0OIKq2VhheY2Bgn1p2xHZKKF/E1/oBFJCq2WO1sM683bGKAEwXDBo2jxdhb5t1k8mIzhfHqaGYDXVhPGMlp1um5I6XbFTtKGtYUJVQCthp7R9GiSbATg3zI2kk09TmF/B0FlFbd4QmFyOYkQ/rCEmB/m1Qk/Hn+CmDxPkHVNDw3P/AP3eb8UMAAAAA=[Pipeline] } +[2023-10-11T08:08:19.024Z] Failed in branch fqltool +ha:////4D8oV4nAYB+uPoh5zZYVy+bCTssSlplSHKjHbvbuDuYTAAAApx+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQDrpBQKlorDS8wsTFOrDtjOyQVL+Jr/AGLSFRssdrZZl5vWMUADQXDeo2DxdhZ5t1o8mITheHqaGI9XVhHGMlp1uqpJaVPC7aUNCwpSqgErDV2jqJFk2AjevmQtZNo6nMK+TsKKK26wxMKkc1JhvSFOcD2NqpI+PP8FcDsfYKKc557f9h9AJf9CA/AAAAA[Pipeline] // parallel +ha:////4KQare6f0KP4wkpxuJybrZlgABbqJCk/e6Js4vf3RrayAAAApx+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQjQoEQoqK10vAC4xjjxLoztoNT8SK+xh+wiETFFqudbeb1hkXwcCSvWa9wMBikYc6OOi+WyA9XS4n1dGGSMJBVrFWppU6dZmwpKphTlFBxWCqUloJBHWHFe/EQtRWo63P0+TtwKE13hycUPJuj8PELk4f1bewC4c/zVwCTcxGqptnm3uz2H0hSO1fAAAAA[Pipeline] } +ha:////4B8JGhJCWMa8A/ys5lzrYCpF4tKsDdKo3G3xNacmIJwqAAAAqB+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQjIiSQEBWtlYYXGMcYJ9adsR2cihfxNf6ARSQqtljtbDOvNyyChyN5zXqFg8EgDXN21HmxRH64WkqspwuThIGsYq1KLXXqNGNLUcGcooSKw1KhtBQM6ggr3ouHqK1AXZ+jz9+BQ2m6Ozyh4NkchY9fmDysb2MXCH+evwKYnItQNc0292a3/wBQXJvlwAAAAA==[Pipeline] // stage +ha:////4EokvdF2OQWdTtEj4Oa69vCYXNEpysOrmxKMmYoHN8mGAAAAqB+LCAAAAAAAAP9tjTEOwjAQBC+JUtBS8ggHRaJCVLRWGl5gHGOcWHfBvpBUvIiv8QcMkajYamel1TxfUMYABwpWdAZ7h1E7MfjRpiYmCv3F0yQ6OgtNGMkb0ZipodYcF2yIDSzJcigkrAxqT9GhZVjLTt1V5RXa6sQhbXsJuWtv8IBMJjOrwF+YA2yuYxsJf56/ApgHhrzeMhR1vftcyzdzGeY4wwAAAA==[Pipeline] stage +ha:////4Msf3e/EU3+aMcWVVgo3YLk1BmLFnwm24I9+C/CFyx45AAAAqB+LCAAAAAAAAP9tjbEOgjAYhH8gDK6OPkRJSHQxTqwNi09QS62F5v+xLZbJJ/LVfAcrJE7ecLm75PK93lB6BydymvUKB4NeGjbaSafEIrnhaimyni5MEnqyirUqttSpZq0tBQWrshwKDhuF0pI3qANseS8eorICdXUOLm1HDrnp7vCEjCdyEC4sZXawu02dJ/xx/gJgHgMUdb1f/PD9lh/XrQs+xAAAAA==[Pipeline] { (Summary) +Stage "Summary" skipped due to earlier failure(s) +ha:////4FKvy6EH9ASjrrprB7nIXGe7IZZx7xl6pUV2v2/o+7S/AAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQjpYACUaW10vACExtjx7oztkNS8SK+xh+wEomKLVY728z7A5sY4ExBM6twMBh7w7wbdV5sojDcHE3M0pX1hJGcYp2aOpKqXbGjpGBNUULFYauwdxQN6gQ7bsVT1E6gri8p5O/EoTTyAS8oeDYnEdICc4D9fZSR8Of5K4DZ+wRV0xyXPnwB1iH6TMAAAAA=[Pipeline] } +ha:////4G6x4KIjUhAYnTyc1EN6GbfSxNSDV6jgqahWw13oFxKGAAAAph+LCAAAAAAAAP9tjbEKwjAURV9bHFwd/YgUCoIgTl1DF78gNjEmDe/FJLWd/CJ/zX8wtODkHS733OW8P7CJAc4UNLMKB4OxN8y7UefFJgrDzdHELF1ZTxjJKdapqSOp2hU7SgrWFCVUHLYKe0fRoE6w41Y8Re0E6vqSQv5OHEojH/CCgmdzEiEtMAfY30cZCX+evwKYvU9QNc1x6cMXhQC7I8AAAAA=[Pipeline] // stage +ha:////4OjOxY9x0WDJxtqp4WEN/JybrGlwuKngvWl9Zvoc7QI7AAAApR+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYSD0iFERWul4QUmNsaJdWfsC07Fi/gafyAiEhVb7UwzrzesUoQjRSt6g4PD1DkR/GjnJzLF4eopi54uoiNM5I1oTW5Jm9OCLbGBZUUJlYS1wc5TcmgZNrJXD1V7hbY+c5zdQULp9B2eUMi5zCryF6YI29uoE+Gv8zcAUwgMVdPsGcpm9wFakp1JvwAAAA==[Pipeline] } +ha:////4Iam4vRzITvLUQon5vTK9FBhRvWXzW8iMIFtBcPF0rfRAAAAph+LCAAAAAAAAP9tjTsOwjAQBTeJKGgpOYTDp0IRFa2VhhOY2Bgn1m6wNyQVJ+Jq3AGLSFS86s0083rDIgY4UrCiNdg5jI0TvR9semKk0F09jaKli2gII3kjajPWpM1pxprYwLwsh0LC0mDjKTq0DCvZqocqvUJbnjkkV0nInb7DEzKZyqwCf2EKsL4NOhL+On8DMPU9Q7Hbbxjy7eEDQSMUmr8AAAA=[Pipeline] // timestamps +ha:////4GLgmquXY5o9mPN8CPopqUlfDnV/AzxjkFvDQKAnklGrAAAAph+LCAAAAAAAAP9tjbEOgjAURR8QB1dHP6IEXUwMk2vD4hfUUmuheQ/bhzD5Rf6a/2AjiZN3uucs5/WGVQxQU7CiM9g7jNqJwY82PTFR6K+eJtHRRWjCSN6IxkwNtea0YENsYFmWQyFhbVB7ig4tw0Z26qFKr9CWZw7JHSXkrr3DEzKZyqwCf2EOsL2NbST8df4GYB4GhmK3rxjy6vABcsBPJr8AAAA=[Pipeline] } +ha:////4PUcuZHAmlIwbNqyJ8WEJIzS3N9p5ibG+EM4IlW7YcWlAAAAph+LCAAAAAAAAP9tjTESgjAQRRcYC1tLDxFGLCwcKtsMjSeIJMZAZheTRag8kVfzDmZkxspf/fea93rDKgaoKVjRGewdxtaJwY82PTFR6K+eJtHRRbSEkbwRjZka0ua0YENsYFmWQyFhbbD1FB1aho3s1EOVXqEtzxySO0rInb7DEzKZyqwCf2EOsL2NOhL+On8DMA8DQ1HtK4Z8d/gATa9kML8AAAA=[Pipeline] // withEnv +ha:////4LsBk/PbAoDi2uM6d9hdAFSabuic6Pdc5gLdkZ00iBbCAAAApR+LCAAAAAAAAP9tjTESgjAQRZcwFraWHiKMYudQ2WZoPEEMMQYyu5gsQuWJvJp3kJEZK3/132ve6w2rFKGi6GRrsfOYjJd9GNz85EixuwYaZUsXaQgTBStrO9bU2NOCNbGFZZmAXMHaogmUPDqGjWr1QxdBoyvOHGd3VCB8c4cnZGous478hSnC9jY0ifDX+RuAqe8Z8n1ZMojd4QNSLTFivwAAAA==[Pipeline] } +ha:////4B7SVjpMIawSuTWOkh88NJG/WTwDOyv8W3D/bSi7YhhmAAAApR+LCAAAAAAAAP9tjTESgjAQRZcwFraWHiKMYudQ2WZoPEEMMQYyu5gsQuWJvJp3kJEZK3/132ve6w2rFKGi6GRrsfOYjJd9GNz85EixuwYaZUsXaQgTBStrO9bU2NOCNbGFZZmAXMHaogmUPDqGjWr1QxdBoyvOHGd3VCB8c4cnZGous478hSnC9jY0ifDX+RuAqe8Z8n15YBC78gNJiFDhvwAAAA==[Pipeline] // withEnv +ha:////4Mysifnd0Ocf66ZbAkSMRU0dSrUf3Gba7C0UtzG+T55RAAAApR+LCAAAAAAAAP9tjTEOwjAQBM+JKGgpeYQjgRAFoqK10vAC4xjjxLoL9gWn4kV8jT8QEYmKrXammdcbFinCkaKTrcXOYzJe9mFw05OZYncNlGVLF2kIEwUra5trauxpxprYwjxRQKlgadEESh4dw0q1+qGroNFVZ46TOygofHOHJwg1lVlH/sIYYX0bmkT46/wNwNj3DOVmu2MQ+w8Y/lSuvgAAAA==[Pipeline] } +ha:////4McO/5IippMf9J/D0C1AOvLyVc7kOTTnsNKGh/bXqJXMAAAApR+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQjgZQGUdFaaXiBiY1xYt0Z+4JT8SK+xh+IiETFVjvTzOsNqxThSNGK3uDgMHVOBD/a+YlMcbh6yqKni+gIE3kjWpNb0ua0YEtsYFlRQiVhbbDzlBxaho3s1UPVXqGtzxxnd5BQOn2HJxRyLrOK/IUpwvY26kT46/wNwBQCQ7XbNwxF8wFetPOevgAAAA==[Pipeline] // node +ha:////4JE2VneQzawNy1cKQf85a7fo5iKtGh5VmSp14P81OWa6AAAApR+LCAAAAAAAAP9tjTEOwjAQBM+JKGgpeYQjgRAFoqK10vAC4xjjxLoL9gWn4kV8jT8QEYmKrXammdcbFinCkaKTrcXOYzJe9mFw05OZYncNlGVLF2kIEwUra5trauxpxprYwjxRQKlgadEESh4dw0q1+qGroNFVZ46TOygofHOHJwg1lVlH/sIYYX0bmkT46/wNwNj3DOVmu2cQuw9UzJo6vgAAAA==[Pipeline] } +ha:////4J18tfongtj0uG+d2GBkWI5RFHesSw2D6JwCoF9jYAM6AAAApR+LCAAAAAAAAP9tjTEOwjAQBM+JKGgpeYQjAQUSoqK10vAC4xjjxLoL9gWn4kV8jT8QEYmKrXammdcbFinCkaKTrcXOYzJe9mFw05OZYncNlGVLF2kIEwUra5trauxpxprYwjxRQKlgadEESh4dw0q1+qGroNFVZ46TOygofHOHJwg1lVlH/sIYYX0bmkT46/wNwNj3DOVmu2cQuw8Ta83PvgAAAA==[Pipeline] // podTemplate +ha:////4CI1ReM95h4qQ4tah6WVxgRmV3eyor/ysbo+AGfR4EmEAAAApB+LCAAAAAAAAP9tjTEOwjAQBM+JKGgpeYQjhQohKlorDS8wsTFOrLtgX3AqXsTX+AMRkajYameaeb1hlSIcKTrZWew9ptbLIYxufjJT7K+BsuzoIlvCRMHKxuaGjD0t2BBbWCYKKBWsLbaBkkfHsFGdfugqaHTVmePsDgoKb+7wBKHmMuvIX5gibG+jSYS/zt8ATMPAUNa7PYOoP5bnzhu+AAAA[Pipeline] End of Pipeline +ERROR: No files included in stash ‘cassandra_17’ +Finished: FAILURE From b0f40833086b04dca04150224755621ce4263e4e Mon Sep 17 00:00:00 2001 From: richamishra Date: Thu, 12 Oct 2023 10:49:42 +0530 Subject: [PATCH 363/426] updated init container --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 1c73d64a53e4..970821516d80 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -81,7 +81,7 @@ pipeline { mountPath: /tmp/k8s-e2e tty: true securityContext: - runAsUser: 0 + //runAsUser: 0 privileged: true nodeSelector: gke-node: first From baa58fdfd4ed72894a509e2ba4d09930dc76ea93 Mon Sep 17 00:00:00 2001 From: richamishra Date: Thu, 12 Oct 2023 10:55:38 +0530 Subject: [PATCH 364/426] updated init container --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 970821516d80..6c0316df5ff3 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -82,7 +82,7 @@ pipeline { tty: true securityContext: //runAsUser: 0 - privileged: true + //privileged: true nodeSelector: gke-node: first volumes: From 668755b95a35348f168c5aaa25dba952dcd845ef Mon Sep 17 00:00:00 2001 From: richamishra Date: Thu, 12 Oct 2023 10:55:51 +0530 Subject: [PATCH 365/426] updated init container --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 6c0316df5ff3..00bf9ca7d039 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -80,7 +80,7 @@ pipeline { - name: cassandra-dir mountPath: /tmp/k8s-e2e tty: true - securityContext: + //securityContext: //runAsUser: 0 //privileged: true nodeSelector: From dd547a638b68285549a22b3df006d8b5310b5451 Mon Sep 17 00:00:00 2001 From: richamishra Date: Thu, 12 Oct 2023 11:13:24 +0530 Subject: [PATCH 366/426] updated init container --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 00bf9ca7d039..c019aee97ffd 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -363,7 +363,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { echo "build_script_safe_name: ${build_script_safe_name}" def logfile = "${JOB_NAME}_${BUILD_NUMBER}_${build_script_safe_name}_jdk${jdk}_${arch}_attempt_${attempt}.log" sh "mkdir -p build" - //sh 'sleep 300' + sh 'sleep 600' def build_dir = sh( returnStdout: true, script:"mktemp -d ${WORKSPACE}/build/build_docker_run.XXXXXXXXXX" ).trim() def tmp_dir = generatePath(build_dir.trim()) echo "tmp_dir ${tmp_dir}" From dd34428f883b129fb2d1ba3a8814b6687fa2087a Mon Sep 17 00:00:00 2001 From: richamishra Date: Thu, 12 Oct 2023 11:23:15 +0530 Subject: [PATCH 367/426] updated init container --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index c019aee97ffd..199c91d32c3a 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -60,7 +60,7 @@ pipeline { - sh - -c - chown 1000:1000 /var/run/docker.sock - - mount --bind /tmp/k8s-e2e/ /home/jenkins/agent/workspace/k8s-e2e/ + - mount --bind /tmp/k8s-e2e /home/jenkins/agent/workspace/k8s-e2e volumeMounts: - name: docker-socket mountPath: /var/run/docker.sock From e8377c8853c32e23f645c2a97efd6829058ee15d Mon Sep 17 00:00:00 2001 From: richamishra Date: Thu, 12 Oct 2023 11:31:38 +0530 Subject: [PATCH 368/426] updated init container --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 199c91d32c3a..6113b872b086 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -363,7 +363,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { echo "build_script_safe_name: ${build_script_safe_name}" def logfile = "${JOB_NAME}_${BUILD_NUMBER}_${build_script_safe_name}_jdk${jdk}_${arch}_attempt_${attempt}.log" sh "mkdir -p build" - sh 'sleep 600' + //sh 'sleep 600' def build_dir = sh( returnStdout: true, script:"mktemp -d ${WORKSPACE}/build/build_docker_run.XXXXXXXXXX" ).trim() def tmp_dir = generatePath(build_dir.trim()) echo "tmp_dir ${tmp_dir}" From 9549f120f548dd4590b40b4bf493c1de48f0328f Mon Sep 17 00:00:00 2001 From: richamishra Date: Thu, 12 Oct 2023 11:33:17 +0530 Subject: [PATCH 369/426] updated init container --- .jenkins/pipeline.jenkins | 1 + 1 file changed, 1 insertion(+) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 6113b872b086..cbc328ca19d5 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -353,6 +353,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { //sh 'ln -s /tmp/k8s-e2e/. /home/jenkins/agent/workspace/k8s-e2e' //sh 'mount --bind /tmp/k8s-e2e/ /home/jenkins/agent/workspace/k8s-e2e/' //sh 'su - jenkins' + sh 'ls /home/jenkins/agent/workspace/k8s-e2e' sh "echo scm success" tool type: 'jdk', name: "jdk_${jdk}_latest" sh "echo tool success" From 3f33e1fc53134a5f46f08cbfc3713a4917b1f10f Mon Sep 17 00:00:00 2001 From: richamishra Date: Thu, 12 Oct 2023 11:35:50 +0530 Subject: [PATCH 370/426] updated init container --- .jenkins/pipeline.jenkins | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index cbc328ca19d5..00c2a4066f0a 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -60,7 +60,6 @@ pipeline { - sh - -c - chown 1000:1000 /var/run/docker.sock - - mount --bind /tmp/k8s-e2e /home/jenkins/agent/workspace/k8s-e2e volumeMounts: - name: docker-socket mountPath: /var/run/docker.sock @@ -351,7 +350,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { //checkout scm //sh "find /tmp/k8s-e2e/ -mindepth 1 -maxdepth 1 -type d ! -name '.' ! -name '..' -exec ln -s {} /home/jenkins/agent/workspace/k8s-e2e \\;" //sh 'ln -s /tmp/k8s-e2e/. /home/jenkins/agent/workspace/k8s-e2e' - //sh 'mount --bind /tmp/k8s-e2e/ /home/jenkins/agent/workspace/k8s-e2e/' + sh 'mount --bind /tmp/k8s-e2e/ /home/jenkins/agent/workspace/k8s-e2e/' //sh 'su - jenkins' sh 'ls /home/jenkins/agent/workspace/k8s-e2e' sh "echo scm success" From ebd05b3bcb5a0fa84d2fa29d6781476b27893cfd Mon Sep 17 00:00:00 2001 From: richamishra Date: Thu, 12 Oct 2023 11:45:08 +0530 Subject: [PATCH 371/426] updated init container --- .jenkins/pipeline.jenkins | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 00c2a4066f0a..b3533774e4e3 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -79,9 +79,9 @@ pipeline { - name: cassandra-dir mountPath: /tmp/k8s-e2e tty: true - //securityContext: - //runAsUser: 0 - //privileged: true + securityContext: + runAsUser: 0 + privileged: true nodeSelector: gke-node: first volumes: From 159e8677432063d16e862999856304c0ce4d1c2f Mon Sep 17 00:00:00 2001 From: richamishra Date: Thu, 12 Oct 2023 12:14:24 +0530 Subject: [PATCH 372/426] updated docker command --- .build/docker/_docker_run.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.build/docker/_docker_run.sh b/.build/docker/_docker_run.sh index 808b9356c2de..0429a1b33f48 100755 --- a/.build/docker/_docker_run.sh +++ b/.build/docker/_docker_run.sh @@ -133,9 +133,10 @@ container_id=$(docker run --name ${container_name} -d --security-opt seccomp=unc echo "Running container ${container_name} ${container_id}" -sleep 600 +#sleep 600 #docker exec --user root ${container_name} bash -c "\${CASSANDRA_DIR}/.build/docker/_create_user.sh build $(id -u) $(id -g)" -docker exec --user root ${container_name} bash -c "/home/build/cassandra/.build/docker/_create_user.sh build $(id -u) $(id -g)" +docker exec --user root ${container_name} bash -c "/home/build/cassandra/.build/docker/_create_user.sh build $(stat -f %u ${cassandra_dir}) $(stat -f %g ${cassandra_dir})" +#docker exec --user root ${container_name} bash -c "/home/build/cassandra/.build/docker/_create_user.sh build $(id -u) $(id -g)" docker exec --user build ${container_name} bash -c "${docker_command}" RETURN=$? current_build_dir=$(basename "${build_dir}") From ae5fb90005b990194eb8c7af3260101fd691dc41 Mon Sep 17 00:00:00 2001 From: richamishra Date: Thu, 12 Oct 2023 12:22:01 +0530 Subject: [PATCH 373/426] updated docker command --- .build/docker/_docker_run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.build/docker/_docker_run.sh b/.build/docker/_docker_run.sh index 0429a1b33f48..5a592dbfcfab 100755 --- a/.build/docker/_docker_run.sh +++ b/.build/docker/_docker_run.sh @@ -135,8 +135,8 @@ container_id=$(docker run --name ${container_name} -d --security-opt seccomp=unc echo "Running container ${container_name} ${container_id}" #sleep 600 #docker exec --user root ${container_name} bash -c "\${CASSANDRA_DIR}/.build/docker/_create_user.sh build $(id -u) $(id -g)" -docker exec --user root ${container_name} bash -c "/home/build/cassandra/.build/docker/_create_user.sh build $(stat -f %u ${cassandra_dir}) $(stat -f %g ${cassandra_dir})" -#docker exec --user root ${container_name} bash -c "/home/build/cassandra/.build/docker/_create_user.sh build $(id -u) $(id -g)" +#docker exec --user root ${container_name} bash -c "/home/build/cassandra/.build/docker/_create_user.sh build $(stat -f %u ${cassandra_dir}) $(stat -f %g ${cassandra_dir})" +docker exec --user root ${container_name} bash -c "/home/build/cassandra/.build/docker/_create_user.sh build $(id -u) $(id -g)" docker exec --user build ${container_name} bash -c "${docker_command}" RETURN=$? current_build_dir=$(basename "${build_dir}") From a2f5fe7a946808b7b65e54568c4207313d2eff11 Mon Sep 17 00:00:00 2001 From: richamishra Date: Thu, 12 Oct 2023 12:47:33 +0530 Subject: [PATCH 374/426] updated docker command --- .build/docker/_docker_run.sh | 4 ++-- .jenkins/pipeline.jenkins | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.build/docker/_docker_run.sh b/.build/docker/_docker_run.sh index 5a592dbfcfab..df72095314e0 100755 --- a/.build/docker/_docker_run.sh +++ b/.build/docker/_docker_run.sh @@ -136,11 +136,11 @@ echo "Running container ${container_name} ${container_id}" #sleep 600 #docker exec --user root ${container_name} bash -c "\${CASSANDRA_DIR}/.build/docker/_create_user.sh build $(id -u) $(id -g)" #docker exec --user root ${container_name} bash -c "/home/build/cassandra/.build/docker/_create_user.sh build $(stat -f %u ${cassandra_dir}) $(stat -f %g ${cassandra_dir})" -docker exec --user root ${container_name} bash -c "/home/build/cassandra/.build/docker/_create_user.sh build $(id -u) $(id -g)" +docker exec --user root ${container_name} bash -c "/home/build/cassandra/.build/docker/_create_user.sh build $(id -u jenkins) $(id -g jenkins)" docker exec --user build ${container_name} bash -c "${docker_command}" RETURN=$? current_build_dir=$(basename "${build_dir}") -docker cp ${container_name}:"/home/build/cassandra/build/${current_build_dir}" /home/jenkins/agent/workspace/k8s-e2e/build +#docker cp ${container_name}:"/home/build/cassandra/build/${current_build_dir}" /home/jenkins/agent/workspace/k8s-e2e/build #docker stop ${container_name} >/dev/null popd >/dev/null diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index b3533774e4e3..8f8b30cab693 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -352,7 +352,6 @@ def _buildAxis(build_script, toCopy, arch, jdk) { //sh 'ln -s /tmp/k8s-e2e/. /home/jenkins/agent/workspace/k8s-e2e' sh 'mount --bind /tmp/k8s-e2e/ /home/jenkins/agent/workspace/k8s-e2e/' //sh 'su - jenkins' - sh 'ls /home/jenkins/agent/workspace/k8s-e2e' sh "echo scm success" tool type: 'jdk', name: "jdk_${jdk}_latest" sh "echo tool success" From 4a422556f37e031ccc692f06345c8f24be0a816e Mon Sep 17 00:00:00 2001 From: richamishra Date: Thu, 12 Oct 2023 13:00:21 +0530 Subject: [PATCH 375/426] updated docker command --- .build/docker/_docker_run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.build/docker/_docker_run.sh b/.build/docker/_docker_run.sh index df72095314e0..88a1a8168e4f 100755 --- a/.build/docker/_docker_run.sh +++ b/.build/docker/_docker_run.sh @@ -136,7 +136,7 @@ echo "Running container ${container_name} ${container_id}" #sleep 600 #docker exec --user root ${container_name} bash -c "\${CASSANDRA_DIR}/.build/docker/_create_user.sh build $(id -u) $(id -g)" #docker exec --user root ${container_name} bash -c "/home/build/cassandra/.build/docker/_create_user.sh build $(stat -f %u ${cassandra_dir}) $(stat -f %g ${cassandra_dir})" -docker exec --user root ${container_name} bash -c "/home/build/cassandra/.build/docker/_create_user.sh build $(id -u jenkins) $(id -g jenkins)" +docker exec --user root ${container_name} bash -c "/home/build/cassandra/.build/docker/_create_user.sh build 1000 1000" docker exec --user build ${container_name} bash -c "${docker_command}" RETURN=$? current_build_dir=$(basename "${build_dir}") From b77830b5a0a597c9081d27d28a84eaf9ad45cffa Mon Sep 17 00:00:00 2001 From: richamishra Date: Thu, 12 Oct 2023 13:34:09 +0530 Subject: [PATCH 376/426] updated dockerfile --- .build/docker/_docker_run.sh | 2 +- .build/docker/agent-build.docker | 5 +++++ .jenkins/pipeline.jenkins | 8 ++++---- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.build/docker/_docker_run.sh b/.build/docker/_docker_run.sh index 88a1a8168e4f..d369257d446e 100755 --- a/.build/docker/_docker_run.sh +++ b/.build/docker/_docker_run.sh @@ -136,7 +136,7 @@ echo "Running container ${container_name} ${container_id}" #sleep 600 #docker exec --user root ${container_name} bash -c "\${CASSANDRA_DIR}/.build/docker/_create_user.sh build $(id -u) $(id -g)" #docker exec --user root ${container_name} bash -c "/home/build/cassandra/.build/docker/_create_user.sh build $(stat -f %u ${cassandra_dir}) $(stat -f %g ${cassandra_dir})" -docker exec --user root ${container_name} bash -c "/home/build/cassandra/.build/docker/_create_user.sh build 1000 1000" +docker exec --user root ${container_name} bash -c "/home/build/cassandra/.build/docker/_create_user.sh build $(id -u) $(id -g)" docker exec --user build ${container_name} bash -c "${docker_command}" RETURN=$? current_build_dir=$(basename "${build_dir}") diff --git a/.build/docker/agent-build.docker b/.build/docker/agent-build.docker index 0f7d5e0ead51..98655d96deb4 100644 --- a/.build/docker/agent-build.docker +++ b/.build/docker/agent-build.docker @@ -7,6 +7,9 @@ RUN apt-get install xz-utils -y RUN apt-get install bc -y RUN apt-get update RUN apt-get install coreutils -y +RUN apt-get update && apt-get install -y sudo + + RUN apt-get update && \ apt-get install -y openjdk-11-jdk openjdk-17-jdk && \ @@ -25,6 +28,8 @@ RUN apt-get update && \ apt-get update && \ apt-get install -y docker-ce docker-ce-cli containerd.io + +RUN echo "jenkins ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/jenkins #VOLUME /var/run/docker.sock RUN usermod -aG docker jenkins #RUN chown -R 1000:1000 /var/run/docker.sock diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 8f8b30cab693..28e5b24295f8 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -67,7 +67,7 @@ pipeline { runAsUser: 0 containers: - name: jnlp - image: richamishra006/apache-k8s-agent:32 + image: richamishra006/apache-k8s-agent:v35 command: - /bin/sh - -c @@ -79,9 +79,9 @@ pipeline { - name: cassandra-dir mountPath: /tmp/k8s-e2e tty: true - securityContext: - runAsUser: 0 - privileged: true + //securityContext: + //runAsUser: 0 + //privileged: true nodeSelector: gke-node: first volumes: From 90937ffe520c8d671ae341173f08950173fc5b0a Mon Sep 17 00:00:00 2001 From: richamishra Date: Thu, 12 Oct 2023 13:39:59 +0530 Subject: [PATCH 377/426] updated pipeline mount command --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 28e5b24295f8..2224b49ce0e5 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -350,7 +350,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { //checkout scm //sh "find /tmp/k8s-e2e/ -mindepth 1 -maxdepth 1 -type d ! -name '.' ! -name '..' -exec ln -s {} /home/jenkins/agent/workspace/k8s-e2e \\;" //sh 'ln -s /tmp/k8s-e2e/. /home/jenkins/agent/workspace/k8s-e2e' - sh 'mount --bind /tmp/k8s-e2e/ /home/jenkins/agent/workspace/k8s-e2e/' + sh 'sudo mount --bind /tmp/k8s-e2e/ /home/jenkins/agent/workspace/k8s-e2e/' //sh 'su - jenkins' sh "echo scm success" tool type: 'jdk', name: "jdk_${jdk}_latest" From ebb332f6454df201bdc60d846b587b96ad909c18 Mon Sep 17 00:00:00 2001 From: richamishra Date: Thu, 12 Oct 2023 13:47:11 +0530 Subject: [PATCH 378/426] updated pipeline mount command --- .jenkins/pipeline.jenkins | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 2224b49ce0e5..f1b128e8ce27 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -79,9 +79,9 @@ pipeline { - name: cassandra-dir mountPath: /tmp/k8s-e2e tty: true - //securityContext: + securityContext: //runAsUser: 0 - //privileged: true + privileged: true nodeSelector: gke-node: first volumes: From 37d4a19a64a75b1fa9e8a4c3738ec84e7f802ba8 Mon Sep 17 00:00:00 2001 From: richamishra Date: Thu, 12 Oct 2023 13:56:13 +0530 Subject: [PATCH 379/426] updated pipeline mount command --- .jenkins/pipeline.jenkins | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index f1b128e8ce27..c68758a15fc7 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -348,10 +348,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { //cleanWs() echo "build_script: ${build_script}" //checkout scm - //sh "find /tmp/k8s-e2e/ -mindepth 1 -maxdepth 1 -type d ! -name '.' ! -name '..' -exec ln -s {} /home/jenkins/agent/workspace/k8s-e2e \\;" - //sh 'ln -s /tmp/k8s-e2e/. /home/jenkins/agent/workspace/k8s-e2e' sh 'sudo mount --bind /tmp/k8s-e2e/ /home/jenkins/agent/workspace/k8s-e2e/' - //sh 'su - jenkins' sh "echo scm success" tool type: 'jdk', name: "jdk_${jdk}_latest" sh "echo tool success" @@ -359,7 +356,6 @@ def _buildAxis(build_script, toCopy, arch, jdk) { retry(2) { if (attempt > 1) { sleep(60 * attempt) } def build_script_safe_name = "${build_script}".replace(".build/docker/", "").replace(".sh", "_").replace(" ", "_") - echo "build_script_safe_name: ${build_script_safe_name}" def logfile = "${JOB_NAME}_${BUILD_NUMBER}_${build_script_safe_name}_jdk${jdk}_${arch}_attempt_${attempt}.log" sh "mkdir -p build" //sh 'sleep 600' @@ -378,21 +374,11 @@ def _buildAxis(build_script, toCopy, arch, jdk) { statusCode = sh returnStatus:true, script:"cassandra_dir=/home/jenkins/agent/workspace/k8s-e2e build_dir=\"${build_dir}\" ${build_script} ${jdk} 2>&1 | tee ${logfile}" sh "echo ${build_script}" echo "${build_dir}" - //sh 'cp -r /tmp/* /home/jenkins/agent/workspace/k8s-e2e' - //sh "cp -r ${build_dir} ${tmp_dir}" - //sh "find /tmp/k8s-e2e/ -mindepth 1 -maxdepth 1 -type d ! -name '.' ! -name '..' -exec ln -s {} /home/jenkins/agent/workspace/k8s-e2e \\;" if (".build/docker/build-artifacts.sh" == build_script || build_script.contains(".build/docker/_docker_run.sh")) { - //dir("${build_dir}") { dir("${build_dir}") { // only stash the project built files. all dependency libraries are restored from the local maven repo using `ant resolver-dist-lib` stash name: "${arch}_${jdk}", includes: "*.jar,classes/**,test/classes/**,tools/**" - //stash name: "${arch}_${jdk}", includes: "*.jar" - //def container_name = "stash_${jdk}" - //sh "docker run --name ${container_name} -d -v /home/jenkins/agent/workspace/k8s-e2e:/home/jenkins/agent/workspace/k8s-e2e alpine:latest tail -f /dev/null" - //sh "docker exec ${container_name} sh -c 'adduser -D --no-create-home --uid 1000 --gecos build build && apk add git'" - //sh "docker exec -u build ${container_name} sh -c \"cd /home/jenkins/agent/workspace/k8s-e2e && git add build && git stash save jdk_${jdk}\"" - //sh "docker stop ${container_name}" } } } finally { From b961834a5208764e0324f24b2265999e78a1207e Mon Sep 17 00:00:00 2001 From: richamishra Date: Thu, 12 Oct 2023 15:14:15 +0530 Subject: [PATCH 380/426] updated test stage --- .build/docker/run-tests.sh | 8 ++------ .jenkins/pipeline.jenkins | 3 ++- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.build/docker/run-tests.sh b/.build/docker/run-tests.sh index b4ef1e8b2aa1..504905a75233 100755 --- a/.build/docker/run-tests.sh +++ b/.build/docker/run-tests.sh @@ -206,15 +206,11 @@ echo "Running container ${container_name} ${docker_id}" docker exec --user root ${container_name} bash -c "\${CASSANDRA_DIR}/.build/docker/_create_user.sh cassandra $(id -u) $(id -g)" | tee -a ${logfile} docker exec --user root ${container_name} update-alternatives --set python /usr/bin/python${python_version} | tee -a ${logfile} -docker cp "${build_dir}/." ${container_name}:/home/cassandra/cassandra/build -#docker cp /home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.G62tsKBLrH/. ${container_name}:/home/cassandra/cassandra/build +#docker cp "${build_dir}/." ${container_name}:/home/cassandra/cassandra/build # capture logs and pid for container docker exec --user cassandra ${container_name} bash -c "${docker_command}" | tee -a ${logfile} status=$? -#docker cp ${container_name}:/home/cassandra/cassandra/build/test/output ${build_dir}/test -#sleep 600 -#mkdir -p /home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.G62tsKBLrH -docker cp ${container_name}:/home/cassandra/cassandra/build/. "/home/jenkins/agent/workspace/k8s-e2e/build/${current_build_dir}" +#docker cp ${container_name}:/home/cassandra/cassandra/build/. "/home/jenkins/agent/workspace/k8s-e2e/build/${current_build_dir}" #docker exec --user cassandra ${container_name} bash -c "mkdir -p /home/cassandra/cassandra/result/1/${target} && cp -r /home/cassandra/cassandra/build/test/output /home/cassandra/cassandra/result/1/${target}" if [ "$status" -ne 0 ] ; then echo "${docker_id} failed (${status}), debug…" diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index c68758a15fc7..6e6d4af14091 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -490,7 +490,8 @@ def _testAxis(test_script, test_type, toCopy, arch, jdk, python, cython, split) echo "test below branchName" echo "Starting `${test_script} ${test_type} ${split} ${jdk}` with arch=${arch} jdk=${jdk} python${python} cython=${cython} on ${NODE_NAME}" cleanWs() - checkout scm + //checkout scm + sh 'sudo mount --bind /tmp/k8s-e2e/ /home/jenkins/agent/workspace/k8s-e2e/' echo "test scm success" //def build_dir = '/home/jenkins/agent/workspace/k8s-e2e/build' sh "mkdir -p build" From 3c5840ef862ef5c282f65e228b88ec6ba8c33f95 Mon Sep 17 00:00:00 2001 From: richamishra Date: Thu, 12 Oct 2023 15:41:58 +0530 Subject: [PATCH 381/426] updated logfile command --- .jenkins/pipeline.jenkins | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 6e6d4af14091..8a93895bfe63 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -371,7 +371,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { } } echo "Executing `build_dir=${build_dir} ${build_script} ${jdk} 2>&1 | tee ${logfile}` on ${NODE_NAME}" - statusCode = sh returnStatus:true, script:"cassandra_dir=/home/jenkins/agent/workspace/k8s-e2e build_dir=\"${build_dir}\" ${build_script} ${jdk} 2>&1 | tee ${logfile}" + statusCode = sh returnStatus:true, script:"build_dir=\"${build_dir}\" ${build_script} ${jdk} 2>&1 | tee ${build_dir}/${logfile}" sh "echo ${build_script}" echo "${build_dir}" @@ -508,8 +508,8 @@ def _testAxis(test_script, test_type, toCopy, arch, jdk, python, cython, split) dir("${build_dir}") { unstash name: "${arch}_${jdk}" } - echo "Executing `${test_script} ${test_type} ${split} ${jdk} 2>&1 | tee ${logfile}` on ${NODE_NAME} with jdk=${jdk} python=${python} cython=${cython}" - statusCode = sh returnStatus:true, script:"current_build_dir=\"${current_build_dir}\" build_dir=\"${build_dir}\" ${test_script} ${test_type} ${split} ${jdk} 2>&1 | tee ${logfile}" + echo "Executing `${test_script} ${test_type} ${split} ${jdk} 2>&1 | tee ${build_dir}/${logfile}` on ${NODE_NAME} with jdk=${jdk} python=${python} cython=${cython}" + statusCode = sh returnStatus:true, script:"current_build_dir=\"${current_build_dir}\" build_dir=\"${build_dir}\" ${test_script} ${test_type} ${split} ${jdk} 2>&1 | tee ${build_dir}/${logfile}" } finally { attempt = attempt + 1 if (0 == statusCode) { From 38eadd2d54c347f01accbf0914a4c38f2325056f Mon Sep 17 00:00:00 2001 From: richamishra Date: Thu, 12 Oct 2023 17:49:55 +0530 Subject: [PATCH 382/426] updated logcommand --- .build/run-ci.sh | 51 ++++++++++++++++++++++----------------- .jenkins/pipeline.jenkins | 4 +-- 2 files changed, 31 insertions(+), 24 deletions(-) diff --git a/.build/run-ci.sh b/.build/run-ci.sh index 4555901ab831..ccc64330d6e5 100755 --- a/.build/run-ci.sh +++ b/.build/run-ci.sh @@ -72,18 +72,42 @@ helm repo add --namespace ${KUBE_NS} jenkins https://raw.githubusercontent.com/j # Install Jenkins Operator using Helm echo "Installing Jenkins Operator..." -helm upgrade --namespace ${KUBE_NS} --install jenkins-operator jenkins/jenkins-operator --set jenkins.enabled=false --set jenkins.backup.enabled=false --version 0.8.0-beta.2 +#helm upgrade --namespace ${KUBE_NS} --install jenkins-operator jenkins/jenkins-operator --set jenkins.enabled=false --set jenkins.backup.enabled=false --version 0.8.0-beta.2 echo "Jenkins Operator installed successfully!" # condition to check if above command was success # deploy jenkins Instance TODO jenkins file parameter kubectl apply --namespace ${KUBE_NS} -f ${CASSANDRA_DIR}/.build/jenkins-deployment.yaml +TOKEN=$(kubectl get secret jenkins-operator-credentials-example -o jsonpath="{.data.token}" | base64 --decode) + +# Trigger a new build and capture the response headers +response_headers=$(curl -i -X POST http://localhost:8080/job/k8s-e2e/build -u jenkins-operator:$TOKEN 2>&1) + + +queue_url=$(echo "$response_headers" | grep -i "Location" | awk -F ": " '{print $2}' | tr -d '\r') +queue_item_number=$(basename "$queue_url") + +# Construct the complete URL to retrieve build information +queue_json_url="http://localhost:8080/queue/item/$queue_item_number/api/json" + +# Wait for the build number to become available (querying the API) +build_number="" +while [ -z "$build_number" ] || [ "$build_number" == "null" ]; do + build_info=$(curl -s "$queue_json_url" -u jenkins-operator:$TOKEN) + build_number=$(echo "$build_info" | jq -r '.executable.number') + if [ -z "$build_number" ] || [ "$build_number" == "null" ]; then + echo "Build number not available yet. Waiting..." + sleep 5 # Adjust the polling interval as needed + fi +done + +echo "build_number $build_number" BUILD_DIR=/var/lib/jenkins/jobs/k8s-e2e/builds POD_NAME=jenkins-example LATEST_BUILD=$(kubectl exec -it $POD_NAME -- /bin/bash -c "ls -t $BUILD_DIR | head -n 1" | tr -d '\r') -CONSOLE_LOG_FILE="$BUILD_DIR/$LATEST_BUILD/log" +CONSOLE_LOG_FILE="$BUILD_DIR/$build_number/log" # Define a function to check if "FINISHED" is in the consoleLog check_finished() { @@ -102,25 +126,8 @@ while true; do done LOCAL_DIR=. -mkdir -p $LOCAL_DIR/$LATEST_BUILD -kubectl cp -n $KUBE_NS $POD_NAME:$BUILD_DIR/$LATEST_BUILD/log $LOCAL_DIR/$LATEST_BUILD/log -kubectl cp -n $KUBE_NS $POD_NAME:$BUILD_DIR/$LATEST_BUILD/junitResult.xml $LOCAL_DIR/$LATEST_BUILD/junitResult.xml - - - - -# TODO wait for job pods -#kubectl rollout --namespace ${KUBE_NS} wait pod/ [--for=] - -#sleep 120 - -# get job pod name - TODO parameterise the job name -#jobPodName=$(kubectl --namespace ${KUBE_NS} get po | grep k8sagent-e2e | cut -d " " -f1) +mkdir -p $LOCAL_DIR/$build_number +kubectl cp -n $KUBE_NS $POD_NAME:$BUILD_DIR/$build_number/log $LOCAL_DIR/$build_number/log +kubectl cp -n $KUBE_NS $POD_NAME:$BUILD_DIR/$build_number/junitResult.xml $LOCAL_DIR/$build_number/junitResult.xml -# get the file - TODO parameterize the path to fetch path -#kubectl exec --namespace ${KUBE_NS} $jobPodName -- tar cf - /home/jenkins/agent/workspace/k8s-e2e | tar xf - -C . -# teardown # TODO add option to skip teardown -#kubectl delete --namespace ${KUBE_NS} -f ${CASSANDRA_DIR}/.build/jenkins-deployment.yaml -#kubectl delete "$(kubectl api-resources --namespaced=true --verbs=delete -o name | tr "\n" "," | sed -e 's/,$//')" --all -#kubectl delete namespace ${KUBE_NS} \ No newline at end of file diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 8a93895bfe63..15cdf3894b20 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -383,7 +383,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { } } finally { attempt = attempt + 1 - sh "xz -f *_attempt_*.log" + sh "xz -f ${build_dir}/*_attempt_*.log" copyToNightlies("*_attempt_*.log.xz", "${build_script_safe_name}/jdk${jdk}/${arch}/") if (0 == statusCode) { dir("${build_dir}") { @@ -517,7 +517,7 @@ def _testAxis(test_script, test_type, toCopy, arch, jdk, python, cython, split) } else { toCopy = "" } - sh "xz -f *_attempt_*.log" + sh "xz -f ${build_dir}/*_attempt_*.log" copyToNightlies("*_attempt_*.log.xz,console.log.xz,TESTS-TestSuites.xml.xz,build/test/logs/**,${toCopy}", "${test_type}/${arch}/jdk${jdk}/python${python}/cython_${cython}/" + "split_${split}".replace("/", "_")) cleanAgent(test_script) if (0 != statusCode) { From 68ededd16f59832ecb5640407f55ad2c2efd4c73 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Fri, 13 Oct 2023 15:34:02 +0530 Subject: [PATCH 383/426] add string paramter to pipeline.jenkins to provide which stages to run --- .jenkins/pipeline.jenkins | 94 +++++++++++++++++++-------------------- 1 file changed, 47 insertions(+), 47 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 15cdf3894b20..e38bf64c3b3c 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -94,6 +94,14 @@ pipeline { ''' } } + + parameters { + string( + //choices: 'lint\ndebian\ntedhat\ncentos7\stress\nfqltool', + description: 'Select the stages to run', + name: 'TEST_STAGES_TO_RUN' + ) + } options { githubProjectProperty('https://github.com/apache/cassandra') @@ -133,44 +141,46 @@ pipeline { } } stage('Test') { - parallel { + steps { + script{ + def selectedStages = params.TEST_STAGES.split(',') + def parallelStages = [:] + for (def stageName in selectedStages) { + parallelStages[stageName] = { stage('lint') { - steps { - //buildJob(".build/docker/check-code.sh", "") - sh 'echo "stage lint"' - } - } - stage('debian') { - steps { - //buildJob(".build/docker/build-debian.sh", "cassandra_*,cassandra-tools_*") - sh 'echo "stage debian"' + steps{ + script{ + if (stageName == 'lint') { + sh 'echo "Running lint stage"' + // Add steps specific to the lint stage + //buildJob(".build/docker/check-code.sh", "") + } else if (stageName == 'debian') { + sh 'echo "Running debian stage"' + // Add steps specific to the debian stage + //buildJob(".build/docker/build-debian.sh", "cassandra_*,cassandra-tools_*") + } else if (stageName == 'redhat') { + sh 'echo "Running redhat stage"' + // Add steps specific to the redhat stage + //buildJob(".build/docker/build-redhat.sh rpm", "*.rpm") + } else if (stageName == 'centos7') { + sh 'echo "Running centos7 stage"' + // Add steps specific to the centos7 stage + //buildJob(".build/docker/build-redhat.sh noboolean", "*.rpm") + } else if (stageName == 'stress') { + sh 'echo "Running stress stage"' + // Add steps specific to the stress stage + testJob(".build/docker/run-tests.sh", "stress-test", 1) + } else if (stageName == 'fqltool') { + sh 'echo "Running stress fqltool"' + // Add steps specific to the stress stage + testJob(".build/docker/run-tests.sh", "fqltool-test", 1) + } + } } } - stage('redhat') { - steps { - //buildJob(".build/docker/build-redhat.sh rpm", "*.rpm") - sh 'echo "stage redhat"' } } - stage('centos7') { - steps { - //buildJob(".build/docker/build-redhat.sh noboolean", "*.rpm") - sh 'echo "stage centos7"' - } - } - stage('stress') { - steps { - //sh 'cp -r /tmp/* /home/jenkins/agent/workspace/k8s-e2e' - testJob(".build/docker/run-tests.sh", "stress-test", 1) - sh 'echo "stage stress"' - } - } - stage('fqltool') { - steps { - testJob(".build/docker/run-tests.sh", "fqltool-test", 1) - sh 'echo "stage fqltool"' - } - } + parallel(parallelStages) // XXX – commented out for infracloud/cassandra-5.0 branch // stage('units') { // steps { @@ -242,16 +252,14 @@ pipeline { // testJob(".build/docker/run-tests.sh", "dtest-upgrade", 64) // } // } + } + } } - } + stage('Summary') { steps { sh 'echo "stage summary"' - dir("build") { - unstash name: "cassandra_11_stress-test" - //unstash name: "cassandra_11_fqltools" - } - //container('jnlp') { + // FIXME is this needed if each job is submitting its own results to the overall pipeline ?? //junit testResults: '**/build/test/**/TEST*.xml,**/cqlshlib.xml,**/nosetests.xml', testDataPublishers: [[$class: 'StabilityTestDataPublisher']] @@ -263,17 +271,9 @@ pipeline { //collectConsoleLog() // FIXME should this be in a final instead ? (we always want the console log archived) //copyToNightlies('console.log.xz,TESTS-TestSuites.xml.xz') - - - //} } } } - //post { - // always { - // archiveArtifacts artifacts: 'build/test/output' - // } - // } } /////////////////////////// From 6ab307d20bd4ed5ad42227a0e7c29d6771b4d231 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Fri, 13 Oct 2023 15:50:12 +0530 Subject: [PATCH 384/426] add string paramter to pipeline.jenkins to provide which stages to run --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index e38bf64c3b3c..7514b0b04e6f 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -143,7 +143,7 @@ pipeline { stage('Test') { steps { script{ - def selectedStages = params.TEST_STAGES.split(',') + def selectedStages = params.TEST_STAGES_TO_RUN.split(',') def parallelStages = [:] for (def stageName in selectedStages) { parallelStages[stageName] = { From 7dfb4746cbb79857b924cae274fb3c10b630b6d1 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Fri, 13 Oct 2023 15:50:58 +0530 Subject: [PATCH 385/426] remove temp output dir --- 2/log | 723 ---------------------------------------------------------- 1 file changed, 723 deletions(-) delete mode 100644 2/log diff --git a/2/log b/2/log deleted file mode 100644 index ebf34ffaffea..000000000000 --- a/2/log +++ /dev/null @@ -1,723 +0,0 @@ -Started by user ha:////4M+feViv8OnIq+kmfa0hvAdixJTg3t7DycFr0DxmNXGuAAAAoR+LCAAAAAAAAP9b85aBtbiIQTGjNKU4P08vOT+vOD8nVc83PyU1x6OyILUoJzMv2y+/JJUBAhiZGBgqihhk0NSjKDWzXb3RdlLBUSYGJk8GtpzUvPSSDB8G5tKinBIGIZ+sxLJE/ZzEvHT94JKizLx0a6BxUmjGOUNodHsLgAyBEgYx/dLi1CL9rNS87My8Yt18oNWJJflFABglii/LAAAAjenkins-operator -Checking out git https://github.com/infracloudio/cassandra.git into /var/lib/jenkins/workspace/k8s-e2e@script/8572f1b68672dd44aa5ba45da665ab98b4e70839ea5fb6f2e96696e9ab1ca47a to read .jenkins/pipeline.jenkins -The recommended git tool is: NONE -No credentials specified - > git rev-parse --resolve-git-dir /var/lib/jenkins/workspace/k8s-e2e@script/8572f1b68672dd44aa5ba45da665ab98b4e70839ea5fb6f2e96696e9ab1ca47a/.git # timeout=10 -Fetching changes from the remote Git repository - > git config remote.origin.url https://github.com/infracloudio/cassandra.git # timeout=10 -Fetching upstream changes from https://github.com/infracloudio/cassandra.git - > git --version # timeout=10 - > git --version # 'git version 2.39.2' - > git fetch --tags --force --progress -- https://github.com/infracloudio/cassandra.git +refs/heads/*:refs/remotes/origin/* # timeout=10 - > git rev-parse refs/remotes/origin/infracloud/cassandra-5.0^{commit} # timeout=10 -Checking out Revision 3d97537aa8470b6053d148e31513fd3e6fd5006a (refs/remotes/origin/infracloud/cassandra-5.0) - > git config core.sparsecheckout # timeout=10 - > git checkout -f 3d97537aa8470b6053d148e31513fd3e6fd5006a # timeout=10 -Commit message: "updated script" - > git rev-list --no-walk 3f99f2f1e5d87b469cb7eb2c232a20a199dc639d # timeout=10 -ha:////4BMX68NJF092/H4PjBSIA15v/9s1kcYkdHsyTRqzeAEuAAAAoh+LCAAAAAAAAP9tjTEOwjAQBM8BClpKHuFItIiK1krDC0x8GCfWnbEdkooX8TX+gCESFVvtrLSa5wtWKcKBo5UdUu8otU4GP9jS5Mixv3geZcdn2TIl9igbHBs2eJyx4YwwR1SwULBGaj0nRzbDRnX6rmuvydanHMu2V1A5c4MHCFXMWcf8hSnC9jqYxPTz/BXAFEIGsfuclm8zQVqFvQAAAA==[Pipeline] Start of Pipeline -ha:////4LjcTbThOpuI+rfO/IQ82QQYVZBEWWW1dfrUAKgsresTAAAAoh+LCAAAAAAAAP9tjTEOAiEURD9rLGwtPQSbaGmsbAmNJ0AWEZb8zwLrbuWJvJp3kLiJlZNMMm+a93rDOic4UbLcG+wdZu14DKOti0+U+lugiXu6ck2YKRguzSSpM+cFJRUDS1gDKwEbgzpQdmgLbIVXD9UGhba9lFS/o4DGdQM8gYlqLiqVL8wJdvexy4Q/z18BzLEA29ce4gfya1RxvAAAAA==[Pipeline] echo -[WARNING] label option is deprecated. To use a static pod template, use the 'inheritFrom' option. -ha:////4KuU9p3qKXCBQbucvjRgkwex7+7DF5IAXtJ7kS+xykB9AAAApR+LCAAAAAAAAP9tjUEKwjAURH8qXbh16SFSEHfiym3IxhPEJMa04f82SW1XnsireQejBVcODMwMDO/5gjpFOFJ0vLXYeUza8z6MriQ+UeyugSbe0oVrwkTBcmknScaeliopW1jEKlgJWFvUgZJHl2EjWnVXTVDomnOOZTsIqLwZ4AFMFHJWMX/LHGF7G00i/HH+AmDuM7Bd8f7zq9/WVBy+wAAAAA==[Pipeline] podTemplate -ha:////4F2zE0sn9HjRrH177OiYNqzz4Wost68SBTXok8ZUDV2uAAAApR+LCAAAAAAAAP9tjTEOwjAUQ3+KOrAycoh0gQkxsUZZOEFIQkgb/d8mKe3EibgadyBQiQlLlmxL1nu+oE4RjhQdby12HpP2vA+jK4lPFLtroIm3dOGaMFGwXNpJkrGnpUrKFhaxClYC1hZ1oOTRZdiIVt1VExS65pxj2Q4CKm8GeAAThZxVzN8yR9jeRpMIf5y/AJj7DGxXvP/86jc09154wAAAAA==[Pipeline] { -ha:////4HuR7a57jO5iIQbfsPqCJI//8axloLS0THsy1sJYny62AAAApR+LCAAAAAAAAP9tjTEOwjAUQ3+KOrAycoh0ggUxsUZZOEFIQkgb/d8mKe3EibgadyBQiQlLlmxL1nu+oE4RjhQdby12HpP2vA+jK4lPFLtroIm3dOGaMFGwXNpJkrGnpUrKFhaxClYC1hZ1oOTRZdiIVt1VExS65pxj2Q4CKm8GeAAThZxVzN8yR9jeRpMIf5y/AJj7DGxXvP/86jek7ggRwAAAAA==[Pipeline] node -Created Pod: kubernetes default/cassandra-mk8d2-ft4r0 -Agent ha:////4CgEb0VZ9b7e9hdsYehapOTgCz9ai3lJ67/512DD8SAnAAAAqx+LCAAAAAAAAP9b85aBtbiIQTGjNKU4P08vOT+vOD8nVc83PyU1x6OyILUoJzMv2y+/JJUBAhiZGBgqihhk0NSjKDWzXb3RdlLBUSYGJk8GtpzUvPSSDB8G5tKinBIGIZ+sxLJE/ZzEvHT94JKizLx0a6BxUmjGOUNodHsLgAzREgZ5/eT83ILSktQi/eTE4uLEvJSiRN3cbIsUI920EpMiAwCdWCi81AAAAA==cassandra-mk8d2-ft4r0 is provisioned from template cassandra-mk8d2 ---- -apiVersion: "v1" -kind: "Pod" -metadata: - annotations: - buildUrl: "http://jenkins-operator-http-example.default.svc.cluster.local:8080/job/k8s-e2e/2/" - runUrl: "job/k8s-e2e/2/" - labels: - jenkins: "slave" - jenkins/label-digest: "5f67e63ee7db1fcdb5d113eb6a080a25296a8bfa" - jenkins/label: "cassandra" - name: "cassandra-mk8d2-ft4r0" - namespace: "default" -spec: - containers: - - command: - - "/bin/sh" - - "-c" - - | - /usr/local/bin/jenkins-agent - env: - - name: "JENKINS_SECRET" - value: "********" - - name: "JENKINS_TUNNEL" - value: "jenkins-operator-slave-example.default.svc.cluster.local:50000" - - name: "JENKINS_AGENT_NAME" - value: "cassandra-mk8d2-ft4r0" - - name: "JENKINS_NAME" - value: "cassandra-mk8d2-ft4r0" - - name: "JENKINS_AGENT_WORKDIR" - value: "/home/jenkins/agent" - - name: "JENKINS_URL" - value: "http://jenkins-operator-http-example.default.svc.cluster.local:8080/" - image: "richamishra006/apache-k8s-agent:32" - name: "jnlp" - resources: - requests: - memory: "256Mi" - cpu: "100m" - tty: true - volumeMounts: - - mountPath: "/var/run/docker.sock" - name: "docker-socket" - - mountPath: "/tmp/k8s-e2e" - name: "cassandra-dir" - - mountPath: "/home/jenkins/agent" - name: "workspace-volume" - readOnly: false - //securityContext: - //privileged: true - initContainers: - - command: - - "sh" - - "-c" - - "chown 1000:1000 /var/run/docker.sock" - image: "alpine:latest" - imagePullPolicy: "Always" - name: "init-docker-socket" - securityContext: - runAsUser: 0 - volumeMounts: - - mountPath: "/var/run/docker.sock" - name: "docker-socket" - nodeSelector: - gke-node: "first" - restartPolicy: "Never" - volumes: - - hostPath: - path: "/home/jenkins/agent/workspace/k8s-e2e" - name: "cassandra-dir" - - emptyDir: - medium: "" - name: "workspace-volume" - - hostPath: - path: "/var/run/docker.sock" - name: "docker-socket" - -Running on ha:////4O1RCVcYAeRQrBC+T2GuewSqgXkbsXE9GXk6o07a8aU7AAAArx+LCAAAAAAAAP9b85aBtbiIQTGjNKU4P08vOT+vOD8nVc83PyU1x6OyILUoJzMv2y+/JJUBAhiZGBgqihhk0NSjKDWzXb3RdlLBUSYGJk8GtpzUvPSSDB8G5tKinBIGIZ+sxLJE/ZzEvHT94JKizLx0a6BxUmjGOUNodHsLgAzREgYV/eT83ILSktQi/eTE4uLEvJSiRFUjl9xsixQjIJ1WYlJkoA8Apo+AUtkAAAA=cassandra-mk8d2-ft4r0 in /home/jenkins/agent/workspace/k8s-e2e -ha:////4LKzCbSpWYC2h/32cwuzMWxZrKQDlrB1E6Mdc0K6fY7CAAAApR+LCAAAAAAAAP9tjTEOwjAUQ3+KOrAycoh0gwExsUZZOEFIQkgb/d8mKe3EibgadyBQiQlLlmxL1nu+oE4RjhQdby12HpP2vA+jK4lPFLtroIm3dOGaMFGwXNpJkrGnpUrKFhaxClYC1hZ1oOTRZdiIVt1VExS65pxj2Q4CKm8GeAAThZxVzN8yR9jeRpMIf5y/AJj7DGxXvP/86jcChmMxwAAAAA==[Pipeline] { -ha:////4EZHAkXmOElD5f3RcBlqzQlAVzu+7OoXzj6No4vDe8QVAAAApR+LCAAAAAAAAP9tjTEOwjAUQ3+KOrAycoh0BAkxsUZZOEFIQkgb/d8mKe3EibgadyBQiQlLlmxL1nu+oE4RjhQdby12HpP2vA+jK4lPFLtroIm3dOGaMFGwXNpJkrGnpUrKFhaxClYC1hZ1oOTRZdiIVt1VExS65pxj2Q4CKm8GeAAThZxVzN8yR9jeRpMIf5y/AJj7DGxXvP/86jfpX/cvwAAAAA==[Pipeline] stage -ha:////4Kw4k6Ey59Wb8IszQHBluVzBke8J8iutFMKq2lgg/RU8AAAApR+LCAAAAAAAAP9tjTEOwjAUQ3+KOrAycoh0BSEm1igLJwhJCGmj/9skpZ04EVfjDgQqMWHJkm3Jes8X1CnCkaLjrcXOY9Ke92F0JfGJYncNNPGWLlwTJgqWSztJMva0VEnZwiJWwUrA2qIOlDy6DBvRqrtqgkLXnHMs20FA5c0AD2CikLOK+VvmCNvbaBLhj/MXAHOfge2K959f/QbB16AVwAAAAA==[Pipeline] { (Declarative: Checkout SCM) -ha:////4KG430af7FjdkX9NwEYQ/lDmhG/SzOF069wnYqagxpyEAAAAoh+LCAAAAAAAAP9tjTEOwjAQBDdBFLSUPMKBEiEqWisNLzCJMU6su2BfSCpexNf4AxGRqNhqZ5p5vbFMEUeOTjWWWk+p8qoLvZueGji218CDaviiKqbEwarSDiXX9jRjyWIxL8ux0FhZqgInT06w1o15mCIYcsVZ4uQOGrmv73gi01NZTJQvjBGbW18npl/nbwBjJ8j2gny37T6VOYoyvQAAAA==[Pipeline] checkout -The recommended git tool is: NONE -No credentials specified -Cloning the remote Git repository -Cloning repository https://github.com/infracloudio/cassandra.git - > git init /home/jenkins/agent/workspace/k8s-e2e # timeout=10 -Fetching upstream changes from https://github.com/infracloudio/cassandra.git - > git --version # timeout=10 - > git --version # 'git version 2.30.2' - > git fetch --tags --force --progress -- https://github.com/infracloudio/cassandra.git +refs/heads/*:refs/remotes/origin/* # timeout=10 -Avoid second fetch -Checking out Revision 3d97537aa8470b6053d148e31513fd3e6fd5006a (refs/remotes/origin/infracloud/cassandra-5.0) -Commit message: "updated script" -ha:////4CsVqgXKVvxcqClcywmNfzfnGnlDnqadG0cQGwNqSgNZAAAAoh+LCAAAAAAAAP9tjbEOgjAURS8YB1dHP6KE0Rgn14bFL6hQa6F5D9uHMPlF/pr/IJHEyTvdc5bzemOdIo4cnWotdZ5S7VUfBjc/NXLsroFH1fJF1UyJg1WVHStu7GnBisViWZZjpbGxVAdOnpxgq1vzMEUw5IqzxNkdNHLf3PFEpueymChfmCJ2t6FJTL/O3wCmvhfkZSnI9h+IfpSRvQAAAA==[Pipeline] } -ha:////4E/+2se/Ew9D2hSPcZx4dLXiXItx+7gYTeSjKlAO3G7yAAAAox+LCAAAAAAAAP9tjTEOwjAQBDdBFLSUPMIRVEiIitZKwwtMYowT6y7YF5KKF/E1/kBEJCq22plmXm8sU8SRo1ONpdZTqrzqQu+mpwaO7TXwoBq+qIopcbCqtEPJtT3NWLJYzMtyLDRWlqrAyZMTrHVjHqYIhlxxlji5g0bu6zueyPRUFhPlC2PE5tbXienX+RvA2HWCfLsTZPsPzjQzob0AAAA=[Pipeline] // stage -ha:////4D8oyJuKBhje0Ff28063+J14fH2LI12K5F1YnQkW+JM0AAAApx+LCAAAAAAAAP9tjTEOwjAQBM9BKWgpeYQjREGBqGgtN7zAxMY4se6CfSGpeBFf4w8EIlGx1c5Kq3m+oMwJDpS8bBy2AXMdZBd7PzU5UGovkQbZ0FnWhJmik9oNmqw7zqiJHcwRBSwULB3WkXJAz7BSjbmbKhr01YnTtO0VFMHe4AFCTWY2ib8wJlhfe5sJf56/Ahg7BrFjKDbbz7F8AxnwXE7BAAAA[Pipeline] withEnv -ha:////4CEthWgxpy369I8Cz7vXppvIWpnNQzK7ZKCCA+wtolZEAAAApx+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycohUCDbE1DXKwglCE0La6P/yk9JOnIircQdaKjHhwbItWe/1hiIynIidaCy2HmPtRRd6NyUxELfXQINo6CJqwkjBCmUHRcZWS1WULCzKclhJWFusA0WPLsFGNvqhy6DRlefE03aUkHtzhydkciInzelbRobtrTeR8Mf5C4CxS5Dv9rMd5mfxAbNWnxXCAAAA[Pipeline] { -ha:////4P6/0viON471BvtLlJIm34Jb0n6Blg7Ip4psD55erdw8AAAApB+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOIiJKgQVVrLDS8wsTFOrDtjOyQVL+Jr/IFAJCq2WO1sM88XLFOEI0eLraHOUWocBt/baeHAsbt4HrDlMzZMib1BaQbJ2tQzSs4G5hQlLASsDDWekyObYS1adVeVV2SrU47TdxBQOn2DBxRiMmcV8xfGCJtrrxPTz/NXAGPIUG53n9qHN8W7Eii+AAAA[Pipeline] sh - > git config remote.origin.url https://github.com/infracloudio/cassandra.git # timeout=10 - > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 - > git rev-parse refs/remotes/origin/infracloud/cassandra-5.0^{commit} # timeout=10 - > git config core.sparsecheckout # timeout=10 - > git checkout -f 3d97537aa8470b6053d148e31513fd3e6fd5006a # timeout=10 -+ grep property\s*name="java.default" build.xml -+ sed -ne s/.*value="\([^"]*\)".*/\1/p -ha:////4CfWi4U2grKa2/cnc8m1JZQc6AhcT+O0TOEv5V0hprpJAAAApR+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOIiJESDqNJabniBiY1xYt0Z2yGpeBFf4w8EIlGxxWpnm3m+YJkiHDlabA11jlLjMPjeTgsHjt3F84Atn7FhSuwNSjNI1qaeUXI2MKcoYSFgZajxnBzZDGvRqruqvCJbnXKcvoOA0ukbPKAQkzmrmL8wRthce52Yfp6/AhhDhnK7+9Q+vAEG6D8DvgAAAA==[Pipeline] sh -+ grep property\s*name="java.supported" build.xml -+ sed -ne s/.*value="\([^"]*\)".*/\1/p -ha:////4HSsnAdVhrQhenUwVWivQV0Ad2SWkNoTloDdwCajN7/kAAAAqB+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycohUSEgMiKlrlIUThCaEtNH/5SelnTgRV+MOtFRiwoNlW7Le6w1FZDgRO9FYbD3G2osu9G5KYiBur4EG0dBF1ISRghXKDoqMrZaqKFlYlOWwkrC2WAeKHl2CjWz0Q5dBoyvPiaftKCH35g5PyORETprTt4wM21tvIuGP8xcAY5cg3+1nO8zP4gOeMTC6wgAAAA==[Pipeline] withEnv -ha:////4I3o/TSP5Y3Lo/EsGR7Pewx/VGmoxQAbRihU6VZFy26/AAAApx+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycohUTCAhpq5RFk4QmhDSRv+Xn5R24kRcjTvQUokJD5ZtyXqvNxSR4UTsRGOx9RhrL7rQuymJgbi9BhpEQxdRE0YKVig7KDK2WqqiZGFRlsNKwtpiHSh6dAk2stEPXQaNrjwnnrajhNybOzwhkxM5aU7fMjJsb72JhD/OXwCMXYJ8t5/tMD+LD0rlhNLCAAAA[Pipeline] { -ha:////4EpS7s+I8RwjpdRSmW7jZaUjVPfmwAPYSl1hQ7uH0CMMAAAApx+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycohUbCDE1DXKwglCE0La6P/yk9JOnIircQdaKjHhwbItWe/1hiIynIidaCy2HmPtRRd6NyUxELfXQINo6CJqwkjBCmUHRcZWS1WULCzKclhJWFusA0WPLsFGNvqhy6DRlefE03aUkHtzhydkciInzelbRobtrTeR8Mf5C4CxS5Dv9rMd5mfxASnCIIrCAAAA[Pipeline] timestamps -ha:////4H7kKCR36PRSQnJpHJ+ReM4S438/oaN2U1lOF4csu7FUAAAApx+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycogU2BDqxBp14QShCSFp9H9JUtKJE3E17kCgEhMeLNuS9Z4vqIKHhrxmVmFvMHSGDW7UObFEvr84SszSmXWEgZxirUotSXWca0tRwayihAWHpcLOUTCoI6y4FXdRO4G6PkWftwOH0sgbPKDgmRyFj98yeVhfRxkIf5y/AJiGCOV2n223+TyrN7xWSV3CAAAA[Pipeline] { -ha:////4Al6BFFvrcg3PWlCNBaclN7kM0yLDOPLwM5cf68hbtp1AAAAph+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycogUWBFT1ygLJwhNCGmj/8tPSjtxIq7GHWipxIQHy7ZkvdcbishwInaisdh6jLUXXejdlMRA3F4DDaKhi6gJIwUrlB0UGVstVVGysCjLYSVhbbEOFD26BBvZ6Icug0ZXnhNP21FC7s0dnpDJiZw0p28ZGba33kTCH+cvAMYuQX7Yzbafn8UHbGnGmsIAAAA=[Pipeline] stage -ha:////4A/v/87J8YPxOjaJOMyi3Eohi5ws4dsIV0xYf/cIlrmxAAAAph+LCAAAAAAAAP9tjTEOwjAUQ3+DOrAycohUdEVMrFEXThCaEJJG/7dJSjpxIq7GHWipxIQHy7ZkvdcbyhjgRMFwp7GzGFvLez+aOfFMobt5ytzRlbeEkbzmjc4NKX1ea0NJw6qCwUbAVmPrKVo0CXbCyYesvERTXVKYt6MAZtUATyjETE4ypG+ZAuzvo4qEP85fAEx9AlYfFquXZ/kBAsTc3cIAAAA=[Pipeline] { (Init) -ha:////4MnlRy7b1yhEf6OXeO4KGf6p/eoA77te+zsXKhtUBv68AAAAph+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycohUKiNiYo2ycILQhJA0+r9NUtKJE3E17kBLJSY8WLYl673eUMUAJwqGOY2dxdha1vvRzIllCt3NU2aOrqwljOQ1EzoLUvq8VkFJw6qihA2HrcbWU7RoEuy4kw9Ze4mmvqQwb0cOpVUDPKHgMznJkL5lCrC/jyoS/jh/ATD1CcqmWeywPKsPpnFij8IAAAA=[Pipeline] container -ha:////4LKw4+ND9Lca76p/rC07UfobnbFqK9vD/ZBzphUkhdAqAAAApx+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycohUAjbE1DXKwglCE0La6P/yk9JOnIircQdaKjHhwbItWe/1hiIynIidaCy2HmPtRRd6NyUxELfXQINo6CJqwkjBCmUHRcZWS1WULCzKclhJWFusA0WPLsFGNvqhy6DRlefE03aUkHtzhydkciInzelbRobtrTeR8Mf5C4CxS5Dv9rMd5mfxAd6e6VPCAAAA[Pipeline] { -ha:////4E/SLk8P+JGy0sM24QgtomQ52lDQlXxJwGQYPk33fpnDAAAApx+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycohUQjAhpq5RFk4QmhDSRv+Xn5R24kRcjTvQUokJD5ZtyXqvNxSR4UTsRGOx9RhrL7rQuymJgbi9BhpEQxdRE0YKVig7KDK2WqqiZGFRlsNKwtpiHSh6dAk2stEPXQaNrjwnnrajhNybOzwhkxM5aU7fMjJsb72JhD/OXwCMXYJ8t5/tMD+LD/hYjrHCAAAA[Pipeline] script -ha:////4Ap3pYzAE7qcIN30Y3umLO7v6fODU4W6xujZiQBVuDNlAAAAqB+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycohUQoIFMXWNsnCC0ISQNvq//KS0EyfiatyBlkpMeLBsS9Z7vaGIDCdiJxqLrcdYe9GF3k1JDMTtNdAgGrqImjBSsELZQZGx1VIVJQuLshxWEtYW60DRo0uwkY1+6DJodOU58bQdJeTe3OEJmZzISXP6lpFhe+tNJPxx/gJg7BLku/1sh/lZfACW9ZT2wgAAAA==[Pipeline] { -ha:////4JDXvtbyTwvJD/bcnoVF2g6cWRrFAX5dk7ITY/Bp2h7vAAAApR+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOIiUUCBqNJabniBiY1xYt0Z2yGpeBFf4w8EIlGxxWpnm3m+YJkiHDlabA11jlLjMPjeTgsHjt3F84Atn7FhSuwNSjNI1qaeUXI2MKcoYSFgZajxnBzZDGvRqruqvCJbnXKcvoOA0ukbPKAQkzmrmL8wRthce52Yfp6/AhhDyFBu95/avQFqe0n4vgAAAA==[Pipeline] } -ha:////4M+oKknDqqVamXwAqHq0nrWHZYobAYnKWIc2HJORN276AAAApR+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOIiISEhIaq0lhteYGJjnFh3xnZIKl7E1/gDgUhUbLHa2WaeL1imCEeOFltDnaPUOAy+t9PCgWN38Txgy2dsmBJ7g9IMkrWpZ5ScDcwpSlgIWBlqPCdHNsNatOquKq/IVqccp+8goHT6Bg8oxGTOKuYvjBE2114npp/nrwDGEDKU2/2ndm8FmBaQvgAAAA==[Pipeline] // script -ha:////4AObZttKbl/IskzMqErC0UMKHphDpTywlSb9zikMoRe1AAAApR+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOIiIRqEqNJabniBiY1xYt0Z2yGpeBFf4w8EIlGxxWpnm3m+YJkiHDlabA11jlLjMPjeTgsHjt3F84Atn7FhSuwNSjNI1qaeUXI2MKcoYSFgZajxnBzZDGvRqruqvCJbnXKcvoOA0ukbPKAQkzmrmL8wRthce52Yfp6/AhhDhnK7+9Q+vAFzTW4IvgAAAA==[Pipeline] sh -[2023-10-11T08:05:59.228Z] + echo stage init -[2023-10-11T08:05:59.229Z] stage init -ha:////4AxFb7NLK55N7DIZMli55wIFdWSwrIT1GLQQD/EQYI9VAAAApB+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOKCgA6lorXc8AKTGOPEugu2g1PxIr7GH7CIRMUWq51t5vWGZfBQszfYaeothcbi4EaTFyb2/dVxwo4v2DAFdhqlTpJbfZpRctQwpyhhIWClqXEcLJkIa9Gph6qcIlOdo8/fUUBp2zs8oRDZHJWPX5g8bG5jG5h+nr8CmIYhQrnf5todPkohNa2+AAAA[Pipeline] } -ha:////4FkEqoX3bVg6QxnSy40C+HyKqyp95XJwgzYSRPWquJxOAAAApB+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOIiSImo0lppeIGJjXFi3RnbIal4EV/jD1hEomKL1c4283rDOgY4cTDYaxosxc6id6PJCycOw9XxhD1fsGOK7DS2empZ6WbBlpOGJUUJKwEbTZ3jaMkk2IpePmTlJJnqnEL+jgJKq+7whEJkc5IhfWEOsLuNKjL9PH8FMHufoKz3uQ71B0xnDfi+AAAA[Pipeline] // container -ha:////4CPaY/X+prCrgKPHwxYe96pmn3YVwWvZto8quJK28z8rAAAApB+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPMKRQomoaC03vMAkxtix7ox9Ial4EV/jD1hEomKL1c4283rDOic4UrLCGxwc5s6JGEZblpgoDddAk/B0ER1hpmCEMpOi3pwWVMQGllQ1rCRsDHaBskPLsJVeP3QTNNrmzKl8Bwm16+/whEoWM+vEX5gT7G5jnwl/nr8CmGNkqPdtqbb9AHQlngm+AAAA[Pipeline] } -ha:////4PSPGy0fAV4C/CVS5dFBC+cdscyB9RAzIFNPsBiuIsfaAAAApB+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOIiSImo0lppeIGJjXFi3RnbIal4EV/jD1hEomKL1c4283rDOgY4cTDYaxosxc6id6PJCycOw9XxhD1fsGOK7DS2empZ6WbBlpOGJUUJKwEbTZ3jaMkk2IpePmTlJJnqnEL+jgJKq+7whEJkc5IhfWEOsLuNKjL9PH8FMHufoKzrXIf9B2uny1u+AAAA[Pipeline] // stage -ha:////4H5CDftHIo1tYYgW2mFFBk9uY16pbxq8wRClFKHH/te/AAAApx+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycogUARvqxBp14QShCSFp9H9JUtKJE3E17kCgEhMeLNuS9Z4vqIKHhrxmVmFvMHSGDW7UObFEvr84SszSmXWEgZxirUotSXWca0tRwayihAWHpcLOUTCoI6y4FXdRO4G6PkWftwOH0sgbPKDgmRyFj98yeVhfRxkIf5y/AJiGCOV2k223/zyrN2vzfGzCAAAA[Pipeline] stage -ha:////4A3joXVcpEp7Cc+kTNyDyP3SrZza+WbK/1oTltOAuvrDAAAApx+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycoh0ACbE1DXKwglCE0La6P/yk9JOnIircQdaKjHhwbItWe/1hiIynIidaCy2HmPtRRd6NyUxELfXQINo6CJqwkjBCmUHRcZWS1WULCzKclhJWFusA0WPLsFGNvqhy6DRlefE03aUkHtzhydkciInzelbRobtrTeR8Mf5C4CxS5Dv9rMd5mfxASMfXIzCAAAA[Pipeline] { (Builds) -ha:////4KNGvN0UjLOHUXU7xVlwcrUitEYxVPE7s1G6IcLX86CSAAAApx+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycoh0QLAgpq5RFk4QmhDSRv+Xn5R24kRcjTvQUokJD5ZtyXqvNxSR4UTsRGOx9RhrL7rQuymJgbi9BhpEQxdRE0YKVig7KDK2WqqiZGFRlsNKwtpiHSh6dAk2stEPXQaNrjwnnrajhNybOzwhkxM5aU7fMjJsb72JhD/OXwCMXYJ8t5/tMD+LD02yRsvCAAAA[Pipeline] parallel -ha:////4A0Rzd1kUstB8tgYZjvBtJxuI2op/9OGeHJ7b7oRh6N0AAAAqB+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycoh0QIIBMXWNsnCC0ISQNvq//KS0EyfiatyBlkpMeLBsS9Z7vaGIDCdiJxqLrcdYe9GF3k1JDMTtNdAgGrqImjBSsELZQZGx1VIVJQuLshxWEtYW60DRo0uwkY1+6DJodOU58bQdJeTe3OEJmZzISXP6lpFhe+tNJPxx/gJg7BLku/1sh/lZfADpB/iZwgAAAA==[Pipeline] { (Branch: artifacts) -ha:////4B4VV1NzAPPnOqkhuXotokl4LtN4SVnF4D+ORk4zlkCxAAAAqB+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycoh0YAAJMXWNsnCC0ISQNvq//KS0EyfiatyBlkpMeLBsS9Z7vaGIDCdiJxqLrcdYe9GF3k1JDMTtNdAgGrqImjBSsELZQZGx1VIVJQuLshxWEtYW60DRo0uwkY1+6DJodOU58bQdJeTe3OEJmZzISXP6lpFhe+tNJPxx/gJg7BLku/1sh/lZfAD8aiCpwgAAAA==[Pipeline] stage -ha:////4GVovZPvohj54OO+9e+qPw6pGS2RlY9zFmAcTVCGWpf3AAAApx+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycoh0YAEhpq5RFk4QmhDSRv+Xn5R24kRcjTvQUokJD5ZtyXqvNxSR4UTsRGOx9RhrL7rQuymJgbi9BhpEQxdRE0YKVig7KDK2WqqiZGFRlsNKwtpiHSh6dAk2stEPXQaNrjwnnrajhNybOzwhkxM5aU7fMjJsb72JhD/OXwCMXYJ8t5/tMD+LD59NhPHCAAAA[Pipeline] { (artifacts) -ha:////4JILzIAgTvhqR8L6KmVNlrPbsS+TCLSIa2mI1RTUBz6rAAAApR+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOKCBA1CqWgtN7zAJMY4se6C7eBUvIiv8QcsIlGxxWpnm3m9YRk81OwNdpp6S6GxOLjR5IWJfX91nLDjCzZMgZ1GqZPkVp9mlBw1zClKWAhYaWocB0smwlp06qEqp8hU5+jzdxRQ2vYOTyhENkfl4xcmD5vb2Aamn+evAKYhQrk75Npvhw/W61xwvgAAAA==[Pipeline] sh -[2023-10-11T08:05:59.806Z] + echo starting artifacts stage -[2023-10-11T08:05:59.806Z] starting artifacts stage -ha:////4Nhf8TiKHMdM5tJ9MQx8Kevort2aoAjUqLszQfSY+lxOAAAAqB+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycohUCBaEOrFGXThBaEJIGv1fkpR04kRcjTsQqMSEB8u2ZL3nC6rgoSGvmVXYGwydYYMbdU4ske8vjhKzdGYdYSCnWKtSS1Id59pSVDCrKGHBYamwcxQM6ggrbsVd1E6grk/R5+3AoTTyBg8oeCZH4eO3TB7W11EGwh/nLwCmIUK53WfbbT7P6g28Lv4ZwgAAAA==[Pipeline] parallel -ha:////4MagaRgqr0z9cF22B4n4LeFWLFLa8t5C7uYa7Ubb4ze6AAAApx+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycohUIDbE1DXKwglCE0La6P/yk9JOnIircQdaKjHhwbItWe/1hiIynIidaCy2HmPtRRd6NyUxELfXQINo6CJqwkjBCmUHRcZWS1WULCzKclhJWFusA0WPLsFGNvqhy6DRlefE03aUkHtzhydkciInzelbRobtrTeR8Mf5C4CxS5AfdrPt52fxAdhUMVHCAAAA[Pipeline] { (Branch: cassandra) -ha:////4JLt7NawpGeQ4un1Luq4I6/YUC4J+RNlIwonnLMPDrd7AAAApx+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycohUAjbE1DXKwglCE0La6P/yk9JOnIircQdaKjHhwbItWe/1hiIynIidaCy2HmPtRRd6NyUxELfXQINo6CJqwkjBCmUHRcZWS1WULCzKclhJWFusA0WPLsFGNvqhy6DRlefE03aUkHtzhydkciInzelbRobtrTeR8Mf5C4CxS5AfdrPt52fxAXzhjwPCAAAA[Pipeline] parallel -ha:////4FKZqvDTHSRbdYzmSjL9r6PTINCvLVj4lYqcz+o+SGPiAAAApx+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycoh0ACbE1DXKwglCE0La6P/yk9JOnIircQdaKjHhwbItWe/1hiIynIidaCy2HmPtRRd6NyUxELfXQINo6CJqwkjBCmUHRcZWS1WULCzKclhJWFusA0WPLsFGNvqhy6DRlefE03aUkHtzhydkciInzelbRobtrTeR8Mf5C4CxS5Dvd7Md5mfxAaHdWBTCAAAA[Pipeline] { (Branch: 11) -ha:////4J7M9T0ir71uXlNze3av7zHpQk+f5/GGWlldMEYIzFFgAAAApx+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycoh0ALEgpq5RFk4QmhDSRv+Xn5R24kRcjTvQUokJD5ZtyXqvNxSR4UTsRGOx9RhrL7rQuymJgbi9BhpEQxdRE0YKVig7KDK2WqqiZGFRlsNKwtpiHSh6dAk2stEPXQaNrjwnnrajhNybOzwhkxM5aU7fMjJsb72JhD/OXwCMXYJ8v5vtMD+LDw+vzJLCAAAA[Pipeline] { (Branch: 17) -ha:////4F283A7XZ37tem3+HQf3GM9Bl5CUzEczp+fwtgUJ8oVeAAAApx+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycoh0ATEgpq5RFk4QmhDSRv+Xn5R24kRcjTvQUokJD5ZtyXqvNxSR4UTsRGOx9RhrL7rQuymJgbi9BhpEQxdRE0YKVig7KDK2WqqiZGFRlsNKwtpiHSh6dAk2stEPXQaNrjwnnrajhNybOzwhkxM5aU7fMjJsb72JhD/OXwCMXYJ8t5/tMD+LD+m2JbHCAAAA[Pipeline] node -ha:////4E6bGZGjHJptV6Zmy+FGoE34hf3lrSfLb+geCmWS/e0BAAAAqB+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycoh0QQgJMXWNsnCC0ISQNvq//KS0EyfiatyBlkpMeLBsS9Z7vaGIDCdiJxqLrcdYe9GF3k1JDMTtNdAgGrqImjBSsELZQZGx1VIVJQuLshxWEtYW60DRo0uwkY1+6DJodOU58bQdJeTe3OEJmZzISXP6lpFhe+tNJPxx/gJg7BLku/1sh/lZfAA9YpHZwgAAAA==[Pipeline] node -Created Pod: kubernetes default/cassandra-mk8d2-btczb -Created Pod: kubernetes default/cassandra-mk8d2-5vk0k -[2023-10-11T08:06:08.384Z] Agent ha:////4Gy+24YQpjdxUu97hPRfIM18sjtZ0xmppOSyC5Oe2uZQAAAAqx+LCAAAAAAAAP9b85aBtbiIQTGjNKU4P08vOT+vOD8nVc83PyU1x6OyILUoJzMv2y+/JJUBAhiZGBgqihhk0NSjKDWzXb3RdlLBUSYGJk8GtpzUvPSSDB8G5tKinBIGIZ+sxLJE/ZzEvHT94JKizLx0a6BxUmjGOUNodHsLgAzREgZ5/eT83ILSktQi/eTE4uLEvJSiRN3cbIsUI92kkuSqJAC4fOdt1AAAAA==cassandra-mk8d2-btczb is provisioned from template cassandra-mk8d2 -[2023-10-11T08:06:08.395Z] --- -[2023-10-11T08:06:08.396Z] apiVersion: "v1" -[2023-10-11T08:06:08.396Z] kind: "Pod" -[2023-10-11T08:06:08.396Z] metadata: -[2023-10-11T08:06:08.396Z] annotations: -[2023-10-11T08:06:08.396Z] buildUrl: "http://jenkins-operator-http-example.default.svc.cluster.local:8080/job/k8s-e2e/2/" -[2023-10-11T08:06:08.396Z] runUrl: "job/k8s-e2e/2/" -[2023-10-11T08:06:08.396Z] labels: -[2023-10-11T08:06:08.396Z] jenkins: "slave" -[2023-10-11T08:06:08.396Z] jenkins/label-digest: "5f67e63ee7db1fcdb5d113eb6a080a25296a8bfa" -[2023-10-11T08:06:08.396Z] jenkins/label: "cassandra" -[2023-10-11T08:06:08.396Z] name: "cassandra-mk8d2-btczb" -[2023-10-11T08:06:08.396Z] namespace: "default" -[2023-10-11T08:06:08.396Z] spec: -[2023-10-11T08:06:08.396Z] containers: -[2023-10-11T08:06:08.396Z] - command: -[2023-10-11T08:06:08.396Z] - "/bin/sh" -[2023-10-11T08:06:08.396Z] - "-c" -[2023-10-11T08:06:08.396Z] - | -[2023-10-11T08:06:08.396Z] /usr/local/bin/jenkins-agent -[2023-10-11T08:06:08.396Z] env: -[2023-10-11T08:06:08.396Z] - name: "JENKINS_SECRET" -[2023-10-11T08:06:08.396Z] value: "********" -[2023-10-11T08:06:08.396Z] - name: "JENKINS_TUNNEL" -[2023-10-11T08:06:08.396Z] value: "jenkins-operator-slave-example.default.svc.cluster.local:50000" -[2023-10-11T08:06:08.396Z] - name: "JENKINS_AGENT_NAME" -[2023-10-11T08:06:08.396Z] value: "cassandra-mk8d2-btczb" -[2023-10-11T08:06:08.396Z] - name: "JENKINS_NAME" -[2023-10-11T08:06:08.396Z] value: "cassandra-mk8d2-btczb" -[2023-10-11T08:06:08.396Z] - name: "JENKINS_AGENT_WORKDIR" -[2023-10-11T08:06:08.396Z] value: "/home/jenkins/agent" -[2023-10-11T08:06:08.396Z] - name: "JENKINS_URL" -[2023-10-11T08:06:08.396Z] value: "http://jenkins-operator-http-example.default.svc.cluster.local:8080/" -[2023-10-11T08:06:08.396Z] image: "richamishra006/apache-k8s-agent:32" -[2023-10-11T08:06:08.396Z] name: "jnlp" -[2023-10-11T08:06:08.396Z] resources: -[2023-10-11T08:06:08.396Z] requests: -[2023-10-11T08:06:08.396Z] memory: "256Mi" -[2023-10-11T08:06:08.396Z] cpu: "100m" -[2023-10-11T08:06:08.396Z] tty: true -[2023-10-11T08:06:08.396Z] volumeMounts: -[2023-10-11T08:06:08.396Z] - mountPath: "/var/run/docker.sock" -[2023-10-11T08:06:08.396Z] name: "docker-socket" -[2023-10-11T08:06:08.396Z] - mountPath: "/tmp/k8s-e2e" -[2023-10-11T08:06:08.396Z] name: "cassandra-dir" -[2023-10-11T08:06:08.396Z] - mountPath: "/home/jenkins/agent" -[2023-10-11T08:06:08.396Z] name: "workspace-volume" -[2023-10-11T08:06:08.396Z] readOnly: false -[2023-10-11T08:06:08.396Z] //securityContext: -[2023-10-11T08:06:08.396Z] //privileged: true -[2023-10-11T08:06:08.396Z] initContainers: -[2023-10-11T08:06:08.396Z] - command: -[2023-10-11T08:06:08.396Z] - "sh" -[2023-10-11T08:06:08.396Z] - "-c" -[2023-10-11T08:06:08.396Z] - "chown 1000:1000 /var/run/docker.sock" -[2023-10-11T08:06:08.396Z] image: "alpine:latest" -[2023-10-11T08:06:08.396Z] imagePullPolicy: "Always" -[2023-10-11T08:06:08.396Z] name: "init-docker-socket" -[2023-10-11T08:06:08.397Z] securityContext: -[2023-10-11T08:06:08.397Z] runAsUser: 0 -[2023-10-11T08:06:08.397Z] volumeMounts: -[2023-10-11T08:06:08.397Z] - mountPath: "/var/run/docker.sock" -[2023-10-11T08:06:08.397Z] name: "docker-socket" -[2023-10-11T08:06:08.397Z] nodeSelector: -[2023-10-11T08:06:08.397Z] gke-node: "first" -[2023-10-11T08:06:08.397Z] restartPolicy: "Never" -[2023-10-11T08:06:08.397Z] volumes: -[2023-10-11T08:06:08.397Z] - hostPath: -[2023-10-11T08:06:08.397Z] path: "/home/jenkins/agent/workspace/k8s-e2e" -[2023-10-11T08:06:08.397Z] name: "cassandra-dir" -[2023-10-11T08:06:08.397Z] - emptyDir: -[2023-10-11T08:06:08.397Z] medium: "" -[2023-10-11T08:06:08.397Z] name: "workspace-volume" -[2023-10-11T08:06:08.397Z] - hostPath: -[2023-10-11T08:06:08.397Z] path: "/var/run/docker.sock" -[2023-10-11T08:06:08.397Z] name: "docker-socket" -[2023-10-11T08:06:08.397Z] -[2023-10-11T08:06:08.405Z] Agent ha:////4FCVRQqXsUUj8njql9W8OedpyI03uFl/Qgu95E/WQ2/0AAAAqx+LCAAAAAAAAP9b85aBtbiIQTGjNKU4P08vOT+vOD8nVc83PyU1x6OyILUoJzMv2y+/JJUBAhiZGBgqihhk0NSjKDWzXb3RdlLBUSYGJk8GtpzUvPSSDB8G5tKinBIGIZ+sxLJE/ZzEvHT94JKizLx0a6BxUmjGOUNodHsLgAzREgZ5/eT83ILSktQi/eTE4uLEvJSiRN3cbIsUI13TsmyDbAB76YQw1AAAAA==cassandra-mk8d2-5vk0k is provisioned from template cassandra-mk8d2 -[2023-10-11T08:06:08.410Z] --- -[2023-10-11T08:06:08.410Z] apiVersion: "v1" -[2023-10-11T08:06:08.410Z] kind: "Pod" -[2023-10-11T08:06:08.410Z] metadata: -[2023-10-11T08:06:08.410Z] annotations: -[2023-10-11T08:06:08.410Z] buildUrl: "http://jenkins-operator-http-example.default.svc.cluster.local:8080/job/k8s-e2e/2/" -[2023-10-11T08:06:08.410Z] runUrl: "job/k8s-e2e/2/" -[2023-10-11T08:06:08.410Z] labels: -[2023-10-11T08:06:08.410Z] jenkins: "slave" -[2023-10-11T08:06:08.410Z] jenkins/label-digest: "5f67e63ee7db1fcdb5d113eb6a080a25296a8bfa" -[2023-10-11T08:06:08.410Z] jenkins/label: "cassandra" -[2023-10-11T08:06:08.410Z] name: "cassandra-mk8d2-5vk0k" -[2023-10-11T08:06:08.410Z] namespace: "default" -[2023-10-11T08:06:08.410Z] spec: -[2023-10-11T08:06:08.410Z] containers: -[2023-10-11T08:06:08.410Z] - command: -[2023-10-11T08:06:08.410Z] - "/bin/sh" -[2023-10-11T08:06:08.411Z] - "-c" -[2023-10-11T08:06:08.411Z] - | -[2023-10-11T08:06:08.411Z] /usr/local/bin/jenkins-agent -[2023-10-11T08:06:08.411Z] env: -[2023-10-11T08:06:08.411Z] - name: "JENKINS_SECRET" -[2023-10-11T08:06:08.411Z] value: "********" -[2023-10-11T08:06:08.411Z] - name: "JENKINS_TUNNEL" -[2023-10-11T08:06:08.411Z] value: "jenkins-operator-slave-example.default.svc.cluster.local:50000" -[2023-10-11T08:06:08.411Z] - name: "JENKINS_AGENT_NAME" -[2023-10-11T08:06:08.411Z] value: "cassandra-mk8d2-5vk0k" -[2023-10-11T08:06:08.411Z] - name: "JENKINS_NAME" -[2023-10-11T08:06:08.411Z] value: "cassandra-mk8d2-5vk0k" -[2023-10-11T08:06:08.411Z] - name: "JENKINS_AGENT_WORKDIR" -[2023-10-11T08:06:08.411Z] value: "/home/jenkins/agent" -[2023-10-11T08:06:08.411Z] - name: "JENKINS_URL" -[2023-10-11T08:06:08.411Z] value: "http://jenkins-operator-http-example.default.svc.cluster.local:8080/" -[2023-10-11T08:06:08.411Z] image: "richamishra006/apache-k8s-agent:32" -[2023-10-11T08:06:08.411Z] name: "jnlp" -[2023-10-11T08:06:08.411Z] resources: -[2023-10-11T08:06:08.411Z] requests: -[2023-10-11T08:06:08.411Z] memory: "256Mi" -[2023-10-11T08:06:08.411Z] cpu: "100m" -[2023-10-11T08:06:08.411Z] tty: true -[2023-10-11T08:06:08.411Z] volumeMounts: -[2023-10-11T08:06:08.411Z] - mountPath: "/var/run/docker.sock" -[2023-10-11T08:06:08.411Z] name: "docker-socket" -[2023-10-11T08:06:08.411Z] - mountPath: "/tmp/k8s-e2e" -[2023-10-11T08:06:08.411Z] name: "cassandra-dir" -[2023-10-11T08:06:08.411Z] - mountPath: "/home/jenkins/agent" -[2023-10-11T08:06:08.411Z] name: "workspace-volume" -[2023-10-11T08:06:08.411Z] readOnly: false -[2023-10-11T08:06:08.411Z] //securityContext: -[2023-10-11T08:06:08.411Z] //privileged: true -[2023-10-11T08:06:08.411Z] initContainers: -[2023-10-11T08:06:08.411Z] - command: -[2023-10-11T08:06:08.411Z] - "sh" -[2023-10-11T08:06:08.411Z] - "-c" -[2023-10-11T08:06:08.411Z] - "chown 1000:1000 /var/run/docker.sock" -[2023-10-11T08:06:08.411Z] image: "alpine:latest" -[2023-10-11T08:06:08.411Z] imagePullPolicy: "Always" -[2023-10-11T08:06:08.411Z] name: "init-docker-socket" -[2023-10-11T08:06:08.411Z] securityContext: -[2023-10-11T08:06:08.411Z] runAsUser: 0 -[2023-10-11T08:06:08.411Z] volumeMounts: -[2023-10-11T08:06:08.411Z] - mountPath: "/var/run/docker.sock" -[2023-10-11T08:06:08.411Z] name: "docker-socket" -[2023-10-11T08:06:08.411Z] nodeSelector: -[2023-10-11T08:06:08.411Z] gke-node: "first" -[2023-10-11T08:06:08.411Z] restartPolicy: "Never" -[2023-10-11T08:06:08.411Z] volumes: -[2023-10-11T08:06:08.411Z] - hostPath: -[2023-10-11T08:06:08.411Z] path: "/home/jenkins/agent/workspace/k8s-e2e" -[2023-10-11T08:06:08.411Z] name: "cassandra-dir" -[2023-10-11T08:06:08.411Z] - emptyDir: -[2023-10-11T08:06:08.411Z] medium: "" -[2023-10-11T08:06:08.411Z] name: "workspace-volume" -[2023-10-11T08:06:08.411Z] - hostPath: -[2023-10-11T08:06:08.411Z] path: "/var/run/docker.sock" -[2023-10-11T08:06:08.411Z] name: "docker-socket" -[2023-10-11T08:06:08.411Z] -[2023-10-11T08:06:08.523Z] Running on ha:////4Ng4aFjPhuc3BIHM9PBPuQQzMb+65AXDZIRREGDaoF+PAAAArx+LCAAAAAAAAP9b85aBtbiIQTGjNKU4P08vOT+vOD8nVc83PyU1x6OyILUoJzMv2y+/JJUBAhiZGBgqihhk0NSjKDWzXb3RdlLBUSYGJk8GtpzUvPSSDB8G5tKinBIGIZ+sxLJE/ZzEvHT94JKizLx0a6BxUmjGOUNodHsLgAzREgYV/eT83ILSktQi/eTE4uLEvJSiRFUjl9xsixQjIG1alm2QrQ8AWmRlG9kAAAA=cassandra-mk8d2-5vk0k in /home/jenkins/agent/workspace/k8s-e2e -ha:////4I0oD8uhh5i6r8Xvibm707E2e6Qvd3KfGqYCv+aiVQeCAAAApx+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycoh0YQAhpq5RFk4QmhDSRv+Xn5R24kRcjTvQUokJD5ZtyXqvNxSR4UTsRGOx9RhrL7rQuymJgbi9BhpEQxdRE0YKVig7KDK2WqqiZGFRlsNKwtpiHSh6dAk2stEPXQaNrjwnnrajhNybOzwhkxM5aU7fMjJsb72JhD/OXwCMXYJ8t5/tMD+LD56au0DCAAAA[Pipeline] { -ha:////4D3oNMQo9FHGzZYQGcHOVQ0dEFGgEbmUOOt9mhhTk0iHAAAApR+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOJCAQVCqWgtN7zAJMY4se6C7eBUvIiv8QcsIlGxxWpnm3m9YRk81OwNdpp6S6GxOLjR5IWJfX91nLDjCzZMgZ1GqZPkVp9mlBw1zClKWAhYaWocB0smwlp06qEqp8hU5+jzdxRQ2vYOTyhENkfl4xcmD5vb2Aamn+evAKYhQrk75Npvhw/4iFt7vgAAAA==[Pipeline] echo -[2023-10-11T08:06:08.644Z] build_script: .build/docker/_docker_run.sh bullseye-build.docker build-jars.sh -ha:////4LbacmxfWAli8ktjEOtIakJ/SZ9W1UotHedx4u+amIcXAAAAph+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOIiJCgQSkVrueEFJjHGiXUXbAen4kV8jT9gEYmKLVY728zrDcvgoWZvsNPUWwqNxcGNJi9M7Pur44QdX7BhCuw0Sp0kt/o0o+SoYU5RwkLASlPjOFgyEdaiUw9VOUWmOkefv6OA0rZ3eEIhsjkqH78wedjcxjYw/Tx/BTANEcrdIdd+O3wAublAYr4AAAA=[Pipeline] sh -[2023-10-11T08:06:08.777Z] Running on ha:////4Da9vwt2kBEP/AmGpUEvfigVSN8jWYor6Edf0hCZGCQtAAAArx+LCAAAAAAAAP9b85aBtbiIQTGjNKU4P08vOT+vOD8nVc83PyU1x6OyILUoJzMv2y+/JJUBAhiZGBgqihhk0NSjKDWzXb3RdlLBUSYGJk8GtpzUvPSSDB8G5tKinBIGIZ+sxLJE/ZzEvHT94JKizLx0a6BxUmjGOUNodHsLgAzREgYV/eT83ILSktQi/eTE4uLEvJSiRFUjl9xsixQjIJ1UklyVpA8AxZRVGdkAAAA=cassandra-mk8d2-btczb in /home/jenkins/agent/workspace/k8s-e2e -ha:////4Bydxicmjzjxwak6LvupINLaRDG+t90/OqM4BmVRHiJbAAAAqB+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycohUQiAG1Ik16sIJQhNC0uj/kqSkEyfiatyBQCUmPFi2Jes9X1AFDw15zazC3mDoDBvcqHNiiXx/cZSYpTPrCAM5xVqVWpLqONeWooJZRQkLDkuFnaNgUEdYcSvuonYCdX2KPm8HDqWRN3hAwTM5Ch+/ZfKwvo4yEP44fwEwDRHK7T7bbvN5Vm8vlfMfwgAAAA==[Pipeline] { -ha:////4PAoMee38UpQAepTJ15nhHwbTvcWxCigJR68iBP/Avj0AAAApB+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOIigagQVVrLDS8wsTFOrDtjOyQVL+Jr/IFAJCq2WO1sM88XLFOEI0eLraHOUWocBt/baeHAsbt4HrDlMzZMib1BaQbJ2tQzSs4G5hQlLASsDDWekyObYS1adVeVV2SrU47TdxBQOn2DBxRiMmcV8xfGCJtrrxPTz/NXAGPIUO63n9qFN1+P256+AAAA[Pipeline] echo -[2023-10-11T08:06:10.139Z] build_script: .build/docker/_docker_run.sh bullseye-build.docker build-jars.sh -ha:////4PuEZdErjUeLdbp0rquca+Iv/L15PtETV0+PKVHHeiwDAAAApB+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOIiIagQVVrLDS8wsTFOrDtjOyQVL+Jr/IFAJCq2WO1sM88XLFOEI0eLraHOUWocBt/baeHAsbt4HrDlMzZMib1BaQbJ2tQzSs4G5hQlLASsDDWekyObYS1adVeVV2SrU47TdxBQOn2DBxRiMmcV8xfGCJtrrxPTz/NXAGPIUO63n9qFN5gZmtG+AAAA[Pipeline] sh -[2023-10-11T08:06:10.412Z] + find /tmp/k8s-e2e/ -mindepth 1 -maxdepth 1 -type d ! -name . ! -name .. -exec ln -s {} /home/jenkins/agent/workspace/k8s-e2e ; -ha:////4B0Q2oBHM2wge24XmO7A7KdOSGsYs615B0qozsx+A4TQAAAApR+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPMJpSIEQVVorDS8w8WGcWHfGdkgqXsTX+AMWkajYYrWzzbzesI4BThyM6JEGS7GzwrvR5CUmDsPV8SR6voiOKbJD0eLUssZmwZYTwpKihJWEDVLnOFoyCbayVw9VOUWmOqeQv6OE0uo7PKGQ2ZxUSF+YA+xuo45MP89fAcw+Qbk/5Kpr/wG9fCwGvgAAAA==[Pipeline] sh -[2023-10-11T08:06:11.582Z] + find /tmp/k8s-e2e/ -mindepth 1 -maxdepth 1 -type d ! -name . ! -name .. -exec ln -s {} /home/jenkins/agent/workspace/k8s-e2e ; -ha:////4NZSQqjiwSbZ9mVjJ+iGiR5iWy2ejEiCbK44DOcCE4BQAAAApR+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOIiIUGDqNJabniBiY1xYt0Z2yGpeBFf4w8EIlGxxWpnm3m+YJkiHDlabA11jlLjMPjeTgsHjt3F84Atn7FhSuwNSjNI1qaeUXI2MKcoYSFgZajxnBzZDGvRqruqvCJbnXKcvoOA0ukbPKAQkzmrmL8wRthce52Yfp6/AhhDhnK3/dQ+vAEae6zjvgAAAA==[Pipeline] sh -[2023-10-11T08:06:11.611Z] + echo scm success -[2023-10-11T08:06:11.611Z] scm success -ha:////4ASfNG6NBXK4FoFPu9aTi97oNUYJsWaWvEYeeB/i2qqrAAAApR+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOLSgBBCqWgtN7zAJMY4se6C7eBUvIiv8QcsIlGxxWpnm3m9YRk81OwNdpp6S6GxOLjR5IWJfX91nLDjCzZMgZ1GqZPkVp9mlBw1zClKWAhYaWocB0smwlp06qEqp8hU5+jzdxRQ2vYOTyhENkfl4xcmD5vb2Aamn+evAKYhQrk95Nrthw8/Hho0vgAAAA==[Pipeline] tool -ha:////4LfZrjjuE5lf/iLHYkxW0nqCQ2OeaqH0G/r1H2Zk0gl3AAAApR+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOLSgARCqWgtN7zAJMY4se6C7eBUvIiv8QcsIlGxxWpnm3m9YRk81OwNdpp6S6GxOLjR5IWJfX91nLDjCzZMgZ1GqZPkVp9mlBw1zClKWAhYaWocB0smwlp06qEqp8hU5+jzdxRQ2vYOTyhENkfl4xcmD5vb2Aamn+evAKYhQrk95Nrthw/wAoKzvgAAAA==[Pipeline] sh -[2023-10-11T08:06:11.967Z] + echo scm success -[2023-10-11T08:06:11.968Z] scm success -ha:////4OJafBD+UOMg68nWD83fYncyznXELMDeAoW84wyk4IcWAAAApR+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOIiIVEgRJXWcsMLTGyME+vO2A5JxYv4Gn8gEImKLVY728zzBcsU4cjRYmuoc5Qah8H3dlo4cOwungds+YwNU2JvUJpBsjb1jJKzgTlFCQsBK0ON5+TIZliLVt1V5RXZ6pTj9B0ElE7f4AGFmMxZxfyFMcLm2uvE9PP8FcAYMpS77af24Q3VZzRkvgAAAA==[Pipeline] tool -ha:////4BSlNn01A0ZdAUlB2R81y4t8E7Do4gKaMQVFAu6srZulAAAApR+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOKCkKBBqWgtN7zAJMY4se6C7eBUvIiv8QcsIlGxxWpnm3m9YRk81OwNdpp6S6GxOLjR5IWJfX91nLDjCzZMgZ1GqZPkVp9mlBw1zClKWAhYaWocB0smwlp06qEqp8hU5+jzdxRQ2vYOTyhENkfl4xcmD5vb2Aamn+evAKYhQrnf5Tpshw/FYrC3vgAAAA==[Pipeline] sh -[2023-10-11T08:06:12.081Z] + echo tool success -[2023-10-11T08:06:12.082Z] tool success -ha:////4PEJMk6TDE96VUYQdgSykRXN3kiSkgLaNCaVWlED7hElAAAAqB+LCAAAAAAAAP9tjUEKwjAURH8rXbh16SFSBBFEunIbuvEEsYkxafi/JqnpyhN5Ne9gtODKWQwzA8N7vqAKHhrymlmFvcHQGTa4UefEEvn+4igxS2fWEQZyirUqtSTVca4tRQWzihIWHJYKO0fBoI6w4lbcRe0E6voUfd4OHEojb/CAgmdyFD5+y+RhfR1lIPxx/gJgGiKU23223ebzrN4a1vn6wgAAAA==[Pipeline] retry -ha:////4KMZPbbNeGdn0rFAbNOwhNfc7kTY4pzXrOmAaGBP+Y6zAAAApx+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycohUMLAgpq5RFk4QmhDSRv+Xn5R24kRcjTvQUokJD5ZtyXqvNxSR4UTsRGOx9RhrL7rQuymJgbi9BhpEQxdRE0YKVig7KDK2WqqiZGFRlsNKwtpiHSh6dAk2stEPXQaNrjwnnrajhNybOzwhkxM5aU7fMjJsb72JhD/OXwCMXYL8sJttPz+LD27blSrCAAAA[Pipeline] { -ha:////4Lus8Hhv1SnItw7ysZniAE7ip7rxWz0LFfIKXe+GM/iaAAAApR+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOIigUSDqNJabniBiY1xYt0Z2yGpeBFf4w8EIlGxxWpnm3m+YJkiHDlabA11jlLjMPjeTgsHjt3F84Atn7FhSuwNSjNI1qaeUXI2MKcoYSFgZajxnBzZDGvRqruqvCJbnXKcvoOA0ukbPKAQkzmrmL8wRthce52Yfp6/AhhDhnK//dQuvAHlNhISvgAAAA==[Pipeline] echo -[2023-10-11T08:06:12.160Z] build_script_safe_name: _docker_run__bullseye-build.docker_build-jars_ -ha:////4Psg3d5NZLdkEFFjplrTkNBfS+D3b7kRpOOmC04sPEcmAAAApR+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOIiIUSDqNJabniBiY1xYt0Z2yGpeBFf4w8EIlGxxWpnm3m+YJkiHDlabA11jlLjMPjeTgsHjt3F84Atn7FhSuwNSjNI1qaeUXI2MKcoYSFgZajxnBzZDGvRqruqvCJbnXKcvoOA0ukbPKAQkzmrmL8wRthce52Yfp6/AhhDhnK//dQuvAEioFNdvgAAAA==[Pipeline] sh -[2023-10-11T08:06:12.343Z] + echo tool success -[2023-10-11T08:06:12.343Z] tool success -ha:////4Miw9sTJ3/JQTz+pxxV/8vZjGTMcR1smRM+27lKqWGUMAAAAqB+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycohUQioLYuoaZeEEIQkhbfR/SVLaiRNxNe5AoBITHizbkvWeL6higCMFyzqDvcOoHBv8aHNiE4X+4mliHZ2ZIozkDRNmEqRNu1RBycCiooQVh7VB5Sk6tAk2vJN3WXuJtj6lkLcDh9LpGzyg4JmcZEjfMgfYXkcdCX+cvwCYhwRls8u2bz7P6g0nX+zZwgAAAA==[Pipeline] retry -ha:////4DUg9pqUBg0kRlAKzNHQXaVDkv6iMriSxioMsnyfZO4bAAAAph+LCAAAAAAAAP9tjTEOwjAUQ3+DOrAycoh0ogtiYo26cILQhJA0+r9NUtKJE3E17kBLJSY8WLYl673eUMYAJwqGO42dxdha3vvRzIlnCt3NU+aOrrwljOQ1b3RuSOnzWhtKGlYVDDYCthpbT9GiSbATTj5k5SWa6pLCvB0FMKsGeEIhZnKSIX3LFGB/H1Uk/HH+AmDqE7D6sFi9PMsP+urdAcIAAAA=[Pipeline] { -ha:////4IQztXOj2eYFrcp4w6xrjZgRodD/8Hobhgj5+SzkPX2GAAAAox+LCAAAAAAAAP9tjTESwiAURH/iWNhaegjSxcKxsmVoPAEmiBDmfwJEUnkir+YdRDNj5RY7+7Z5zxesY4AjBc2swsFg7AzzbtJlsUxhuDrKzNKFdYSRnGJCZUG9Oi0oKClYUtWw4rBR2DmKBnWCLbfyLhsnUTfnFMp34FCbfoQHVLyYkwzpC3OA3W3qI+HP81cAs09Qt+2n9v4N8tcxgr4AAAA=[Pipeline] echo -[2023-10-11T08:06:12.413Z] build_script_safe_name: _docker_run__bullseye-build.docker_build-jars_ -ha:////4NCU/jGUnDiZ2lJ5Q55dmhQ2L2An3jc6YcOggg/LzGRmAAAApB+LCAAAAAAAAP9tjbEOwiAURV9rHFwd/Qi6NSbGyZWw+AXYIkLJexSodPKL/DX/QbSJk3e4uecu5/mCdQxwpKCZVTgYjJ1h3k26LJYpDFdHmVm6sI4wklNMqCyoV6cFBSUFS6oaVhw2CjtH0aBOsOVW3mXjJOrmnEL5Dhxq04/wgIoXc5IhfWEOsLtNfST8ef4KYPYJ6rb91N6/AT3LqQW+AAAA[Pipeline] sh -[2023-10-11T08:06:12.491Z] + mkdir -p build -ha:////4D9nO8qV0O+c0IBmcRDG8xIUx/uFFrgorJpD16FgyWVrAAAApR+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOIiUSAhRJXWcsMLTGyME+vO2A5JxYv4Gn8gEImKLVY728zzBcsU4cjRYmuoc5Qah8H3dlo4cOwungds+YwNU2JvUJpBsjb1jJKzgTlFCQsBK0ON5+TIZliLVt1V5RXZ6pTj9B0ElE7f4AGFmMxZxfyFMcLm2uvE9PP8FcAYMpS77af24Q1v3v3ovgAAAA==[Pipeline] sh -[2023-10-11T08:06:12.751Z] + mkdir -p build -ha:////4FqfRIh3lqEG/+azf9JNKANokFD0N0BwmxXMBX8buSzXAAAApB+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPMKhCgWiSmul4QUmPowT687YDknFi/gaf8AiEhVbrHa2mdcb1jHAiYMRPdJgKXZWeDeavMTEYbg6nkTPF9ExRXYoWpxa1tgs2HJCWFKUsJKwQeocR0smwVb26qEqp8hU5xTyd5RQWn2HJxQym5MK6QtzgN1t1JHp5/krgNknKOs612HvPwIrssy+AAAA[Pipeline] sh -[2023-10-11T08:06:12.863Z] + mktemp -d /home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.XXXXXXXXXX -ha:////4Mk2i1XPsLx770ZsUQZ4/3FtiQILV8woMoo5dN4VJuYzAAAApR+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOIiKKBAqWgtN7zAJMY4se6C7eBUvIiv8QcsIlGxxWpnm3m9YRk81OwNdpp6S6GxOLjR5IWJfX91nLDjCzZMgZ1GqZPkVp9mlBw1zClKWAhYaWocB0smwlp06qEqp8hU5+jzdxRQ2vYOTyhENkfl4xcmD5vb2Aamn+evAKYhQrnf5Tpshw9QPuYhvgAAAA==[Pipeline] echo -[2023-10-11T08:06:12.944Z] parts[6]: build -ha:////4Crmwxx52RgcatwFZr/v6w4drk1aXTb9RUK3c3/BgdMWAAAApR+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOIipYACUaW10vACExvjxLoztkNS8SK+xh+wiETFFqudbeb1hnUMcOJgsNc0WIqdRe9GkxdOHIar4wl7vmDHFNlpbPXUstLNgi0nDUuKElYCNpo6x9GSSbAVvXzIykky1TmF/B0FlFbd4QmFyOYkQ/rCHGB3G1Vk+nn+CmD2Ccp9netQ+w+TbcsKvgAAAA==[Pipeline] echo -[2023-10-11T08:06:12.955Z] hash: build_docker_run.I67afn88uM -ha:////4BZJYjw9zgSLDE6Jcw6bJWhdhUtv6fGx6mPmXJrcIrQvAAAAph+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOIigQQFSkVrueEFJjHGiXUXbAen4kV8jT9gEYmKLVY728zrDcvgoWZvsNPUWwqNxcGNJi9M7Pur44QdX7BhCuw0Sp0kt/o0o+SoYU5RwkLASlPjOFgyEdaiUw9VOUWmOkefv6OA0rZ3eEIhsjkqH78wedjcxjYw/Tx/BTANEcr9NtdhN3wA0lzQE74AAAA=[Pipeline] echo -[2023-10-11T08:06:12.966Z] tmp_dir /tmp/build/build_docker_run.I67afn88uM -ha:////4BK3Vo1iLTNnpYgI+wnVq4TwSnSGsclVlg1V8Vtgvn92AAAAph+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOIiIQQFSkVrueEFJjHGiXUXbAen4kV8jT9gEYmKLVY728zrDcvgoWZvsNPUWwqNxcGNJi9M7Pur44QdX7BhCuw0Sp0kt/o0o+SoYU5RwkLASlPjOFgyEdaiUw9VOUWmOkefv6OA0rZ3eEIhsjkqH78wedjcxjYw/Tx/BTANEcr9NtdhN3wAFcqRXL4AAAA=[Pipeline] sh -[2023-10-11T08:06:13.082Z] + mktemp -d /home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.XXXXXXXXXX -[2023-10-11T08:06:13.271Z] + echo -[2023-10-11T08:06:13.271Z] -ha:////4MDDsvI7gMJlTVGrpzGFGFsBH7KALuYODXfFJip8Mk3PAAAAph+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOIiIQEFSkVrueEFJjHGiXUXbAen4kV8jT9gEYmKLVY728zrDcvgoWZvsNPUWwqNxcGNJi9M7Pur44QdX7BhCuw0Sp0kt/o0o+SoYU5RwkLASlPjOFgyEdaiUw9VOUWmOkefv6OA0rZ3eEIhsjkqH78wedjcxjYw/Tx/BTANEcr9NtdhN3wAVPuKRb4AAAA=[Pipeline] echo -[2023-10-11T08:06:13.313Z] Executing `build_dir=/home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.I67afn88uM .build/docker/_docker_run.sh bullseye-build.docker build-jars.sh 17 2>&1 | tee k8s-e2e_2__docker_run__bullseye-build.docker_build-jars__jdk17_cassandra_attempt_1.log` on cassandra-mk8d2-5vk0k -ha:////4KWDC7KiBme7CQ4B5Y6mSmL2r/JLD/pz+UCW0eJx4E+mAAAApR+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPMKRKEKBqNJaaXiBiQ/jxLoztkNS8SK+xh+wiETFFqudbeb1hnUMcOJgRI80WIqdFd6NJi8xcRiujifR80V0TJEdihanljU2C7acEJYUJawkbJA6x9GSSbCVvXqoyiky1TmF/B0llFbf4QmFzOakQvrCHGB3G3Vk+nn+CmD2Ccp6n+tQ+w+XqKduvgAAAA==[Pipeline] sh -ha:////4FIvnzDlrIkNdey/h9VGeOZ6NZ/LElGhJDXD7CHyDGvEAAAApB+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPMLpkgJR0VppeIGJjXFi3Tn2haTiRXyNP2ARiYotVjvbzOsN2xThRNGK3uDgMHVOBD/ZvMRMcbh5mkVPV9ERJvJGtGZuSZvzii2xgTVFCRsJO4Odp+TQMuxlrx6q8gptdeGYv6OE0ukRnlDIbGYV+QtLhMN90onw5/krgCUwlHWdq2nCB8W984O+AAAA[Pipeline] echo -[2023-10-11T08:06:13.419Z] parts[6]: build -ha:////4Oi5yx1OZsSOl9b+QnVQFYtlBIJ4zEtRQ3LfZoxiZXc1AAAApB+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOLSBSREldZKwwtMbIwT687YDknFi/gaf8AiEhVbrHa2mdcb1jHAiYPBXtNgKXYWvRtNXjhxGK6OJ+z5gh1TZKex1VPLSjcLtpw0LClKWAnYaOocR0smwVb08iErJ8lU5xTydxRQWnWHJxQim5MM6QtzgN1tVJHp5/krgNknKOs61/7gPwqhawS+AAAA[Pipeline] echo -[2023-10-11T08:06:13.431Z] hash: build_docker_run.moWSfQYNlt -ha:////4PAOx2Zs08tvYtlh2XcOqy8JLwf6CXGLxfxvI7bzHuQgAAAApB+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOLSBSFEldZKwwtMbIwT687YDknFi/gaf8AiEhVbrHa2mdcb1jHAiYPBXtNgKXYWvRtNXjhxGK6OJ+z5gh1TZKex1VPLSjcLtpw0LClKWAnYaOocR0smwVb08iErJ8lU5xTydxRQWnWHJxQim5MM6QtzgN1tVJHp5/krgNknKOs61/7gP0uQcB2+AAAA[Pipeline] echo -[2023-10-11T08:06:13.444Z] tmp_dir /tmp/build/build_docker_run.moWSfQYNlt -ha:////4EVlh2YlBIANfT5sZMeFnxtRjxz24haR0K1p9vKMJYKnAAAApR+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPMKhipAQVVorDS8w8WGcWHfGdkgqXsTX+AMWkajYYrWzzbzesI4BThyM6JEGS7GzwrvR5CUmDsPV8SR6voiOKbJD0eLUssZmwZYTwpKihJWEDVLnOFoyCbayVw9VOUWmOqeQv6OE0uo7PKGQ2ZxUSF+YA+xuo45MP89fAcw+QVnXuQ57/wE/bO7HvgAAAA==[Pipeline] sh -[2023-10-11T08:06:13.634Z] + tee k8s-e2e_2__docker_run__bullseye-build.docker_build-jars__jdk17_cassandra_attempt_1.log -[2023-10-11T08:06:13.634Z] + cassandra_dir=/home/jenkins/agent/workspace/k8s-e2e build_dir=/home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.I67afn88uM .build/docker/_docker_run.sh bullseye-build.docker build-jars.sh 17 -[2023-10-11T08:06:13.634Z] + '[' x/home/jenkins/agent/workspace/k8s-e2e '!=' x ']' -[2023-10-11T08:06:13.634Z] + '[' x/home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.I67afn88uM '!=' x ']' -[2023-10-11T08:06:13.634Z] + '[' -d /home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.I67afn88uM ']' -[2023-10-11T08:06:13.634Z] + echo ' from _docker_run' -[2023-10-11T08:06:13.634Z] from _docker_run -[2023-10-11T08:06:13.634Z] ++ grep 'property\s*name="java.default"' /home/jenkins/agent/workspace/k8s-e2e/build.xml -[2023-10-11T08:06:13.634Z] ++ sed -ne 's/.*value="\([^"]*\)".*/\1/p' -[2023-10-11T08:06:13.634Z] grep: /home/jenkins/agent/workspace/k8s-e2e/build.xml: No such file or directory -[2023-10-11T08:06:13.634Z] + java_version_default= -[2023-10-11T08:06:13.634Z] ++ sed -ne 's/.*value="\([^"]*\)".*/\1/p' -[2023-10-11T08:06:13.634Z] ++ grep 'property\s*name="java.supported"' /home/jenkins/agent/workspace/k8s-e2e/build.xml -[2023-10-11T08:06:13.634Z] grep: /home/jenkins/agent/workspace/k8s-e2e/build.xml: No such file or directory -[2023-10-11T08:06:13.634Z] + java_version_supported= -[2023-10-11T08:06:13.634Z] + '[' bullseye-build.docker == -h ']' -[2023-10-11T08:06:13.634Z] + dockerfile=bullseye-build.docker -[2023-10-11T08:06:13.634Z] + run_script=build-jars.sh -[2023-10-11T08:06:13.634Z] + java_version=17 -[2023-10-11T08:06:13.634Z] + command -v docker -[2023-10-11T08:06:13.634Z] + command -v timeout -[2023-10-11T08:06:13.634Z] + docker info -[2023-10-11T08:06:13.770Z] + echo -[2023-10-11T08:06:13.770Z] -ha:////4AhLBsOa061BgOoCjpNjB6Rl0mispfmGtnpUUeOHpS/IAAAApR+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPMIRTYSEqNJaaXiBiQ/jxLoztkNS8SK+xh+wiETFFqudbeb1hnUMcOJgRI80WIqdFd6NJi8xcRiujifR80V0TJEdihanljU2C7acEJYUJawkbJA6x9GSSbCVvXqoyiky1TmF/B0llFbf4QmFzOakQvrCHGB3G3Vk+nn+CmD2Ccq6znXY+w9+XfXevgAAAA==[Pipeline] echo -[2023-10-11T08:06:13.799Z] Executing `build_dir=/home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.moWSfQYNlt .build/docker/_docker_run.sh bullseye-build.docker build-jars.sh 11 2>&1 | tee k8s-e2e_2__docker_run__bullseye-build.docker_build-jars__jdk11_cassandra_attempt_1.log` on cassandra-mk8d2-btczb -ha:////4MiZPmaZLwCDpQ9s7xte5v5IhH4x2q5kVV4N1pjjpePbAAAAph+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPMKRKCIkRJXWSsMLTHwYJ9adsR2SihfxNf6ARSQqtljtbDOvN6xjgBMHI3qkwVLsrPBuNHmJicNwdTyJni+iY4rsULQ4tayxWbDlhLCkKGElYYPUOY6WTIKt7NVDVU6Rqc4p5O8oobT6Dk8oZDYnFdIX5gC726gj08/zVwCzT1DWda7D3n8AvQ7Y9b4AAAA=[Pipeline] sh -[2023-10-11T08:06:13.901Z] + '[' -f /home/jenkins/agent/workspace/k8s-e2e/build.xml ']' -[2023-10-11T08:06:13.901Z] + echo '/home/jenkins/agent/workspace/k8s-e2e/build.xml must exist' -[2023-10-11T08:06:13.901Z] /home/jenkins/agent/workspace/k8s-e2e/build.xml must exist -[2023-10-11T08:06:13.902Z] + exit 1 -ha:////4F0GTi4vz5/zG3ToAqMsSkoU6pUd9SQByV8hypq8wvMnAAAAph+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOIigYSQUCpayw0vMIkxTqy7YDs4FS/ia/wBi0hUbLHa2WZeb1gGDzV7g52m3lJoLA5uNHlhYt9fHSfs+IINU2CnUeokudWnGSVHDXOKEhYCVpoax8GSibAWnXqoyiky1Tn6/B0FlLa9wxMKkc1R+fiFycPmNraB6ef5K4BpiFDut7kOu+ED7xuMGL4AAAA=[Pipeline] sh -[2023-10-11T08:06:14.096Z] + cassandra_dir=/home/jenkins/agent/workspace/k8s-e2e build_dir=/home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.moWSfQYNlt .build/docker/_docker_run.sh bullseye-build.docker build-jars.sh 11 -[2023-10-11T08:06:14.096Z] + tee k8s-e2e_2__docker_run__bullseye-build.docker_build-jars__jdk11_cassandra_attempt_1.log -[2023-10-11T08:06:14.096Z] + '[' x/home/jenkins/agent/workspace/k8s-e2e '!=' x ']' -[2023-10-11T08:06:14.096Z] + '[' x/home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.moWSfQYNlt '!=' x ']' -[2023-10-11T08:06:14.096Z] + '[' -d /home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.moWSfQYNlt ']' -[2023-10-11T08:06:14.096Z] + echo ' from _docker_run' -[2023-10-11T08:06:14.096Z] from _docker_run -[2023-10-11T08:06:14.096Z] ++ grep 'property\s*name="java.default"' /home/jenkins/agent/workspace/k8s-e2e/build.xml -[2023-10-11T08:06:14.096Z] ++ sed -ne 's/.*value="\([^"]*\)".*/\1/p' -[2023-10-11T08:06:14.096Z] grep: /home/jenkins/agent/workspace/k8s-e2e/build.xml: No such file or directory -[2023-10-11T08:06:14.096Z] + java_version_default= -[2023-10-11T08:06:14.096Z] ++ grep 'property\s*name="java.supported"' /home/jenkins/agent/workspace/k8s-e2e/build.xml -[2023-10-11T08:06:14.096Z] ++ sed -ne 's/.*value="\([^"]*\)".*/\1/p' -[2023-10-11T08:06:14.096Z] grep: /home/jenkins/agent/workspace/k8s-e2e/build.xml: No such file or directory -[2023-10-11T08:06:14.096Z] + java_version_supported= -[2023-10-11T08:06:14.096Z] + '[' bullseye-build.docker == -h ']' -[2023-10-11T08:06:14.096Z] + dockerfile=bullseye-build.docker -[2023-10-11T08:06:14.096Z] + run_script=build-jars.sh -[2023-10-11T08:06:14.096Z] + java_version=11 -[2023-10-11T08:06:14.096Z] + command -v docker -[2023-10-11T08:06:14.096Z] + command -v timeout -[2023-10-11T08:06:14.096Z] + docker info -[2023-10-11T08:06:14.096Z] + '[' -f /home/jenkins/agent/workspace/k8s-e2e/build.xml ']' -[2023-10-11T08:06:14.096Z] + echo '/home/jenkins/agent/workspace/k8s-e2e/build.xml must exist' -[2023-10-11T08:06:14.096Z] /home/jenkins/agent/workspace/k8s-e2e/build.xml must exist -[2023-10-11T08:06:14.096Z] + exit 1 -ha:////4MgJMEESmSKIJmHuJtHx/gT4p1sMmpGwewLPiseYiyK9AAAApR+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPMJpUISEqNJaaXiBiQ/jxLoztkNS8SK+xh+wiETFFqudbeb1hnUMcOJgRI80WIqdFd6NJi8xcRiujifR80V0TJEdihanljU2C7acEJYUJawkbJA6x9GSSbCVvXqoyiky1TmF/B0llFbf4QmFzOakQvrCHGB3G3Vk+nn+CmD2Ccq6znXY+w87qYKjvgAAAA==[Pipeline] sh -[2023-10-11T08:06:14.213Z] + echo .build/docker/_docker_run.sh bullseye-build.docker build-jars.sh -[2023-10-11T08:06:14.213Z] .build/docker/_docker_run.sh bullseye-build.docker build-jars.sh -ha:////4BCN32qmSIzbMq2+CGIVo7x7B7yYSBZKU9Q/K+hnilYfAAAAph+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOIiIYGQUCpayw0vMIkxTqy7YDs4FS/ia/wBi0hUbLHa2WZeb1gGDzV7g52m3lJoLA5uNHlhYt9fHSfs+IINU2CnUeokudWnGSVHDXOKEhYCVpoax8GSibAWnXqoyiky1Tn6/B0FlLa9wxMKkc1R+fiFycPmNraB6ef5K4BpiFDut7kOu+EDabzWTr4AAAA=[Pipeline] echo -[2023-10-11T08:06:14.241Z] /home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.I67afn88uM -ha:////4NRAfuafRhKZVnDPUbMuz0085Gg8PfnU263VmHF4d6riAAAAqB+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycohUYqiQEFPXKAsnCEkIaaP/S5LSTpyIq3EHApWY8GDZlqz3fEEVAxwpWNYZ7B1G5djgR5sTmyj0F08T6+jMFGEkb5gwkyBt2qUKSgYWFSWsOKwNKk/RoU2w4Z28y9pLtPUphbwdOJRO3+ABBc/kJEP6ljnA9jrqSPjj/AXAPCQom122ffN5Vm8khNl4wgAAAA==[Pipeline] dir -[2023-10-11T08:06:14.253Z] Running in /home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.I67afn88uM -ha:////4CWROo+pgFHjFuF6lIA7OoJ9355yPmE23QDjwE9OmawLAAAApx+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycoh0AyTE1DXKwglCE0La6P/yk9JOnIircQdaKjHhwbItWe/1hiIynIidaCy2HmPtRRd6NyUxELfXQINo6CJqwkjBCmUHRcZWS1WULCzKclhJWFusA0WPLsFGNvqhy6DRlefE03aUkHtzhydkciInzelbRobtrTeR8Mf5C4CxS5AfdrPt52fxAR33berCAAAA[Pipeline] { -ha:////4AQbJgzAk05/oWUXKtyH3Tf73/ia5A3eYnvk1ERbqJS9AAAAox+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOJSEglR0VppeIFJjLFj3Tm2g1PxIr7GHwhEomKL1c4283zBOgY4ctBoFfWGYmvQu1HPCzOH/uo4o+ULtkyRncJG5YY7dVqw4aRgSVHCSsBGUes4GtIJtsLKu6ycJF2dU5i/g4DSdAM8oBCzOcmQvjAF2N3GLjL9PH8FMPkEZb3/VO3fsf/KvL4AAAA=[Pipeline] stash -[2023-10-11T08:06:14.414Z] + echo .build/docker/_docker_run.sh bullseye-build.docker build-jars.sh -[2023-10-11T08:06:14.414Z] .build/docker/_docker_run.sh bullseye-build.docker build-jars.sh -ha:////4F/U1mDt33ievSuzfOALL/GaXiHTzZ5JQ/gzEC4WgbIlAAAApB+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOLSRSBEldZKwwtMbIwT687YDknFi/gaf8AiEhVbrHa2mdcb1jHAiYPBXtNgKXYWvRtNXjhxGK6OJ+z5gh1TZKex1VPLSjcLtpw0LClKWAnYaOocR0smwVb08iErJ8lU5xTydxRQWnWHJxQim5MM6QtzgN1tVJHp5/krgNknKOs61/7gP3bXLBa+AAAA[Pipeline] echo -[2023-10-11T08:06:14.448Z] /home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.moWSfQYNlt -ha:////4JXjBnkUTEHIZSzAsYGL2DqvjVuY/iTEbt/JyhKN4EB2AAAAqB+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycoiUqRJCTF2jLJwgJCGkjf4vSUo7cSKuxh0IVGLCg2Vbst7zBVUMcKRgWWewdxiVY4MfbU5sotBfPE2sozNThJG8YcJMgrRplyooGVhUlLDisDaoPEWHNsGGd/Iuay/R1qcU8nbgUDp9gwcUPJOTDOlb5gDb66gj4Y/zFwDzkKBsmmz73edZvQEPHy64wgAAAA==[Pipeline] dir -[2023-10-11T08:06:14.458Z] Running in /home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.moWSfQYNlt -ha:////4FfQ8lOqb2nQUCdMSAHAMekLGawlCtjoxpuQ7N39b14bAAAAph+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycogURoSYukZZOEFoQkgb/V9+UtqJE3E17kBLJSY8WLYl673eUESGE7ETjcXWY6y96ELvpiQG4vYaaBANXURNGClYoeygyNhqqYqShUVZDisJa4t1oOjRJdjIRj90GTS68px42o4Scm/u8IRMTuSkOX3LyLC99SYS/jh/ATB2CfLDbrb9/Cw+mJlT6cIAAAA=[Pipeline] { -ha:////4Ans7fFGjl7Y9CPUaXp/2TqfRa/ZSpTcLcVGsCymbAf2AAAApB+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOIi6BCiSmu54QUmNsaJdWdsh6TiRXyNPxCIRMUWq51t5vmCZYpw5GixNdQ5So3D4Hs7LRw4dhfPA7Z8xoYpsTcozSBZm3pGydnAnKKEhYCVocZzcmQzrEWr7qryimx1ynH6DgJKp2/wgEJM5qxi/sIYYXPtdWL6ef4KYAwZyv32U7vwBqhInei+AAAA[Pipeline] stash -ha:////4JyXWo6xBs2YydVS7gpY1/mq/zWs/9hvAIzeO2UZMBfBAAAApR+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOJSUABCqWgtN7zAJMY4se6C7eBUvIiv8QcsIlGxxWpnm3m9YRk81OwNdpp6S6GxOLjR5IWJfX91nLDjCzZMgZ1GqZPkVp9mlBw1zClKWAhYaWocB0smwlp06qEqp8hU5+jzdxRQ2vYOTyhENkfl4xcmD5vb2Aamn+evAKZhiFAetrn2uw+atTfsvgAAAA==[Pipeline] } -ha:////4EncnSmtuvh4bSIAp5mdKhUDXUBSPNBMZ35bqeBOmckuAAAApR+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOLSIARCqWgtN7zAJMY4se6C7eBUvIiv8QcsIlGxxWpnm3m9YRk81OwNdpp6S6GxOLjR5IWJfX91nLDjCzZMgZ1GqZPkVp9mlBw1zClKWAhYaWocB0smwlp06qEqp8hU5+jzdxRQ2vYOTyhENkfl4xcmD5vb2Aamn+evAKZhiFAetrn2uw+0tTWGvgAAAA==[Pipeline] // dir -ha:////4HVgSFhmIRpWP+2y5P7GI6Zr17TvBMbj8UVWLV8RdPlzAAAAph+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOIiIYGEUCpayw0vMIkxTqy7YDs4FS/ia/wBi0hUbLHa2WZeb1gGDzV7g52m3lJoLA5uNHlhYt9fHSfs+IINU2CnUeokudWnGSVHDXOKEhYCVpoax8GSibAWnXqoyiky1Tn6/B0FlLa9wxMKkc1R+fiFycPmNraB6ef5K4BpiFDut7kOu+EDXtYUT74AAAA=[Pipeline] sh -ha:////4NGdGeI3BS0SHKmRrHET3k0PsWnFEO7NbDsaIuSafPg5AAAApR+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOIiGiSEqNJabniBiY1xYt0Z2yGpeBFf4w8EIlGxxWpnm3m+YJkiHDlabA11jlLjMPjeTgsHjt3F84Atn7FhSuwNSjNI1qaeUXI2MKcoYSFgZajxnBzZDGvRqruqvCJbnXKcvoOA0ukbPKAQkzmrmL8wRthce52Yfp6/AhhDyFDud5/avgFdsIJMvgAAAA==[Pipeline] } -ha:////4F0J9HH1k3n+L9sdxJCloUQcSPHqfJzwohtKyMXPgUpoAAAApB+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOJChxCiSmu54QUmNsaJdWdsh6TiRXyNPxCIRMUWq51t5vmCZYpw5GixNdQ5So3D4Hs7LRw4dhfPA7Z8xoYpsTcozSBZm3pGydnAnKKEhYCVocZzcmQzrEWr7qryimx1ynH6DgJKp2/wgEJM5qxi/sIYYXPtdWL6ef4KYAwhQ7nffWr7Bm5T2fC+AAAA[Pipeline] // dir -ha:////4Pusol50zR8dMBvEx/2qqYg57g/9FpB8xp4IMiBiX6LeAAAApB+LCAAAAAAAAP9tjTEOwjAQBC9BFLSUPOLSRSBEldZKwwtMbIwT687YDknFi/gaf8AiEhVbrHa2mdcb1jHAiYPBXtNgKXYWvRtNXjhxGK6OJ+z5gh1TZKex1VPLSjcLtpw0LClKWAnYaOocR0smwVb08iErJ8lU5xTydxRQWnWHJxQim5MM6QtzgN1tVJHp5/krgNknKOs612HvPwCM9Q6+AAAA[Pipeline] sh -[2023-10-11T08:06:14.982Z] + xz -f k8s-e2e_2__docker_run__bullseye-build.docker_build-jars__jdk17_cassandra_attempt_1.log -ha:////4OvJNtuDCb626i0s4ue6BZrl3YQ7fMPe1bxPcjjWCxjTAAAAqB+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycohUYkCqEFPXKAsnCEkIaaP/S5LSTpyIq3EHApWY8GDZlqz3fEEVAxwpWNYZ7B1G5djgR5sTmyj0F08T6+jMFGEkb5gwkyBt2qUKSgYWFSWsOKwNKk/RoU2w4Z28y9pLtPUphbwdOJRO3+ABBc/kJEP6ljnA9jrqSPjj/AXAPCQo97tsTfN5Vm9FPfgvwgAAAA==[Pipeline] dir -[2023-10-11T08:06:15.019Z] Running in /home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.I67afn88uM -ha:////4JKJpW2i08gcZ2FqfyAK7T30tNR+Tscx7so2DPCx4YUuAAAApx+LCAAAAAAAAP9tjbEOgjAURR8QBldHP6LgSIwTa8PiF9RSa6F5D9uHMPlF/pr/IEri5J3uucnNeb4gjwGOFKzoDPYOo3Zi8KNdmpgo9BdPk+joLDRhJG9EY6aGWlOv2BAbWJOkkEnYGNSeokPLsJWduqvCK7TFicOyHSSkrr3BAxK5mFkF/sIcYHcd20j48/wVwDwwpFXFkO3L8nPN3zgbWwvDAAAA[Pipeline] { -ha:////4BI/CFJSfIYqSake1hEilGGiDCFkwJz36dG96iOp88Z/AAAAox+LCAAAAAAAAP9tjTESgjAQRRcYC1tLDxGgdqxsMzSeIIYYA5ndkCxC5Ym8mneQgRkrf/Hnv9+89wd2KcKZohWdwd5h0k4EP9pliYlif/c0iY5uQhMm8kY0ZmqoNZcNG2IDW7IcCgl7g9pTcmgZDrJTT1V6hba8cly+k4TctQO8IJOLmVXkFeYIx8fYJsKf568A5hAYirqq166+ulaRjcAAAAA=[Pipeline] } -ha:////4AUiGKfQQpfMciU1ZYgkOU0KcdEBJbyZwJAF/1+uDmNtAAAApR+LCAAAAAAAAP9tjTESgjAQRZcwFraWHiKoHeNQ2WZoPEEMMQYyu5gsQuWJvJp3kJEZK3/132ve6w2rFKGi6GRrsfOYjJd9GNz85EixuwYaZUsXaQgTBStrO9bU2NOCNbGFZZmAXMHaogmUPDqGjWr1QxdBoyvOHGd3VCB8c4cnZGous478hSnC9jY0ifDX+RuAqe8Z8v3uwCDK8gM8FWKgvwAAAA==[Pipeline] // dir -ha:////4BYoSkrLybB6xoj02pdcoQVr/7MreCpHs+pgUlIIBavAAAAAph+LCAAAAAAAAP9tjTsOwjAQBTeJKGgpOYTDR6KJqGitNJzAxMY4sXaDvSGpOBFX4w5YRKLiVW+mmdcbFjHAkYIVrcHOYWyc6P1g0xMjhe7qaRQtXURDGMkbUZuxJm1OM9bEBuZlORQSlgYbT9GhZVjJVj1U6RXa8swhuUpC7vQdnpDJVGYV+AtTgPVt0JHw1/kbgKlnyA87hmK72fcf5inQK78AAAA=[Pipeline] echo -[2023-10-11T08:06:15.112Z] Complete '.build/docker/_docker_run.sh bullseye-build.docker build-jars.sh 17' on cassandra-mk8d2-5vk0k -ha:////4P2vzCGjOnsmNm1HaZnHjxEokQKFXgFLCzE2AE6zYRguAAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQDCNFEVLRWGl5gYmOcWHfBvpBUvIiv8QcsIlGx1c4083rDIgY4UrCiNdg5jI0TvR9semKk0F09jaKli2gII3kjajPWpM1pxprYwLwsh0LC0mDjKTq0DCvZqocqvUJbnjkkV0nInb7DEzKZyqwCf2EKsL4NOhL+On8DMPU9Q7Hd7Bnyw+4DZjNxZr8AAAA=[Pipeline] } -[2023-10-11T08:06:15.122Z] ERROR: No files included in stash ‘cassandra_17’ -[2023-10-11T08:06:15.122Z] Retrying -ha:////4EDIbJNC0GTQHSxV5DlAssTbNGaMM5RKKDpOvXQPCmtnAAAAqB+LCAAAAAAAAP9tjTESgjAQRRcYCltLDxGk0Mahss3QeIIYYgxkdjFZhMoTeTXvIMqMlb/678/8ec8X5DFARcGK1mDnMGonej/YuYmRQnfxNIqWzkITRvJG1GasqTHHBWtiA0uSFDIJK4PaU3RoGdayVXdVeIW2OHGYt4OE1DU3eEAiZzOrwF+YAmyuQxMJf56/Aph6hnRfMmTldve55m9AKep6wwAAAA==[Pipeline] { -ha:////4KQ/ZmoJPbNjZh5Q1JtEiTExNDYRxk0e7K7BYKyF3jmCAAAApR+LCAAAAAAAAP9tjTESwiAURH+SsbC19BBEC22cVLZMGk+AgAhh/o9AJJUn8mrewUwyY+UWO/u2ee8PrGKAhoJhTmNnMUrLej+YabFMobt5yszRlUnCSF6zVueWlD4v2FLSsKQooeKw1ig9RYsmwYY78RS1F2jqSwrTd+JQWvWAFxR8MicR0gxjgO19UJHw5/krgLFPUO13h7mP/RdWe116wAAAAA==[Pipeline] sleep -[2023-10-11T08:06:15.184Z] Sleeping for 2 min 0 sec -[2023-10-11T08:06:15.225Z] + xz -f k8s-e2e_2__docker_run__bullseye-build.docker_build-jars__jdk11_cassandra_attempt_1.log -ha:////4K48/FTHwrdcCezQsMLimgSlVhwZzMaPsY2ve54pfspXAAAAqB+LCAAAAAAAAP9tjTESgjAQRRcYCltLDxG0wcKhss3QeIIYYgxkdjFZhMoTeTXvIMqMlb/678/8ec8X5DFARcGK1mDnMGonej/YuYmRQnfxNIqWzkITRvJG1GasqTHHBWtiA0uSFDIJK4PaU3RoGdayVXdVeIW2OHGYt4OE1DU3eEAiZzOrwF+YAmyuQxMJf56/Aph6hrQsGbLddv+55m/EYbpDwwAAAA==[Pipeline] dir -[2023-10-11T08:06:15.253Z] Running in /home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.moWSfQYNlt -ha:////4GM7eQrzVJWvO2bRdhUg6dcO+yY+do2HDAvQF9lXYQ3xAAAAqB+LCAAAAAAAAP9tjTEOwjAUQ39bdWBl5BApTCChTqxRF04QkhCSRv+XJKWdOBFX4w6UVmLCg2Vbst7rDWUMUFMwzGlsLUZpWed7MyU2UGivngbm6MIkYSSvWaOHhpQ+LbWhpGFRlkPBYaVReooWTYI1d+IhKi/QVOcUpu3IIbfqDk/I+EROIqS5jAE2t15Fwh/nLwDGLkGx2+5nP3y/5Qdi1BftxAAAAA==[Pipeline] { -ha:////4FbLcY7maKRwdLiZw2BiTOX4X40MAitUgsKaaSGV0KW8AAAApR+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQDHQilorXS8AJjG2PHugu2g1PxIr7GH4gSiYotVjvbzPsDqxigoWCY09hZjNKy3g9mWixT6G6eMnN0ZZIwktes1bklpc8LtpQ0LClKqDisNUpP0aJJsOFOPEXtBZr6ksL0nTiUVj3gBQWfzEmENMMYYHsfVCT8ef4KYOz7BNV+d5z78AXvkKWwwAAAAA==[Pipeline] } -ha:////4KmKFpKHVzWjSXVdQGLfg2h5Q7ZRATiBSxbfVQ13Y1DmAAAApR+LCAAAAAAAAP9tjTESgjAQRRcYC1tLDxGgsnCsbDM0niCSGAOZXUwWofJEXs07GGXGyl/8+e837/mCVQxwoGBFZ7B3GFsnBj/atMREob94mkRHZ9ESRvJGNGZqSJvjgg2xgSVZDoWEtcHWU3RoGTayU3dVeoW2PHFI315C7vQNHpDJZGYV+AtzgO111JHw5/krgHkYGIq6rj5d7d4zyCh5wAAAAA==[Pipeline] // dir -ha:////4Kb1PSQHmfl1wPDdv5QL2RPqDwH1YLIpq/NZ2UYaQONgAAAApR+LCAAAAAAAAP9tjTESgjAQRRcYC1tLDxGGhsaxss2k8QQRYgxkdmOyCJUn8mrewYzMWPmr/17zXm/YpAhHilYMBkeHqXMi+MnmJ2aK49XTLAa6iI4wkTdCmVlRb04rKmID64oSKglbg52n5NAy7OSgH7r2Gm195pjdQULp+js8oZC5zDryF5YI+9vUJ8Jf528AlsBQti1D1TRN+ACpL26cvwAAAA==[Pipeline] echo -[2023-10-11T08:06:15.344Z] Complete '.build/docker/_docker_run.sh bullseye-build.docker build-jars.sh 11' on cassandra-mk8d2-btczb -ha:////4KEmsp/ohcFV4vVvhjwCm7QazOwM9Sxj0s449JuArDTWAAAApR+LCAAAAAAAAP9tjTESgjAQRRcYC1tLDxEGCxrHijZD4wliEmMgs4vJIlSeyKt5BxmZsfJX/73mvd6wSRFOFJ3oLPYek/ZiCKNbnpgo9tdAk+joIjRhomBFa6eWjG1WbIktrMtyKCRsLepAyaNj2MlOPVQZFLryzHFxRwm5N3d4QiaXMqvIX5gj7G+jSYS/zt8AzMPAUFTVgSGv6w/WHzIRvwAAAA==[Pipeline] } -[2023-10-11T08:06:15.354Z] ERROR: No files included in stash ‘cassandra_11’ -[2023-10-11T08:06:15.354Z] Retrying -ha:////4E6LTJrO9FNf4rIul7l0QmQRWMskfVppikvmhC8Bf8+xAAAAqR+LCAAAAAAAAP9tjbEOgjAURR8QBldHP6KEGF0Mk2vTxS+oUGuheQ/bhzD5Rf6a/yBK4uSd7rnJzXm+II8BKgpWtAY7h7F2oveDnZsYKXQXT6No6SxqwkjeCGVGRY05LqiIDSxJUsgkrAzWnqJDy7CWrb7rwmu0xYnDvB0kpK65wQMSOZtZB/7CFGBzHZpI+PP8FcDUM6T7HUNWltvPNX8DlvrCCcMAAAA=[Pipeline] { -ha:////4IsusbN+EsJFF06vkq9kVFhvQRbk5XhEtCvaDVAVdCJLAAAApR+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYSjCDpEldZKwwtMbIwd687YDknFi/gaf8BKJCq2WO1sM+8PbGKAMwXNrMLBYOwN827UebGJwnBzNDFLV9YTRnKKdWrqSKp2xY6SgjVFCRWHrcLeUTSoE+y4FU9RO4G6vqSQvxOH0sgHvKDg2ZxESAvMAfb3UUbCn+evAGafoGqaw9JH/wUnbr2YwAAAAA==[Pipeline] sleep -[2023-10-11T08:06:15.439Z] Sleeping for 2 min 0 sec -ha:////4GSIXxlOiuTgmzEU2Z8f3A71WShV0JJagD0Kg7bXP+ffAAAApR+LCAAAAAAAAP9tjTESwiAURH+SsbC19BDEFKkcK1uGxhMgQSRh/kcgksoTeTXvYDQzVm6xs2+b93zBKgY4UDCs1zhYjMoy70YzL5YpDBdHmfV0ZoowktNM6Cyo08cFBSUNS4oSKg5rjcpRtGgSbHgv77J2Ek19SmH+9hxK293gAQWfzUmG9IUpwPY6dpHw5/krgMknqJpd++mm9W+iQrJQwAAAAA==[Pipeline] echo -[2023-10-11T08:08:15.199Z] build_script_safe_name: _docker_run__bullseye-build.docker_build-jars_ -ha:////4EtUKKCmwPaqsH0k1Mff8F7Ik3FhEO6rf2jTNbyGceO1AAAAph+LCAAAAAAAAP9tjTESgjAQRRcYC1tLDxGk0Maxss3QeIIIMSZkdmOyCJUn8mreQZQZK3/x57/fvOcLFinCgaIRTmNnMTVWBN+baYmBYnfxNAhHZ9EQJvJa1HqoqdXHGWtiDXOyHAoJS42Np2TRMKykU3dVeoWmPHGcvr2E3LY3eEAmJzOryF8YI6yvfZsIf56/AhgDQ1Fttp+uduENYRGfe8AAAAA=[Pipeline] sh -ha:////4INlZcluMJUFU5BVlC5dfGMf78+GMFw3foXoOWRkUQiJAAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYSjiIICUaW10vACExtjx7oztkNS8SK+xh+wEomKLVY728z7A5sY4ExBM6twMBh7w7wbdV5sojDcHE3M0pX1hJGcYp2aOpKqXbGjpGBNUULFYauwdxQN6gQ7bsVT1E6gri8p5O/EoTTyAS8oeDYnEdICc4D9fZSR8Of5K4DZJ6ia5rD00X8B5D2Qs8AAAAA=[Pipeline] echo -[2023-10-11T08:08:15.452Z] build_script_safe_name: _docker_run__bullseye-build.docker_build-jars_ -ha:////4GnCz4i5eAO6sgmzCwzT4CnHwiSTI7UrBctP9qUTb4QWAAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYSjiAYJUaW10vACExtjx7oztkNS8SK+xh+wEomKLVY728z7A5sY4ExBM6twMBh7w7wbdV5sojDcHE3M0pX1hJGcYp2aOpKqXbGjpGBNUULFYauwdxQN6gQ7bsVT1E6gri8p5O/EoTTyAS8oeDYnEdICc4D9fZSR8Of5K4DZJ6ia5rD00X8BKyEINMAAAAA=[Pipeline] sh -[2023-10-11T08:08:15.504Z] + mkdir -p build -ha:////4JCJHx/KZao/g1tlY65bIn9/4LXgwn0p9oUFUMHpuibQAAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYRDCgqEqGitNLzAJMbYse6MfSGpeBFf4w8EIlGxxWpnm3m+YJEiHCga4TR2FlNjRfC9mZYYKHYXT4NwdBYNYSKvRa2Hmlp9nLEm1jAny6GQsNTYeEoWDcNKOnVXpVdoyhPH6dtLyG17gwdkcjKzivyFMcL62reJ8Of5K4AxMBTVZvvpahferg0H/MAAAAA=[Pipeline] sh -[2023-10-11T08:08:15.762Z] + mkdir -p build -ha:////4HUmMyfQp5b2a7BIZN4VzYoUsIE7VX2vQyEzgiiIGgXFAAAApR+LCAAAAAAAAP9tjTESgjAQRRcYC1tLDxFES8fKNkPjCSLEmJDZjckiVJ7Iq3kHUWas/MWf/37zni9YpAgHikY4jZ3F1FgRfG+mJQaK3cXTIBydRUOYyGtR66GmVh9nrIk1zMlyKCQsNTaekkXDsJJO3VXpFZryxHH69hJy297gAZmczKwif2GMsL72bSL8ef4KYAwMRVXtPr3dhDd6FZf+wAAAAA==[Pipeline] sh -[2023-10-11T08:08:15.834Z] + mktemp -d /home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.XXXXXXXXXX -ha:////4OlOmmu6nEsBvGoiXDyrAYKlbV8+R3pCopMESuhjbz1wAAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYRDkKgQFa2VhheYxBg71p2xLyQVL+Jr/IFAJCq2WO1sM88XLFKEA0UjnMbOYmqsCL430xIDxe7iaRCOzqIhTOS1qPVQU6uPM9bEGuZkORQSlhobT8miYVhJp+6q9ApNeeI4fXsJuW1v8IBMTmZWkb8wRlhf+zYR/jx/BTAGhqLa7D69rcIb/zmYNsAAAAA=[Pipeline] echo -[2023-10-11T08:08:15.865Z] parts[6]: build -ha:////4JGkkZ9F76n9mz8YAwHoQyBHKoRg98WzCMLU/68IRP1AAAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQDkagQFa2VhheYxBg71p2xLyQVL+Jr/IFAJCq2WO1sM88XLFKEA0UjnMbOYmqsCL430xIDxe7iaRCOzqIhTOS1qPVQU6uPM9bEGuZkORQSlhobT8miYVhJp+6q9ApNeeI4fXsJuW1v8IBMTmZWkb8wRlhf+zYR/jx/BTAGhmK72X26qsIbPGq1HcAAAAA=[Pipeline] echo -[2023-10-11T08:08:15.876Z] hash: build_docker_run.3LqMDy8yF3 -ha:////4Ot9by6Rkdk3ji1HqlYqrFdPOqRklWhr60kfgrkcAGovAAAAph+LCAAAAAAAAP9tjTsOwjAQRDeJKGgpOYTDR1SIitZywwmMbYwTazfYDknFibgad8AQiYopRvOmec8XzGKAAwXLGoOtw6gc63xv82IDhfbiaWANnZkijOQNE2YQpM1xQkHJwJSihIrD3KDyFB3aBAveyLusvURbn1LI355D6fQNHlDwbE4ypC+MAZbXXkfCn+evAMYuQbVe7T692XZvfVuuBMAAAAA=[Pipeline] echo -[2023-10-11T08:08:15.886Z] tmp_dir /tmp/build/build_docker_run.3LqMDy8yF3 -ha:////4K+aK67Jahu6uyEhlrPsSem+9ZBNhPmij+v/OXih6ZELAAAAph+LCAAAAAAAAP9tjTESwiAURH+SsbC19BBEHa0cK1uGxhMgIJIw/0cgJpUn8mreQTQzVm6xs2+b93zBLAY4ULCsMdg6jMqxzvc2LzZQaC+eBtbQmSnCSN4wYQZB2hwnFJQMTClKqDjMDSpP0aFNsOCNvMvaS7T1KYX87TmUTt/gAQXP5iRD+sIYYHntdST8ef4KYOwSVOvV7tObbfcGus3vS8AAAAA=[Pipeline] sh -[2023-10-11T08:08:16.074Z] + mktemp -d /home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.XXXXXXXXXX -ha:////4Gj0vzdjIEB9yuduhqEJ39nw0GF/CNFL+Q0Snwtq2Nv+AAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYSjgKgQFa3lhhcY2xgn1l2wHZyKF/E1/kAgEhVbrHa2mecLFjHAgYJlrcHOYVSO9X6w02KZQnfxlFlLZ6YII3nDhMmCtDnOKCgZmFOUUHFYGlSeokObYMVbeZe1l2jrUwrTt+dQOn2DBxR8MicZ0hfGAOvroCPhz/NXAGOfoGqa7ac3u/4NP+Hgg8AAAAA=[Pipeline] echo -[2023-10-11T08:08:16.106Z] parts[6]: build -ha:////4FV5hI+ZeDP7qkmIc32Xn4fWCKIL6C7MHs9rVHoFRR0FAAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYSjgESDqGgtN7zA2MY4se6C7eBUvIiv8QcCkajYYrWzzTxfsIgBDhQsaw12DqNyrPeDnRbLFLqLp8xaOjNFGMkbJkwWpM1xRkHJwJyihIrD0qDyFB3aBCveyrusvURbn1KYvj2H0ukbPKDgkznJkL4wBlhfBx0Jf56/Ahj7BFXTbD+92fVv/LLNqMAAAAA=[Pipeline] echo -[2023-10-11T08:08:16.118Z] hash: build_docker_run.WKMAvXDf8n -ha:////4IrxH0p2GimVvoOXZhjvt6/PzRJ3VQ4VkAnFdp/Mm4BUAAAAph+LCAAAAAAAAP9tjTESwiAURH+SsbC19BBkooWFY2XL0HgCBEQS5v8IRFJ5Iq/mHYxmxsotdvZt854vWMQABwqWtQY7h1E51vvBTotlCt3FU2YtnZkijOQNEyYL0uY4o6BkYE5RQsVhaVB5ig5tghVv5V3WXqKtTylM355D6fQNHlDwyZxkSF8YA6yvg46EP89fAYx9gqpptp/e7Po3vYPWscAAAAA=[Pipeline] echo -[2023-10-11T08:08:16.129Z] tmp_dir /tmp/build/build_docker_run.WKMAvXDf8n -ha:////4PHcTFknqD7KV5axX2mg5HHbMXLzGnVYj4ZPSYesXBP9AAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYSjQIOEqGgtN7zA2MY4se6C7eBUvIiv8QcCkajYYrWzzTxfsIgBDhQsaw12DqNyrPeDnRbLFLqLp8xaOjNFGMkbJkwWpM1xRkHJwJyihIrD0qDyFB3aBCveyrusvURbn1KYvj2H0ukbPKDgkznJkL4wBlhfBx0Jf56/Ahj7BFXTbD+92fVvcp9ONsAAAAA=[Pipeline] sh -[2023-10-11T08:08:16.180Z] + echo -[2023-10-11T08:08:16.181Z] -ha:////4ETiKStCbR93/FMvj0PPhqT96EQH6Afr4tvDmmWKFmkSAAAApx+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQDSBQIUdFabniBsY1xYt0F2yGpeBFf4w8YIlGxxWpnm3m+YBYDHChY1hhsHUblWOd7mxcbKLQXTwNr6MwUYSRvmDCDIG2OEwpKBqYUJVQc5gaVp+jQJljwRt5l7SXa+pRC/vYcSqdv8ICCZ3OSIX1hDLC89joS/jx/BTB2Car1avvpza57A/ezQf7AAAAA[Pipeline] echo -[2023-10-11T08:08:16.223Z] Executing `build_dir=/home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.3LqMDy8yF3 .build/docker/_docker_run.sh bullseye-build.docker build-jars.sh 17 2>&1 | tee k8s-e2e_2__docker_run__bullseye-build.docker_build-jars__jdk17_cassandra_attempt_2.log` on cassandra-mk8d2-5vk0k -ha:////4C7oXkSdadM5kt/GcSb/J4WmafdloA3wFUYy2dI3JpVaAAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQThKgQFa3lhhcY2xgn1l2wHZyKF/E1/kAgEhVbrHa2mecLFjHAgYJlrcHOYVSO9X6w02KZQnfxlFlLZ6YII3nDhMmCtDnOKCgZmFOUUHFYGlSeokObYMVbeZe1l2jrUwrTt+dQOn2DBxR8MicZ0hfGAOvroCPhz/NXAGOfoNo0u09vm/4NiWJBLsAAAAA=[Pipeline] sh -[2023-10-11T08:08:16.424Z] + echo -[2023-10-11T08:08:16.424Z] -ha:////4IiaAW5OloAII+xrq7mQGUh+BKv1PPmswov056T81k9rAAAApR+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYSjKCWiorXc8ALjGOPEunNsB6fiRXyNPxCIRMUWq51t5vmCTQxwpGBYr3GwGJVl3k1mWSxTGK6OMuvpwhRhJKeZ0FlQp08rCkoa1hQlVBy2GpWjaNEk2PFe3mXtJJr6nMLyHTiUthvhAQVfzEmG9IU5wP42dZHw5/krgNknqJqm/XTb+DcMTk7mwAAAAA==[Pipeline] echo -[2023-10-11T08:08:16.453Z] Executing `build_dir=/home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.WKMAvXDf8n .build/docker/_docker_run.sh bullseye-build.docker build-jars.sh 11 2>&1 | tee k8s-e2e_2__docker_run__bullseye-build.docker_build-jars__jdk11_cassandra_attempt_2.log` on cassandra-mk8d2-btczb -ha:////4JeESaCQSdV5arTumsTbhU0h7G422kigZCKhm2SjRA4qAAAApR+LCAAAAAAAAP9tjTESgjAQRRcYC1tLDxEGKR0r2wyNJ4gkxkBmF5NFqDyRV/MORpmx8hd//vvNe75gFQMcKFjRGewdxtaJwY82LTFR6C+eJtHRWbSEkbwRjZka0ua4YENsYEmWQyFhbbD1FB1aho3s1F2VXqEtTxzSt5eQO32DB2QymVkF/sIcYHsddST8ef4KYB4YiqqqP13vhjfPHWPNwAAAAA==[Pipeline] sh -[2023-10-11T08:08:16.521Z] + cassandra_dir=/home/jenkins/agent/workspace/k8s-e2e build_dir=/home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.3LqMDy8yF3 .build/docker/_docker_run.sh bullseye-build.docker build-jars.sh 17 -[2023-10-11T08:08:16.521Z] + tee k8s-e2e_2__docker_run__bullseye-build.docker_build-jars__jdk17_cassandra_attempt_2.log -[2023-10-11T08:08:16.521Z] + '[' x/home/jenkins/agent/workspace/k8s-e2e '!=' x ']' -[2023-10-11T08:08:16.521Z] + '[' x/home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.3LqMDy8yF3 '!=' x ']' -[2023-10-11T08:08:16.521Z] + '[' -d /home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.3LqMDy8yF3 ']' -[2023-10-11T08:08:16.521Z] + echo ' from _docker_run' -[2023-10-11T08:08:16.521Z] from _docker_run -[2023-10-11T08:08:16.521Z] ++ grep 'property\s*name="java.default"' /home/jenkins/agent/workspace/k8s-e2e/build.xml -[2023-10-11T08:08:16.521Z] ++ sed -ne 's/.*value="\([^"]*\)".*/\1/p' -[2023-10-11T08:08:16.521Z] grep: /home/jenkins/agent/workspace/k8s-e2e/build.xml: No such file or directory -[2023-10-11T08:08:16.521Z] + java_version_default= -[2023-10-11T08:08:16.521Z] ++ grep 'property\s*name="java.supported"' /home/jenkins/agent/workspace/k8s-e2e/build.xml -[2023-10-11T08:08:16.521Z] ++ sed -ne 's/.*value="\([^"]*\)".*/\1/p' -[2023-10-11T08:08:16.521Z] grep: /home/jenkins/agent/workspace/k8s-e2e/build.xml: No such file or directory -[2023-10-11T08:08:16.521Z] + java_version_supported= -[2023-10-11T08:08:16.521Z] + '[' bullseye-build.docker == -h ']' -[2023-10-11T08:08:16.521Z] + dockerfile=bullseye-build.docker -[2023-10-11T08:08:16.521Z] + run_script=build-jars.sh -[2023-10-11T08:08:16.521Z] + java_version=17 -[2023-10-11T08:08:16.521Z] + command -v docker -[2023-10-11T08:08:16.521Z] + command -v timeout -[2023-10-11T08:08:16.521Z] + docker info -[2023-10-11T08:08:16.521Z] + '[' -f /home/jenkins/agent/workspace/k8s-e2e/build.xml ']' -[2023-10-11T08:08:16.521Z] + echo '/home/jenkins/agent/workspace/k8s-e2e/build.xml must exist' -[2023-10-11T08:08:16.521Z] /home/jenkins/agent/workspace/k8s-e2e/build.xml must exist -[2023-10-11T08:08:16.521Z] + exit 1 -ha:////4EcxSk7PEMTbV6MMmgnewrB4Wf3QVl1sjAar9fRApnwfAAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQDiqgQFa2VhheYxBg71p2xLyQVL+Jr/IFAJCq2WO1sM88XLFKEA0UjnMbOYmqsCL430xIDxe7iaRCOzqIhTOS1qPVQU6uPM9bEGuZkORQSlhobT8miYVhJp+6q9ApNeeI4fXsJuW1v8IBMTmZWkb8wRlhf+zYR/jx/BTAGhmK72X26qsIbSjFsBcAAAAA=[Pipeline] sh -[2023-10-11T08:08:16.757Z] + cassandra_dir=/home/jenkins/agent/workspace/k8s-e2e build_dir=/home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.WKMAvXDf8n .build/docker/_docker_run.sh bullseye-build.docker build-jars.sh 11 -[2023-10-11T08:08:16.757Z] + tee k8s-e2e_2__docker_run__bullseye-build.docker_build-jars__jdk11_cassandra_attempt_2.log -[2023-10-11T08:08:16.757Z] + '[' x/home/jenkins/agent/workspace/k8s-e2e '!=' x ']' -[2023-10-11T08:08:16.757Z] + '[' x/home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.WKMAvXDf8n '!=' x ']' -[2023-10-11T08:08:16.757Z] + '[' -d /home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.WKMAvXDf8n ']' -[2023-10-11T08:08:16.757Z] + echo ' from _docker_run' -[2023-10-11T08:08:16.757Z] from _docker_run -[2023-10-11T08:08:16.757Z] ++ grep 'property\s*name="java.default"' /home/jenkins/agent/workspace/k8s-e2e/build.xml -[2023-10-11T08:08:16.757Z] ++ sed -ne 's/.*value="\([^"]*\)".*/\1/p' -[2023-10-11T08:08:16.757Z] grep: /home/jenkins/agent/workspace/k8s-e2e/build.xml: No such file or directory -[2023-10-11T08:08:16.757Z] + java_version_default= -[2023-10-11T08:08:16.757Z] ++ grep 'property\s*name="java.supported"' /home/jenkins/agent/workspace/k8s-e2e/build.xml -[2023-10-11T08:08:16.757Z] ++ sed -ne 's/.*value="\([^"]*\)".*/\1/p' -[2023-10-11T08:08:16.757Z] grep: /home/jenkins/agent/workspace/k8s-e2e/build.xml: No such file or directory -[2023-10-11T08:08:16.757Z] + java_version_supported= -[2023-10-11T08:08:16.757Z] + '[' bullseye-build.docker == -h ']' -[2023-10-11T08:08:16.757Z] + dockerfile=bullseye-build.docker -[2023-10-11T08:08:16.757Z] + run_script=build-jars.sh -[2023-10-11T08:08:16.757Z] + java_version=11 -[2023-10-11T08:08:16.757Z] + command -v docker -[2023-10-11T08:08:16.757Z] + command -v timeout -[2023-10-11T08:08:16.757Z] + docker info -[2023-10-11T08:08:16.757Z] + '[' -f /home/jenkins/agent/workspace/k8s-e2e/build.xml ']' -[2023-10-11T08:08:16.757Z] + echo '/home/jenkins/agent/workspace/k8s-e2e/build.xml must exist' -[2023-10-11T08:08:16.757Z] /home/jenkins/agent/workspace/k8s-e2e/build.xml must exist -[2023-10-11T08:08:16.757Z] + exit 1 -ha:////4KRP5ukVWua6Y1JEFhXZK5nvaWrVKa9KM4YSB4ee4xgbAAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYSjKHSIitZKwwtMbIwT6y7YF5KKF/E1/oAhEhVbrHa2mecLVjHAgYIVncHeYWydGPxo0xIThf7iaRIdnUVLGMkb0ZipIW2OCzbEBpZkORQS1gZbT9GhZdjITt1V6RXa8sQhfXsJudM3eEAmk5lV4C/MAbbXUUfCn+evAOaBoaiq+tP1bngDSbo5m8AAAAA=[Pipeline] sh -[2023-10-11T08:08:16.838Z] + echo .build/docker/_docker_run.sh bullseye-build.docker build-jars.sh -[2023-10-11T08:08:16.838Z] .build/docker/_docker_run.sh bullseye-build.docker build-jars.sh -ha:////4OzvdbEGwqd93NTBsF29yoc5dgNokyMVCXk+ugzN2gcTAAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQDQqkQFa2VhheYxBg71p2xLyQVL+Jr/IFAJCq2WO1sM88XLFKEA0UjnMbOYmqsCL430xIDxe7iaRCOzqIhTOS1qPVQU6uPM9bEGuZkORQSlhobT8miYVhJp+6q9ApNeeI4fXsJuW1v8IBMTmZWkb8wRlhf+zYR/jx/BTAGhmK7qT69q8IbzJY2U8AAAAA=[Pipeline] echo -[2023-10-11T08:08:16.866Z] /home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.3LqMDy8yF3 -ha:////4Jfx824L1Fq0ab8iUqx1GYXtxB7s+G5Wj3MACWmzmtQ+AAAAqR+LCAAAAAAAAP9tjTEOwjAUQ39bdWBl5BApCMGCmFijLJwgpCGkjf4vSUo6cSKuxh1oqcSEB8u2ZL3XG8rg4UjesEZjazEoyzrXmzGxRL69OkqsoQtThIGcZkInQbU+zVVQ1DAry6HgsNCoHAWLJsKSN/IhKyfRVOfox+3AIbf1HZ6Q8ZEcpY/fMnhY3fo6EP44fwEwdBGKzXo3+XY/fcsPEDHOCsQAAAA=[Pipeline] dir -[2023-10-11T08:08:16.877Z] Running in /home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.3LqMDy8yF3 -ha:////4EREdvM8GSKn5CCTG+p7ZypAHieIw9NOHwZQr5n3xUtsAAAAqR+LCAAAAAAAAP9tjTEOwjAUQ39bdWBl5BCpEBIMqBNr1IUThCSEpNH/JUlpJ07E1bgDpZWY8GDZlqz3ekMZA9QUDHMaW4tRWtb53kyJDRTaq6eBObowSRjJa9booSGlT0ttKGlYlOVQcFhplJ6iRZNgzZ14iMoLNNU5hWk7csitusMTMj6RkwhpLmOAza1XkfDH+QuAsUtQbHf72Q/fb/kBi1zGC8QAAAA=[Pipeline] { -ha:////4OTuMzpcUyag7VLOukVKotxfDRvE1PIeosN4L/tNBBzKAAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQjRAESSkVrpeEFxjbGjnUXbAen4kV8jT8QJRIVW6x2tpn3B1YxQEPBMKexsxilZb0fzLRYptDdPGXm6MokYSSvWatzS0qfF2wpaVhSlFBxWGuUnqJFk2DDnXiK2gs09SWF6TtxKK16wAsKPpmTCGmGMcD2PqhI+PP8FcDYJ6h2+8Pcx/4LOdMwncAAAAA=[Pipeline] stash -[2023-10-11T08:08:16.921Z] Warning: overwriting stash ‘cassandra_17’ -ha:////4ER2/PQKTY89z8wiBT055TLIrDs0GHeDumebWNDvE8LvAAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQjRIEQSkVrpeEFxjbGjnUXbAen4kV8jT8QJRIVW6x2tpn3B1YxQEPBMKexsxilZb0fzLRYptDdPGXm6MokYSSvWatzS0qfF2wpaVhSlFBxWGuUnqJFk2DDnXiK2gs09SWF6TtxKK16wAsKPpmTCGmGMcD2PqhI+PP8FcDY9wmq3f449+ELXtm4hcAAAAA=[Pipeline] } -ha:////4P9jP7NUDBiGxS9+roWQaIfKNuaS8YHcWsmrb3aE6xfnAAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQDAtEgKlrLDS8wtjFOrLtgOyQVL+Jr/AFDJCq2WO1sM88XzGKAAwXLGoOtw6gc63xv82IDhfbiaWANnZkijOQNE2YQpM1xQkHJwJSihIrD3KDyFB3aBAveyLusvURbn1LI355D6fQNHlDwbE4ypC+MAZbXXkfCn+evAMauS1Ctt6tPb3ZvAqXibcAAAAA=[Pipeline] // dir -ha:////4Dz7Zn6Cs5n91+owK1bKmnHj9Ata6P/uwCZC4NG14FgbAAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYRDJKgQFa2VhheYxBg71p2xLyQVL+Jr/IFAJCq2WO1sM88XLFKEA0UjnMbOYmqsCL430xIDxe7iaRCOzqIhTOS1qPVQU6uPM9bEGuZkORQSlhobT8miYVhJp+6q9ApNeeI4fXsJuW1v8IBMTmZWkb8wRlhf+zYR/jx/BTAGhqLa7D69rcIbTUUVMsAAAAA=[Pipeline] sh -[2023-10-11T08:08:17.073Z] + echo .build/docker/_docker_run.sh bullseye-build.docker build-jars.sh -[2023-10-11T08:08:17.073Z] .build/docker/_docker_run.sh bullseye-build.docker build-jars.sh -ha:////4IxgJ8jaX2UEu/P/dEXuklgyFMPTkDBBMB+oOO0eBRq6AAAApR+LCAAAAAAAAP9tjTESwiAURH+SsbC19BBkonaOlS1D4wkQEEmY/yMQSeWJvJp3MJoZK7fY2bfNe75gEQMcKFjWGuwcRuVY7wc7LZYpdBdPmbV0ZoowkjdMmCxIm+OMgpKBOUUJFYelQeUpOrQJVryVd1l7ibY+pTB9ew6l0zd4QMEnc5IhfWEMsL4OOhL+PH8FMPYJqqbZfnq36d9KCyzIwAAAAA==[Pipeline] echo -[2023-10-11T08:08:17.131Z] /home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.WKMAvXDf8n -ha:////4EsRwwEnVBSV8E3xZ7a2U6lvocrnErcMyvAIjjE85dRSAAAAqB+LCAAAAAAAAP9tjbEOgjAYhH8gDK6OPkQJwc04uTYsPkFtay00/49tsUw+ka/mOwiSOHnD5e6Sy/d6Qxk8HMkb1mnsLQZp2eBGMyeWyPdXR4l1dGGSMJDTrNWpJaVPa20paliV5VBw2GiUjoJFE2HLO/EQlRNoqnP083bgkFt1hydkfCZH4eO3TB52t1EFwh/nLwCmIUJR183i+2b5lh9I4g+txAAAAA==[Pipeline] dir -[2023-10-11T08:08:17.143Z] Running in /home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.WKMAvXDf8n -ha:////4FkVLvAYd3ULyPpZ6n8USm6S4fhk9bLfyjAZmCvATAZoAAAAqB+LCAAAAAAAAP9tjbEOgjAYhH8gDK6OPkSJkc04sTYsPkEttRaa/8e2WCafyFfzHayQOHnD5e6Sy/d6Q+kdnMhp1iscDHpp2GgnnRKL5Iarpch6ujBJ6Mkq1qrYUqeatbYUFKzKcig4bBRKS96gDrDlvXiIygrU1Tm4tB055Ka7wxMynshBuLCU2cHuNnWe8Mf5C4B5DFDs68Pi9fdbfgDjYSWtxAAAAA==[Pipeline] { -ha:////4AOWWt63DFaDbjsGN8v0YGjB+WVKqrscoBWVL8rbL2WbAAAApR+LCAAAAAAAAP9tjbEOgjAURR8QB1dHP+IRE5yME2vTxS+opdZC8x62RZj8In/Nf5BA4uQdbu65y3l/YBMDnDlYbA11jqJ22PvBzgtHDt3N84gtX1EzRfYGpRklN6ZeUXIysCbLoRCwNaQ9R0c2wU606qlKr8iWlxTm7yQgd80DXpCJ2ZxUSAtMAfb3oYlMP89fAUx9guJQVUsf+y/b0T/HwAAAAA==[Pipeline] stash -[2023-10-11T08:08:17.184Z] Warning: overwriting stash ‘cassandra_11’ -ha:////4H8aaF8TGNKc/DGhqM/LGgBC2vBJduP515u4C8mb5lnpAAAAph+LCAAAAAAAAP9tjbEOgjAURR8QB1dHP+IRE+JinFibLn5BLbUWmvewLcLkF/lr/oMEEifvcHPPXc77A5sY4MzBYmuocxS1w94Pdl44cuhunkds+YqaKbI3KM0ouTH1ipKTgTVZDoWArSHtOTqyCXaiVU9VekW2vKQwfycBuWse8IJMzOakQlpgCrC/D01k+nn+CmDq+wTFoTouXX0B02d9r8AAAAA=[Pipeline] } -ha:////4PXl8jrmbpIbDYtG4ortDiPOiIdNmi2kWdXDfidKLjh4AAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQjBBIFSkVrpeEFxjbGjnUXbAen4kV8jT8QJRIVW6x2tpn3B1YxQEPBMKexsxilZb0fzLRYptDdPGXm6MokYSSvWatzS0qfF2wpaVhSlFBxWGuUnqJFk2DDnXiK2gs09SWF6TtxKK16wAsKPpmTCGmGMcD2PqhI+PP8FcDY9wmq3eE49/4LxPlul8AAAAA=[Pipeline] // dir -ha:////4LaiHIm7Ru11fWmrVdeF4XdSCivafGWpoTdN9SOWJxKCAAAApx+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYSjCAokREVrueEFxjbGiXUXbAen4kV8jT8QiETFFqudbeb5gkUMcKBgWWuwcxiVY70f7LRYptBdPGXW0pkpwkjeMGGyIG2OMwpKBuYUJVQclgaVp+jQJljxVt5l7SXa+pTC9O05lE7f4AEFn8xJhvSFMcD6OuhI+PP8FcDYJ6iaZvPp7a5/A8DjwzLAAAAA[Pipeline] sh -[2023-10-11T08:08:17.315Z] + xz -f k8s-e2e_2__docker_run__bullseye-build.docker_build-jars__jdk17_cassandra_attempt_2.log -ha:////4DEM1gPbUyx4922SwFKovOf0EXhc4X09YCv5wCNKYcbpAAAAqh+LCAAAAAAAAP9tjTEOwjAUQ39bdWBl5BApSDAgxMQaZeEEIQ0hbfR/SVLSiRNxNe5ASyUmPFi2Jeu93lAGD0fyhjUaW4tBWda53oyJJfLt1VFiDV2YIgzkNBM6Car1aa6CooZZWQ4Fh4VG5ShYNBGWvJEPWTmJpjpHP24HDrmt7/CEjI/kKH38lsHD6tbXgfDH+QuAoYtQbNa7ybf76Vt+AEu9Pz7EAAAA[Pipeline] dir -[2023-10-11T08:08:17.363Z] Running in /home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.3LqMDy8yF3 -ha:////4NSngREuPTwje0jj/dkAIYOMXTtztimKH0JonKdWs1YwAAAAqh+LCAAAAAAAAP9tjTEOwjAUQ39bdWBl5BApSDAgxMQaZeEEIQ0hbfR/SVLSiRNxNe5ASyUmPFi2Jeu93lAGD0fyhjUaW4tBWda53oyJJfLt1VFiDV2YIgzkNBM6Car1aa6CooZZWQ4Fh4VG5ShYNBGWvJEPWTmJpjpHP24HDrmt7/CEjI/kKH38lsHD6tbXgfDH+QuAoYtQbLb7yXfr6Vt+ACDA9HrEAAAA[Pipeline] { -ha:////4F31oT8wjHDZ4VvkV6iAdIFZRPon5W8sFcedHuAeZJpGAAAApR+LCAAAAAAAAP9tjTESgjAQRRcYC1tLD7FIYeVY0WbSeIIYYgxkdjEJQuWJvJp3kIEZK3/x57/fvPcHNjHAmYPF1lDnKGqHvR/svHDk0N08j9jyFTVTZG9QmlFyY+oVJScDa7IcCgFbQ9pzdGQT7ESrnqr0imx5SWH+TgJy1zzgBZmYzUmFtMAUYH8fmsj08/wVwNT3CYrqWC19+AKbrAa4wAAAAA==[Pipeline] } -ha:////4LnLjmTBtvmb0v3Smj/8l7wtEhKO4ndaT33NHrJabZVPAAAApx+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQjEBQIUdFabniBsY1xYt0F2yGpeBFf4w8YIlGxxWpnm3m+YBYDHChY1hhsHUblWOd7mxcbKLQXTwNr6MwUYSRvmDCDIG2OEwpKBqYUJVQc5gaVp+jQJljwRt5l7SXa+pRC/vYcSqdv8ICCZ3OSIX1hDLC89joS/jx/BTB2XYJqtV1/erN7A+M/KenAAAAA[Pipeline] // dir -ha:////4BPgxGSLl/leuPXAmbWLfryOpmIpxeBytbaIxGk3N9xjAAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQDQqkQFa2VhheYxBg71p2xLyQVL+Jr/IFAJCq2WO1sM88XLFKEA0UjnMbOYmqsCL430xIDxe7iaRCOzqIhTOS1qPVQU6uPM9bEGuZkORQSlhobT8miYVhJp+6q9ApNeeI4fXsJuW1v8IBMTmZWkb8wRlhf+zYR/jx/BTAGhmK7qT5d7cIb+E3hAcAAAAA=[Pipeline] echo -[2023-10-11T08:08:17.462Z] Complete '.build/docker/_docker_run.sh bullseye-build.docker build-jars.sh 17' on cassandra-mk8d2-5vk0k -ha:////4Eg8msn3dQgSycRuI9wHKoTHl1fhF87E81EXxNzFIrKIAAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQDEqkQFa2VhheYxBg71p2xLyQVL+Jr/IFAJCq2WO1sM88XLFKEA0UjnMbOYmqsCL430xIDxe7iaRCOzqIhTOS1qPVQU6uPM9bEGuZkORQSlhobT8miYVhJp+6q9ApNeeI4fXsJuW1v8IBMTmZWkb8wRlhf+zYR/jx/BTCGwFBsq92nN9Ub9oMj58AAAAA=[Pipeline] } -ha:////4NGNCXAjGqxPKiza35f/BQMOKCMOn0hTIAy1dzKn6DVUAAAApR+LCAAAAAAAAP9tjTESgjAQRRcYC1tLDxGGAhvHijZD4wliEmMgs4vJIlSeyKt5BxmZsfJX/73mvd6wSRFOFJ3oLPYek/ZiCKNbnpgo9tdAk+joIjRhomBFa6eWjG1WbIktrMtyKCRsLepAyaNj2MlOPVQZFLryzHFxRwm5N3d4QiaXMqvIX5gj7G+jSYS/zt8AzMPAUFR1zZAfqg/enhxmvwAAAA==[Pipeline] // retry -ha:////4BXL4JV9aEW6zxQkfD+PeZA1oOgo63QAcNs2M2l5ZiTfAAAApx+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQjJEBCERWtlYYXmNgYJ9ZdsC8kFS/ia/wBi0hUbLUzzbzesIgBjhSsaA12DmPjRO8Hm54YKXRXT6No6SIawkjeiNqMNWlzmrEmNjAvy6GQsDTYeIoOLcNKtuqhSq/QlmcOyVUScqfv8IRMpjKrwF+YAqxvg46Ev87fAEx9z1BsdnuGfHv4AMAGZdy/AAAA[Pipeline] } -[2023-10-11T08:08:17.568Z] + xz -f k8s-e2e_2__docker_run__bullseye-build.docker_build-jars__jdk11_cassandra_attempt_2.log -ha:////4O607biu1k392LQj+Hfxyse0Fww7ZoLJIIpYXqMXwz5xAAAApx+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQjJBBIERWtlYYXmNgYJ9ZdsC8kFS/ia/wBi0hUbLUzzbzesIgBjhSsaA12DmPjRO8Hm54YKXRXT6No6SIawkjeiNqMNWlzmrEmNjAvy6GQsDTYeIoOLcNKtuqhSq/QlmcOyVUScqfv8IRMpjKrwF+YAqxvg46Ev87fAEx9z1BsdnuGfHv4APPlPmC/AAAA[Pipeline] // node -ha:////4CU9CMOjTF0uVoX+yBjbXTqoh9E7jP/SrHRQtEn8JrezAAAApx+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQjJEBIERWtlYYXmNgYJ9ZdsC8kFS/ia/wBi0hUbLUzzbzesIgBjhSsaA12DmPjRO8Hm54YKXRXT6No6SIawkjeiNqMNWlzmrEmNjAvy6GQsDTYeIoOLcNKtuqhSq/QlmcOyVUScqfv8IRMpjKrwF+YAqxvg46Ev87fAEx9z1BsdgeGfLv/ACF60Ha/AAAA[Pipeline] } -[2023-10-11T08:08:17.655Z] Failed in branch 17 -ha:////4IbKU0jhPWMvVLsQ6wLZYYhgHd42fWPo/y8zooHxtUHOAAAAqh+LCAAAAAAAAP9tjTEOwjAUQ39bdWBl5BCpKsSAEBNr1IUThCaEtNH/JUlJJ07E1bgDKZWY8GDZlqz3ekPpHRzJadYp7A361rDBjjolFsn1V0uRdXRhLaEnq1ijYkNSnZbaUFCwKMuh4LBS2FryBnWANe/EQ1RWoK7OwaXtwCE38g5PyHgiB+HCt0wONrdResIf5y8ApiFAUdfb2Xf7+Vt+AJrK46rEAAAA[Pipeline] dir -[2023-10-11T08:08:17.695Z] Running in /home/jenkins/agent/workspace/k8s-e2e/build/build_docker_run.WKMAvXDf8n -ha:////4GTE87EHhwNKn7Xsw8j3guwQLLmjWQbJnw96trPYMi7xAAAAqh+LCAAAAAAAAP9tjTEOwjAUQ39bdWBl5BApDCAhxMQaZeEEIQ0hbfR/SVLSiRNxNe5ASyUmPFi2Jeu93lAGD0fyhjUaW4tBWda53oyJJfLt1VFiDV2YIgzkNBM6Car1aa6CooZZWQ4Fh4VG5ShYNBGWvJEPWTmJpjpHP24HDrmt7/CEjI/kKH38lsHD6tbXgfDH+QuAoYtQbLb7yXfr6Vt+ADgDipbEAAAA[Pipeline] { -ha:////4EIuum7iLzKSjRi8KGWZE4i9hJy4N/O9UHe+psuTXwGHAAAApR+LCAAAAAAAAP9tjTESgjAQRRcYC1tLD7FIY+NY0WbSeIIYYgxkdjEJQuWJvJp3kIEZK3/x57/fvPcHNjHAmYPF1lDnKGqHvR/svHDk0N08j9jyFTVTZG9QmlFyY+oVJScDa7IcCgFbQ9pzdGQT7ESrnqr0imx5SWH+TgJy1zzgBZmYzUmFtMAUYH8fmsj08/wVwNT3CYrqWC19+AK7+KQdwAAAAA==[Pipeline] } -ha:////4JEHC7NWIn7BF5AltrB1KyWLCBScREga/BLfyvKDmTCcAAAApx+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQjkEBCiIrWcsMLjG2ME+su2A5JxYv4Gn/AEImKLVY728zzBbMY4EDBssZg6zAqxzrf27zYQKG9eBpYQ2emCCN5w4QZBGlznFBQMjClKKHiMDeoPEWHNsGCN/Iuay/R1qcU8rfnUDp9gwcUPJuTDOkLY4DltdeR8Of5K4Cx6xJUq+3605vdG0EJvX7AAAAA[Pipeline] // dir -ha:////4LuwC9srVs/68ZmddGk+porFovMNkOsvDw576EI4cun/AAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYSjKBINoqK10vACExvjxLoL9oWk4kV8jT9giETFFqudbeb5glUMcKBgRWewdxhbJwY/2rTERKG/eJpER2fREkbyRjRmakib44INsYElWQ6FhLXB1lN0aBk2slN3VXqFtjxxSN9eQu70DR6QyWRmFfgLc4DtddSR8Of5K4B5YCiqqv70rh7eZe6z0sAAAAA=[Pipeline] echo -[2023-10-11T08:08:17.790Z] Complete '.build/docker/_docker_run.sh bullseye-build.docker build-jars.sh 11' on cassandra-mk8d2-btczb -ha:////4EQidcBr/Q96j3cQwuQ9ImFYAsF3iuT88wMeO0mVrMv3AAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYSjCESDqGgtN7zA2MY4se6C7eBUvIiv8QcCkajYYrWzzTxfsIgBDhQsaw12DqNyrPeDnRbLFLqLp8xaOjNFGMkbJkwWpM1xRkHJwJyihIrD0qDyFB3aBCveyrusvURbn1KYvj2H0ukbPKDgkznJkL4wBlhfBx0Jf56/Ahj7PkHV7LafbjZvYRDUmcAAAAA=[Pipeline] } -ha:////4HUwhRy+tmzNhB/LLyPyZXF/+vxo+8AXHWKGyployz6AAAAApR+LCAAAAAAAAP9tjTESgjAQRRcYC1tLDxHGAhrHijZD4wliiDGQ2cVkESpP5NW8gxmZsfJX/73mvd6wiQFOFKzoDQ4Oo3Zi9JNNT8wUhqunWfR0EZowkjeiNXNLnWlWbIkNrMtyKCRsDWpP0aFl2MlePVTpFdryzCG5o4TcdXd4QiZTmVXgLywB9repi4S/zt8ALOPIUBzqiiGvqw9aQJlQvwAAAA==[Pipeline] // retry -ha:////4ER2ZXnYRMaYyjuLr9+JtU3vzrTDtgzshWQuH6pFx2nZAAAAph+LCAAAAAAAAP9tjbEOgjAURR8lDq6OfkSJJrIYJteGxS+opdZC8x62D2Hyi/w1/0EiiZN3uucs5/WGVYpQUXSytdh5TMbLPgxufnKk2F0DjbKlizSEiYKVtR1rauxpwZrYwrJMQK5gbdEESh4dw0a1+qGLoNEVZ46zOyoQvrnDEzI1l1lH/sIUYXsbmkT46/wNwNT3DPmuLBnEYf8BlPREY78AAAA=[Pipeline] } -ha:////4Lwrk0+owB8TvXmHrc4/Ay74hqapzxQq+ZWm2YnPOZvrAAAAph+LCAAAAAAAAP9tjbEOgjAURR8lDq6OfkSJiZHBMLk2LH5BLbUWmvewfQiTX+Sv+Q8SSZy80z1nOa83rFKEiqKTrcXOYzJe9mFw85Mjxe4aaJQtXaQhTBSsrO1YU2NPC9bEFpZlAnIFa4smUPLoGDaq1Q9dBI2uOHOc3VGB8M0dnpCpucw68hemCNvb0CTCX+dvAKa+Z8h3h5JB7MsP/+Jpwb8AAAA=[Pipeline] // node -ha:////4JSiT+rJH/vGCZBkoFxBeBoIwab3FTO6zq+biRRXX0HLAAAApx+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQjJEBIERWtlYYXmNgYJ9ZdsC8kFS/ia/wBi0hUbLUzzbzesIgBjhSsaA12DmPjRO8Hm54YKXRXT6No6SIawkjeiNqMNWlzmrEmNjAvy6GQsDTYeIoOLcNKtuqhSq/QlmcOyVUScqfv8IRMpjKrwF+YAqxvg46Ev87fAEx9z1Bs9geGfLv7AAYxMd6/AAAA[Pipeline] } -[2023-10-11T08:08:17.960Z] Failed in branch 11 -ha:////4M4xhDGFlyQ969rlFphQCklgOad0eykq75tyyfDotzqxAAAApx+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQjBEJCERWtlYYXmNgYJ9ZdsC8kFS/ia/wBi0hUbLUzzbzesIgBjhSsaA12DmPjRO8Hm54YKXRXT6No6SIawkjeiNqMNWlzmrEmNjAvy6GQsDTYeIoOLcNKtuqhSq/QlmcOyVUScqfv8IRMpjKrwF+YAqxvg46Ev87fAEx9z1Bs9geGfLf9AJZHDvy/AAAA[Pipeline] // parallel -ha:////4Huvapl6UmqNJHNboiAjdIb3oCwloychgB2gsW8mkwTdAAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQDCIkioqK10vACExvjxLoL9oWk4kV8jT9gEYmKrXammdcbFjHAkYIVrcHOYWyc6P1g0xMjhe7qaRQtXURDGMkbUZuxJm1OM9bEBuZlORQSlgYbT9GhZVjJVj1U6RXa8swhuUpC7vQdnpDJVGYV+AtTgPVt0JHw1/kbgKnvGYrtYcOQ73cffC1xCr8AAAA=[Pipeline] } -[2023-10-11T08:08:18.034Z] Failed in branch cassandra -ha:////4FCJj8fK/z1n++ur8SE9Mi074/K+rm/cGCfIp7bPwhn6AAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYSjSEgUiIrWSsMLTGyME+vO2BecihfxNf5ARCQqttqZZl5vWKUIR4pW9AYHh6lzIvjRzk9kisPVUxY9XURHmMgb0ZrckjanBVtiA8uKEioJa4Odp+TQMmxkrx6q9gptfeY4u4OE0uk7PKGQc5lV5C9MEba3USfCX+dvAKYQGKpm3zCUu+YDY68kWL8AAAA=[Pipeline] // parallel -ha:////4BSEHAlgHp+GxTpIzWn/farH5sBtlALF5TX+EoFRMcMpAAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQjoEAooqK10vACExvjxLoL9oWk4kV8jT9gEYmKrXammdcbFjHAkYIVrcHOYWyc6P1g0xMjhe7qaRQtXURDGMkbUZuxJm1OM9bEBuZlORQSlgYbT9GhZVjJVj1U6RXa8swhuUpC7vQdnpDJVGYV+AtTgPVt0JHw1/kbgKnvGYrNfsuQ7w4fOMMqn78AAAA=[Pipeline] } -ha:////4A475TBTWyzvJnVlBnxkfXcJq90X161ejM5jITGT5F2qAAAAph+LCAAAAAAAAP9tjbEOgjAURR8QB1dHP6LEMGhimFwbFr+g0loLzXvYPoTJL/LX/AcbSZy80z1nOa83rGKAmoIVncHeYWydGPxo0xMThf7qaRIdXURLGMkb0ZipIW1OCzbEBpZlORQS1gZbT9GhZdjITj1U6RXa8swhuaOE3Ok7PCGTqcwq8BfmANvbqCPhr/M3APMwMBS7fcWQV4cPCyBxI78AAAA=[Pipeline] // stage -ha:////4H2pvlu8zi0A9yo4q1YOMhue34Di9h4dCj7VLANSBG33AAAAph+LCAAAAAAAAP9tjbEOgjAURR8lDq6OfkSJ0YTBMLk2LH5BLbUWmvewfQiTX+Sv+Q8SSZy80z1nOa83rFKEiqKTrcXOYzJe9mFw85Mjxe4aaJQtXaQhTBSsrO1YU2NPC9bEFpZlAnIFa4smUPLoGDaq1Q9dBI2uOHOc3VGB8M0dnpCpucw68hemCNvb0CTCX+dvAKa+Z8h35YFB7MsPIg3Lrr8AAAA=[Pipeline] } -[2023-10-11T08:08:18.167Z] Failed in branch artifacts -ha:////4JoKjS4csPAHh+XSQkaRAJ7Nan1AxUAvAUGj5U7++NZ/AAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQjhIAioqK10vACExvjxLoL9oWk4kV8jT9gEYmKrXammdcbFjHAkYIVrcHOYWyc6P1g0xMjhe7qaRQtXURDGMkbUZuxJm1OM9bEBuZlORQSlgYbT9GhZVjJVj1U6RXa8swhuUpC7vQdnpDJVGYV+AtTgPVt0JHw1/kbgKnvGYrNYceQb/cfEe6QEr8AAAA=[Pipeline] // parallel -ha:////4IjKPOzWPKn87FuXGv6v20Gj7MXeMdcPSxcUlGEB9xElAAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQjhIAioqK10vACExvjxLoL9oWk4kV8jT9gEYmKrXammdcbFjHAkYIVrcHOYWyc6P1g0xMjhe7qaRQtXURDGMkbUZuxJm1OM9bEBuZlORQSlgYbT9GhZVjJVj1U6RXa8swhuUpC7vQdnpDJVGYV+AtTgPVt0JHw1/kbgKnvGYrNYc+Qb3cfBc0NDb8AAAA=[Pipeline] } -ha:////4Cu7XnBBzxBEAQE3qwenOays9OyXgUEJ+toemKtu6LKtAAAAph+LCAAAAAAAAP9tjbEOgjAURR8lDq6OfkSJ0YTBMLk2LH5BLbUWmvewfQiTX+Sv+Q8SSZy80z1nOa83rFKEiqKTrcXOYzJe9mFw85Mjxe4aaJQtXaQhTBSsrO1YU2NPC9bEFpZlAnIFa4smUPLoGDaq1Q9dBI2uOHOc3VGB8M0dnpCpucw68hemCNvb0CTCX+dvAKa+Z8h3Zckg9ocPNi5Wsb8AAAA=[Pipeline] // stage -ha:////4B6PUu9VtfbiU1xrMkiyNP9iTpvwJ9SlrgE+FNiiDv5zAAAAqR+LCAAAAAAAAP9tjbEOgjAURR8QBldHP6KoiybEybVh8Qsq1Fpo3sP2YZn8In/NfxAlcfJO99zk5jxfkAcPB/JGtBo7i6G2oneDmZqI5LuLoyhaOouaMJDTotKxokYfZ6yINcxJUsgkLDTWjoJFw7CUrbqrwik0xYn9tJUSUtvc4AGJnMysPH9h9LC6Dk0g/Hn+CmDsGdLtmiHb7Pafa/4G6SLPWMMAAAA=[Pipeline] stage -ha:////4PYZQF1Wieo/hX0OtbT+jgQTvx8cx+1tSNs2vTbNAG0qAAAAqB+LCAAAAAAAAP9tjTEOwjAUQ39bdWBl5BCpmAChTqxRF04QkhCSRv+XJKWdOBFX4w6UVmLCg2Vbst7rDWUMUFMwzGlsLUZpWed7MyU2UGivngbm6MIkYSSvWaOHhpQ+LbWhpGFRlkPBYaVReooWTYI1d+IhKi/QVOcUpu3IIbfqDk/I+EROIqS5jAE2t15Fwh/nLwDGLkGx3e1nP3y/5QdgoAvsxAAAAA==[Pipeline] { (Test) -Stage "Test" skipped due to earlier failure(s) -ha:////4FTxrxZV3fKAVlotJvyComqQs+bCY6IjcVub0S0CqMoMAAAAqR+LCAAAAAAAAP9tjTEOwjAUQ39bdWBl5BApTIAQE2uUhROENIS00f8lSUknTsTVuAMtlZjwYNmWrPd6Qxk8HMkb1mhsLQZlWed6MyaWyLdXR4k1dGGKMJDTTOgkqNanuQqKGmZlORQcFhqVo2DRRFjyRj5k5SSa6hz9uB045La+wxMyPpKj9PFbBg+rW18Hwh/nLwCGLkKx2e4n362nb/kBLs3ppsQAAAA=[Pipeline] parallel -ha:////4OoCSy8HL6Jm9R2p9p3XZ1mgzfTPgYOvee4XkerB6dfGAAAAqB+LCAAAAAAAAP9tjTEOwjAUQ39bdWBl5BApLAgJdWKNunCCkISQNPq/JCntxIm4GnegtBITHizbkvVebyhjgJqCYU5jazFKyzrfmymxgUJ79TQwRxcmCSN5zRo9NKT0aakNJQ2LshwKDiuN0lO0aBKsuRMPUXmBpjqnMG1HDrlVd3hCxidyEiHNZQywufUqEv44fwEwdgmK3WE7+/77LT+XwWnKxAAAAA==[Pipeline] { (Branch: lint) -ha:////4NWb5oDX5lkOlGH/X8bKfxoFNdrAzTw221lxUv+zIibrAAAAqB+LCAAAAAAAAP9tjTEOwjAUQ39bdWBl5BApTCChTqxRF04QkhCSRv+XJKWdOBFX4w6UVmLCg2Vbst7rDWUMUFMwzGlsLUZpWed7MyU2UGivngbm6MIkYSSvWaOHhpQ+LbWhpGFRlkPBYaVReooWTYI1d+IhKi/QVOcUpu3IIbfqDk/I+EROIqS5jAE2t15Fwh/nLwDGLkGxO2xn33+/5QcyEjUBxAAAAA==[Pipeline] { (Branch: debian) -ha:////4KK/4slUiT7PR4El7DHlJhI8GFFk2dVvtJgoIXWJtQ5/AAAAqB+LCAAAAAAAAP9tjbEOgjAYhH8gDK6OPkTRjcQ4sTYsPkEttRaa/8e2WCafyFfzHayQOHnD5e6Sy/d6Q+kdnMhp1iscDHpp2GgnnRKL5Iarpch6ujBJ6Mkq1qrYUqeatbYUFKzKcig4bBRKS96gDrDlvXiIygrU1Tm4tB055Ka7wxMynshBuLCU2cHuNnWe8Mf5C4B5DFAc6v3i9fdbfgDnoGPwxAAAAA==[Pipeline] { (Branch: redhat) -ha:////4HCxzFhe+wu4Cnhq6pIdvYlPa6Bs4/QUIFKEV8pzoxhzAAAAqB+LCAAAAAAAAP9tjTEOwjAUQ39bdWBl5BApbCDUiTXqwglCEkLS6P+SpLQTJ+Jq3IHSSkx4sGxL1nu9oYwBagqGOY2txSgt63xvpsQGCu3V08AcXZgkjOQ1a/TQkNKnpTaUNCzKcig4rDRKT9GiSbDmTjxE5QWa6pzCtB055Fbd4QkZn8hJhDSXMcDm1qtI+OP8BcDYJSh2++3sh++3/ABCcz87xAAAAA==[Pipeline] { (Branch: centos7) -ha:////4GYZBQRSCoNoooFWCmbdq2lokdbgW5T99qxNdBlJ8tnZAAAAqB+LCAAAAAAAAP9tjTEOwjAUQ39bdWBl5BBp2UCIiTXqwglCE0La6P+SpKQTJ+Jq3IGUSkx4sGxL1nu9ofQOjuQ06xT2Bn1r2GBHnRKL5Pqrpcg6urCW0JNVrFGxIalOS20oKFiU5VBwWClsLXmDOsCad+IhKitQV+fg0nbgkBt5hydkPJGDcOFbJgeb2yg94Y/zFwDTEKDY7urZ9/X8LT8+KUe6xAAAAA==[Pipeline] { (Branch: stress) -ha:////4HLMp8QT2N/E1ClnSsGYPICKWJgM0+sEnS8l5TisY4eOAAAAqB+LCAAAAAAAAP9tjTEOwjAUQ39bdWBl5BAp3UCIiTXqwglCG0LS6P+SpKQTJ+Jq3IGUSkx4sGxL1nu9ofQOjuQUMxJ7jb7VbLCjSolFcv3VUmSGLqwl9GQla2RsqJOnpTYUJCzKcig4rCS2lrxGFWDNjXiIygpU1Tm4tB045Lq7wxMynshBuPAtk4PNbew84Y/zFwDTEKCod9vZ9/X8LT+b+htxxAAAAA==[Pipeline] { (Branch: fqltool) -ha:////4I4UqBcBiCUrgoecV/abvCOJVupO3zj7CQ9tZD9c1Kc+AAAAqh+LCAAAAAAAAP9tjTEOwjAUQ39bdWBl5BCpYEAgxMQaZeEEIQ0hbfR/SVLSiRNxNe5ASyUmPFi2Jeu93lAGD0fyhjUaW4tBWda53oyJJfLt1VFiDV2YIgzkNBM6Car1aa6CooZZWQ4Fh4VG5ShYNBGWvJEPWTmJpjpHP24HDrmt7/CEjI/kKH38lsHD6tbXgfDH+QuAoYtQrHfbyfeb6Vt+ANUtshjEAAAA[Pipeline] stage -ha:////4Ma2ARK3ryYYAQJ5GfnY2hz/4pyP/wQ0jAXzgqHvt8i0AAAAqB+LCAAAAAAAAP9tjTEOwjAUQ39bdWBl5BCpgAmhTqxRF04QkhCSRv+XJKWdOBFX4w6UVmLCg2Vbst7rDWUMUFMwzGlsLUZpWed7MyU2UGivngbm6MIkYSSvWaOHhpQ+LbWhpGFRlkPBYaVReooWTYI1d+IhKi/QVOcUpu3IIbfqDk/I+EROIqS5jAE2t15Fwh/nLwDGLkGxPexm33+/5QeKHH4NxAAAAA==[Pipeline] { (lint) -ha:////4N3WXibb33ZxYjApqEQSyv4rkbrMZXLjUKiiv1J/xRydAAAAqh+LCAAAAAAAAP9tjUEKwjAURH9bunDr0kOkCIKKuHIbsvEEMY0xbfi/JqnpyhN5Ne9ga8GVsxhmBob3ekMZPBzJG9ZobC0GZVnnejMmlsi3V0eJNXRhijCQ00zoJKjWp7kKihpmZTkUHBYalaNg0URY8kY+ZOUkmuoc/bgdOOS2vsMTMj6So/TxWwYPq1tfB8If5y8Ahi5Csd5tJ99vpm/5AaeCTlXEAAAA[Pipeline] stage -ha:////4MJZUTmwEToGdPc/gOOXUXSXSmvU0AtYr28G+ojhZFmUAAAAqR+LCAAAAAAAAP9tjTEOwjAUQ39bdWBl5BCpkGBAqBNr1IUThCSEpNH/JUlpJ07E1bgDpZWY8GDZlqz3ekMZA9QUDHMaW4tRWtb53kyJDRTaq6eBObowSRjJa9booSGlT0ttKGlYlOVQcFhplJ6iRZNgzZ14iMoLNNU5hWk7csitusMTMj6RkwhpLmOAza1XkfDH+QuAsUtQbA+72fffb/kBd1oaNMQAAAA=[Pipeline] { (debian) -ha:////4FuoNq3kPASR0oxCDYUrGByeBKo70l4+QlUJEnllkEqLAAAAqR+LCAAAAAAAAP9tjTEOwjAUQ39bdWBl5BCpWFARYmKNunCC0ISQNPq/JCntxIm4GncgpRITHizbkvVebyiDhyN5zazCzmBoDevdoFNiI/nu6mhkli6sJQzkFGvU2JBUp6U2FBUsynIoOKwUto6CQR1hza14iMoJ1NU5+rQdOORG3uEJGU/kKHz8lsnD5jbIQPjj/AXA1EcotnU9+343f8sP3bwSasQAAAA=[Pipeline] stage -ha:////4MBdJgvgjQZPKN+Tu09Zu5fQh+xnPH1q/Z3TF1m3OG9EAAAAqB+LCAAAAAAAAP9tjTEOwjAUQ39bdWBl5BCpWEAIdWKNunCCkISQNPq/JCntxIm4GnegtBITHizbkvVebyhjgJqCYU5jazFKyzrfmymxgUJ79TQwRxcmCSN5zRo9NKT0aakNJQ2LshwKDiuN0lO0aBKsuRMPUXmBpjqnMG1HDrlVd3hCxidyEiHNZQywufUqEv44fwEwdgmK7WE3+/77LT/jZemVxAAAAA==[Pipeline] { (redhat) -ha:////4EoZmccfR4yr0S4alfDOgc8tfrEIiuAXv7excWllts4iAAAAqB+LCAAAAAAAAP9tjbEOgjAYhH8gDK6OPkSJG8Q4uTYsPkFtay00/49tsUw+ka/mOwiSOHnD5e6Sy/d6Qxk8HMkb1mnsLQZp2eBGMyeWyPdXR4l1dGGSMJDTrNWpJaVPa20paliV5VBw2GiUjoJFE2HLO/EQlRNoqnP083bgkFt1hydkfCZH4eO3TB52t1EFwh/nLwCmIUKxr5vFm3r5lh/Ckb3LxAAAAA==[Pipeline] stage -ha:////4NJ2tiRtfZJmhs8iNN1SpHBSjf4rvS8S7UOI+hh+ZDBrAAAAqB+LCAAAAAAAAP9tjbEOgjAYhH8gDK6OPkSJm8Q4sTYsPkEttRaa/8e2WCafyFfzHayQOHnD5e6Sy/d6Q+kdnMhp1iscDHpp2GgnnRKL5Iarpch6ujBJ6Mkq1qrYUqeatbYUFKzKcig4bBRKS96gDrDlvXiIygrU1Tm4tB055Ka7wxMynshBuLCU2cHuNnWe8Mf5C4B5DFDs68Pi9fdbfgCN19JGxAAAAA==[Pipeline] { (centos7) -ha:////4HImw2Zbc5oukYeIo3AADbR2PIcvgrW4HtH7b+rtA7QbAAAAqR+LCAAAAAAAAP9tjTEOwjAUQ39bdWBl5BBpYEOoE2vUhROEJoS00f8lSWknTsTVuAOBSkx4sGxL1nu+oAweavKGdRp7i6G1bHCjSYlN5PuLo4l1dGYtYSCnWaOnhpQ+LrWhqGFRlkMhYKWxdRQsmghr0cm7rJxEU52iT9tBQG7VDR6QiUSO0sdvmT1srqMKhD/OXwDMQ4Riu+fJd5x/vuUbi7LGfMQAAAA=[Pipeline] stage -ha:////4B0TsWMnbQBaBDQSxdBYJW2CkN3bx4VkiaeRn6AwoFDrAAAApx+LCAAAAAAAAP9tjbEOgjAYhH8gDK6OPkRBV+PE2rD4BLXUWmj+H9timXwiX813sELi5A2Xu0su3+sNpXdwIqdZr3Aw6KVho510SiySG66WIuvpwiShJ6tYq2JLnWrW2lJQsCrLoeCwUSgteYM6wJb34iEqK1BX5+DSduSQm+4OT8h4IgfhwlJmB7vb1HnCH+cvAOYxQHGo68X332/5AR1ObkzEAAAA[Pipeline] { (stress) -ha:////4Fqlp5+1Uh+VxUFHAiqYz65hkzwwrb8yUbglInGqADDaAAAAqR+LCAAAAAAAAP9tjTEOwjAUQ39bdWBl5BAp7YYQE2vUhROEJoSk0f8lSWknTsTVuAOBSkx4sGxL1nu+oAweDuQ1swp7g6EzbHCjTolN5PuLo4lZOrOOMJBTrFVTS1Idl9pSVLAoy6HgsFLYOQoGdYQ1t+IuKidQV6fo07bnkBt5gwdkPJGj8PFbZg+b6ygD4Y/zFwDzEKGod3XyZtt8vuUb71+rqsQAAAA=[Pipeline] stage -ha:////4K6NmDyYGB+Xq0dFpYJTJlAx+qxu4xVOBnb8UitTAonwAAAApx+LCAAAAAAAAP9tjbEOgjAYhH8gDK6OPkQxOBon1obFJ6il1kLz/9gWy+QT+Wq+gxUSJ2+43F1y+V5vKL2DEznNeoWDQS8NG+2kU2KR3HC1FFlPFyYJPVnFWhVb6lSz1paCglVZDgWHjUJpyRvUAba8Fw9RWYG6OgeXtiOH3HR3eELGEzkIF5YyO9jdps4T/jh/ATCPAYp6Xy9++H7LD4lxne3EAAAA[Pipeline] { (fqltool) -Stage "lint" skipped due to earlier failure(s) -ha:////4I9WTKsVVZKCHoPtCGYQrBdTBwzZdaO26ZnSXLC1Trf+AAAApx+LCAAAAAAAAP9tjTsOwjAQRDeJKGgpOYTDr0GIitZywwmMY4wdazfYDknFibgad8AiEhVTjOZN815vmMUARwqGOY2txags63xv8mIDhfbqaWCOLkwRRvKaCT0IavRpQkFJw5SihIrDXKPyFC2aBAvu5EPWXqKpzynk78ChtM0dnlDwbE4ypC+MAZa3vomEP89fAYxdl6DarHa51/vtByuv767AAAAA[Pipeline] } -Stage "debian" skipped due to earlier failure(s) -ha:////4NWZEtjxmhx+5CZnSb0rjjhb0gco4AwjHgiAgKX6YZwWAAAApx+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQDSCkQoqK10vAC4xjjxLoztoNT8SK+xh+wiETFFqudbeb1hkXwcCSvWa9wMBikYc6OOi+WyA9XS4n1dGGSMJBVrFWppU6dZmwpKphTlFBxWCqUloJBHWHFe/EQtRWo63P0+TtwKE13hycUPJuj8PELk4f1bewC4c/zVwCTcxGq3abJvd03H6oB++HAAAAA[Pipeline] } -Stage "redhat" skipped due to earlier failure(s) -ha:////4G7uDiymVc8a9OVih63YY6eKc0qnsV5md9qB8jVodGu/AAAApx+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQDFCCEqGgtN7zAOMbYse6C7ZBUvIiv8QcsIlGxxWpnm3m9YRYDHCkY5jS2FqOyrPO9yYsNFNqrp4E5ujBFGMlrJvQgqNGnCQUlDVOKEioOc43KU7RoEiy4kw9Ze4mmPqeQvwOH0jZ3eELBsznJkL4wBlje+iYS/jx/BTB2XYJqs9rmXu93Hxt6HT7AAAAA[Pipeline] } -Stage "centos7" skipped due to earlier failure(s) -ha:////4JmPCqsDWKyxsWfzNsWUhbrjuJ9qyJv2Hwe6Cv/t42zYAAAApx+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQDNChCVLRWGl5gHGOcWHfGdnAqXsTX+AMWkajYYrWzzbzesAgejuQ16xUOBoM0zNlR58US+eFqKbGeLkwSBrKKtSq11KnTjC1FBXOKEioOS4XSUjCoI6x4Lx6itgJ1fY4+fwcOpenu8ISCZ3MUPn5h8rC+jV0g/Hn+CmByLkK12+xzb5vmA6hc0n/AAAAA[Pipeline] } -Stage "stress" skipped due to earlier failure(s) -ha:////4J81P6p5t+vYqSyO9Og8oJ5aHJLffhDi1jn7PhvsnUDaAAAApR+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQDVEgoFa2VhhcY2xg71l2wHZyKF/E1/kCUSFRssdrZZt4fWMUADQXDnMbOYpSW9X4w02KZQnfzlJmjK5OEkbxmrc4tKX1esKWkYUlRQsVhrVF6ihZNgg134ilqL9DUlxSm78ShtOoBLyj4ZE4ipBnGANv7oCLhz/NXAGPfJ6gOu+Pc+y9jocVUwAAAAA==[Pipeline] } -Stage "fqltool" skipped due to earlier failure(s) -ha:////4FiwGZIKxvB9E735gu174VjCLZFLLg+l3SH9uud8edy1AAAApR+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYSDoEIoFa2VhhcY2xg71l2wHZyKF/E1/kCUSFRssdrZZt4fWMUADQXDnMbOYpSW9X4w02KZQnfzlJmjK5OEkbxmrc4tKX1esKWkYUlRQsVhrVF6ihZNgg134ilqL9DUlxSm78ShtOoBLyj4ZE4ipBnGANv7oCLhz/NXAGPfJ6j2u+Pchy/7y7wcwAAAAA==[Pipeline] } -ha:////4HP/qZvgG1+vb/x8eSIdDve/rj1zFdh08DAo2TZN/qawAAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYRD0iFERWu54QXGNsaJdRdsh6TiRXyNP2ARiYotVjvbzOsNqxjgSMGyzmDvMCrHBj/avNhEob96mlhHF6YII3nDhJkEaXNaUFAysKQooeKwNqg8RYc2wYZ38iFrL9HW5xTyd+BQOn2HJxQ8m5MM6QtzgO1t1JHw5/krgHkYElRts8vd7NsPMLsN4cAAAAA=[Pipeline] // stage -ha:////4Pw1gAQ0dEVUAGSFUIIqBrz7UvULZpuadJfoPXkS56V7AAAApx+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQjIxqEUtFaaXiBiY1xYt0Z2yGpeBFf4w9YRKJii9XONvN6wyoGaCgY1mscLMbOMu9GkxebKAxXRxPr6cI6wkhOs1ZPLSl9WrClpGFJUUIlYK2xcxQtmgQb0cuHrJ1EU59TyN9RQGnVHZ5QiGxOMqQvzAG2t1FFwp/nrwBm7xNUO85z88P+A7EVGa7AAAAA[Pipeline] // stage -ha:////4C1q5bdsmbFgM2/xbvnlXcoZtdTDF68tiKKdsUbhXILxAAAApx+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYSjpEBCiIrWSsMLjG2ME+vO2A5JxYv4Gn/AIhIVW6x2tpnXG1YxwJGCYb3GwWKUlnk3mrzYRGG4OppYTxcmCSM5zTo9daT0acGOkoYlRQkVh7VG6ShaNAk2vBcPUTuBpj6nkL8Dh9KqOzyh4NmcREhfmANsb6OKhD/PXwHM3ieo2qbN3ex3HwBu/3HAAAAA[Pipeline] // stage -ha:////4MSWSDRIqJjZuJjplvdYdhEwCJvPPWwpQze5gknx2t3PAAAApx+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYSjQANCVLRWGl5gHGOcWHfGdnAqXsTX+AMWkajYYrWzzbzesAgejuQ16xUOBoM0zNlR58US+eFqKbGeLkwSBrKKtSq11KnTjC1FBXOKEioOS4XSUjCoI6x4Lx6itgJ1fY4+fwcOpenu8ISCZ3MUPn5h8rC+jV0g/Hn+CmByLkK1aba5m/3uA7NIMDDAAAAA[Pipeline] // stage -ha:////4Pero4m4/hKiwPRWiA4U/GRaxBaKV9VmOOaqdxspoR+1AAAApR+LCAAAAAAAAP9tjTESwiAURH+SsbC19BAkOnaOlS1D4wkQEEmY/yMQSeWJvJp3MJoZK7fY2bfNe75gEQMcKFjWGuwcRuVY7wc7LZYpdBdPmbV0ZoowkjdMmCxIm+OMgpKBOUUJFYelQeUpOrQJVryVd1l7ibY+pTB9ew6l0zd4QMEnc5IhfWEMsL4OOhL+PH8FMPZ9gmq72X26ad4f+8gowAAAAA==[Pipeline] // stage -ha:////4L22m43GUDvGF2BrByG72n/N+arcBiKqp2Ud9D+itpZfAAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQDkagQFa2VhheYxBg71p2xLyQVL+Jr/IFAJCq2WO1sM88XLFKEA0UjnMbOYmqsCL430xIDxe7iaRCOzqIhTOS1qPVQU6uPM9bEGuZkORQSlhobT8miYVhJp+6q9ApNeeI4fXsJuW1v8IBMTmZWkb8wRlhf+zYR/jx/BTCGwFBU292nN9Ubh5GxYMAAAAA=[Pipeline] // stage -ha:////4AHudcc3ubJNH/WnsHNwoVu0Rm51w8seCJhug4El0RV1AAAApx+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYSjUERIiIrWSsMLjG2ME+vO2A5JxYv4Gn/AIhIVW6x2tpnXG1YxwJGCYb3GwWKUlnk3mrzYRGG4OppYTxcmCSM5zTo9daT0acGOkoYlRQkVh7VG6ShaNAk2vBcPUTuBpj6nkL8Dh9KqOzyh4NmcREhfmANsb6OKhD/PXwHM3ieodk2bu9m3H1J7q5zAAAAA[Pipeline] } -[2023-10-11T08:08:18.967Z] Failed in branch lint -ha:////4L1WKjhWp9yplT2tMo4MwpxsyuS5DcGQDkao/UI37a9HAAAApx+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYSj0AQJUdFaaXiBsY1xYt0Z2yGpeBFf4w9YRKJii9XONvN6wyoGOFIwrNc4WIzSMu9GkxebKAxXRxPr6cIkYSSnWaenjpQ+LdhR0rCkKKHisNYoHUWLJsGG9+IhaifQ1OcU8nfgUFp1hycUPJuTCOkLc4DtbVSR8Of5K4DZ+wTVrmlzN/v2A3BA203AAAAA[Pipeline] } -[2023-10-11T08:08:18.985Z] Failed in branch debian -ha:////4I+945eyRDGg9+ZlMGxabTp9uoMTIjI/1q+oDVqAq2Q6AAAApx+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYSjUFlCVGmtNLzAxMY4se6M7ZBUvIiv8QcsIlGxxWpnm3m9YRMDnCgYNmgcLcbeMu8mkxebKYxXRzMb6MJ6wkhOs07PHSndrthR0rCmKKESsNXYO4oWTYKdGORD1k6iqc8p5O8ooLTqDk8oRDYnGdIXlgD726Qi4c/zVwCL9wmqQ8NzN5x/AAgtLCvAAAAA[Pipeline] } -[2023-10-11T08:08:18.995Z] Failed in branch redhat -ha:////4Hp696yi54swWXlshV42cCpx8JwalReJfiiLNr+7MKPDAAAApx+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYSjUBEhKlorDS8wtjFOrDtjOyQVL+Jr/AGLSFRssdrZZl5vWMUARwqG9RoHi1Fa5t1o8mITheHqaGI9XZgkjOQ06/TUkdKnBTtKGpYUJVQc1hqlo2jRJNjwXjxE7QSa+pxC/g4cSqvu8ISCZ3MSIX1hDrC9jSoS/jx/BTB7n6DaNW3uZt9+ACoWXPrAAAAA[Pipeline] } -[2023-10-11T08:08:19.005Z] Failed in branch centos7 -ha:////4HZcULc1OntcYNY32qVK0YXz3+N7+IHdGzml5A9jWe8vAAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQT0iFERWul4QXGNsaJdWdsh6TiRXyNP2ARiYotVjvbzOsNqxjgSMGwXuNgMUrLvBtNXmyiMFwdTaynC5OEkZxmnZ46Uvq0YEdJw5KihIrDWqN0FC2aBBvei4eonUBTn1PI34FDadUdnlDwbE4ipC/MAba3UUXCn+evAGbvE1Rt2+Te7ZsP/92MgcAAAAA=[Pipeline] } -[2023-10-11T08:08:19.014Z] Failed in branch stress -ha:////4DM3nHKo8vvDx7hE4cts7Bp8vSokowr1aFfvgCQjebFyAAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQjp0OIKq2VhheY2Bgn1p2xHZKKF/E1/oBFJCq2WO1sM683bGKAEwXDBo2jxdhb5t1k8mIzhfHqaGYDXVhPGMlp1um5I6XbFTtKGtYUJVQCthp7R9GiSbATg3zI2kk09TmF/B0FlFbd4QmFyOYkQ/rCEmB/m1Qk/Hn+CmDxPkHVNDw3P/AP3eb8UMAAAAA=[Pipeline] } -[2023-10-11T08:08:19.024Z] Failed in branch fqltool -ha:////4D8oV4nAYB+uPoh5zZYVy+bCTssSlplSHKjHbvbuDuYTAAAApx+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQDrpBQKlorDS8wsTFOrDtjOyQVL+Jr/AGLSFRssdrZZl5vWMUADQXDeo2DxdhZ5t1o8mITheHqaGI9XVhHGMlp1uqpJaVPC7aUNCwpSqgErDV2jqJFk2AjevmQtZNo6nMK+TsKKK26wxMKkc1JhvSFOcD2NqpI+PP8FcDsfYKKc557f9h9AJf9CA/AAAAA[Pipeline] // parallel -ha:////4KQare6f0KP4wkpxuJybrZlgABbqJCk/e6Js4vf3RrayAAAApx+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQjQoEQoqK10vAC4xjjxLoztoNT8SK+xh+wiETFFqudbeb1hkXwcCSvWa9wMBikYc6OOi+WyA9XS4n1dGGSMJBVrFWppU6dZmwpKphTlFBxWCqUloJBHWHFe/EQtRWo63P0+TtwKE13hycUPJuj8PELk4f1bewC4c/zVwCTcxGqptnm3uz2H0hSO1fAAAAA[Pipeline] } -ha:////4B8JGhJCWMa8A/ys5lzrYCpF4tKsDdKo3G3xNacmIJwqAAAAqB+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQjIiSQEBWtlYYXGMcYJ9adsR2cihfxNf6ARSQqtljtbDOvNyyChyN5zXqFg8EgDXN21HmxRH64WkqspwuThIGsYq1KLXXqNGNLUcGcooSKw1KhtBQM6ggr3ouHqK1AXZ+jz9+BQ2m6Ozyh4NkchY9fmDysb2MXCH+evwKYnItQNc0292a3/wBQXJvlwAAAAA==[Pipeline] // stage -ha:////4EokvdF2OQWdTtEj4Oa69vCYXNEpysOrmxKMmYoHN8mGAAAAqB+LCAAAAAAAAP9tjTEOwjAQBC+JUtBS8ggHRaJCVLRWGl5gHGOcWHfBvpBUvIiv8QcMkajYamel1TxfUMYABwpWdAZ7h1E7MfjRpiYmCv3F0yQ6OgtNGMkb0ZipodYcF2yIDSzJcigkrAxqT9GhZVjLTt1V5RXa6sQhbXsJuWtv8IBMJjOrwF+YA2yuYxsJf56/ApgHhrzeMhR1vftcyzdzGeY4wwAAAA==[Pipeline] stage -ha:////4Msf3e/EU3+aMcWVVgo3YLk1BmLFnwm24I9+C/CFyx45AAAAqB+LCAAAAAAAAP9tjbEOgjAYhH8gDK6OPkRJSHQxTqwNi09QS62F5v+xLZbJJ/LVfAcrJE7ecLm75PK93lB6BydymvUKB4NeGjbaSafEIrnhaimyni5MEnqyirUqttSpZq0tBQWrshwKDhuF0pI3qANseS8eorICdXUOLm1HDrnp7vCEjCdyEC4sZXawu02dJ/xx/gJgHgMUdb1f/PD9lh/XrQs+xAAAAA==[Pipeline] { (Summary) -Stage "Summary" skipped due to earlier failure(s) -ha:////4FKvy6EH9ASjrrprB7nIXGe7IZZx7xl6pUV2v2/o+7S/AAAAph+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQjpYACUaW10vACExtjx7oztkNS8SK+xh+wEomKLVY728z7A5sY4ExBM6twMBh7w7wbdV5sojDcHE3M0pX1hJGcYp2aOpKqXbGjpGBNUULFYauwdxQN6gQ7bsVT1E6gri8p5O/EoTTyAS8oeDYnEdICc4D9fZSR8Of5K4DZ+wRV0xyXPnwB1iH6TMAAAAA=[Pipeline] } -ha:////4G6x4KIjUhAYnTyc1EN6GbfSxNSDV6jgqahWw13oFxKGAAAAph+LCAAAAAAAAP9tjbEKwjAURV9bHFwd/YgUCoIgTl1DF78gNjEmDe/FJLWd/CJ/zX8wtODkHS733OW8P7CJAc4UNLMKB4OxN8y7UefFJgrDzdHELF1ZTxjJKdapqSOp2hU7SgrWFCVUHLYKe0fRoE6w41Y8Re0E6vqSQv5OHEojH/CCgmdzEiEtMAfY30cZCX+evwKYvU9QNc1x6cMXhQC7I8AAAAA=[Pipeline] // stage -ha:////4OjOxY9x0WDJxtqp4WEN/JybrGlwuKngvWl9Zvoc7QI7AAAApR+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYSD0iFERWul4QUmNsaJdWfsC07Fi/gafyAiEhVb7UwzrzesUoQjRSt6g4PD1DkR/GjnJzLF4eopi54uoiNM5I1oTW5Jm9OCLbGBZUUJlYS1wc5TcmgZNrJXD1V7hbY+c5zdQULp9B2eUMi5zCryF6YI29uoE+Gv8zcAUwgMVdPsGcpm9wFakp1JvwAAAA==[Pipeline] } -ha:////4Iam4vRzITvLUQon5vTK9FBhRvWXzW8iMIFtBcPF0rfRAAAAph+LCAAAAAAAAP9tjTsOwjAQBTeJKGgpOYTDp0IRFa2VhhOY2Bgn1m6wNyQVJ+Jq3AGLSFS86s0083rDIgY4UrCiNdg5jI0TvR9semKk0F09jaKli2gII3kjajPWpM1pxprYwLwsh0LC0mDjKTq0DCvZqocqvUJbnjkkV0nInb7DEzKZyqwCf2EKsL4NOhL+On8DMPU9Q7Hbbxjy7eEDQSMUmr8AAAA=[Pipeline] // timestamps -ha:////4GLgmquXY5o9mPN8CPopqUlfDnV/AzxjkFvDQKAnklGrAAAAph+LCAAAAAAAAP9tjbEOgjAURR8QB1dHP6IEXUwMk2vD4hfUUmuheQ/bhzD5Rf6a/2AjiZN3uucs5/WGVQxQU7CiM9g7jNqJwY82PTFR6K+eJtHRRWjCSN6IxkwNtea0YENsYFmWQyFhbVB7ig4tw0Z26qFKr9CWZw7JHSXkrr3DEzKZyqwCf2EOsL2NbST8df4GYB4GhmK3rxjy6vABcsBPJr8AAAA=[Pipeline] } -ha:////4PUcuZHAmlIwbNqyJ8WEJIzS3N9p5ibG+EM4IlW7YcWlAAAAph+LCAAAAAAAAP9tjTESgjAQRRcYC1tLDxFGLCwcKtsMjSeIJMZAZheTRag8kVfzDmZkxspf/fea93rDKgaoKVjRGewdxtaJwY82PTFR6K+eJtHRRbSEkbwRjZka0ua0YENsYFmWQyFhbbD1FB1aho3s1EOVXqEtzxySO0rInb7DEzKZyqwCf2EOsL2NOhL+On8DMA8DQ1HtK4Z8d/gATa9kML8AAAA=[Pipeline] // withEnv -ha:////4LsBk/PbAoDi2uM6d9hdAFSabuic6Pdc5gLdkZ00iBbCAAAApR+LCAAAAAAAAP9tjTESgjAQRZcwFraWHiKMYudQ2WZoPEEMMQYyu5gsQuWJvJp3kJEZK3/132ve6w2rFKGi6GRrsfOYjJd9GNz85EixuwYaZUsXaQgTBStrO9bU2NOCNbGFZZmAXMHaogmUPDqGjWr1QxdBoyvOHGd3VCB8c4cnZGous478hSnC9jY0ifDX+RuAqe8Z8n1ZMojd4QNSLTFivwAAAA==[Pipeline] } -ha:////4B7SVjpMIawSuTWOkh88NJG/WTwDOyv8W3D/bSi7YhhmAAAApR+LCAAAAAAAAP9tjTESgjAQRZcwFraWHiKMYudQ2WZoPEEMMQYyu5gsQuWJvJp3kJEZK3/132ve6w2rFKGi6GRrsfOYjJd9GNz85EixuwYaZUsXaQgTBStrO9bU2NOCNbGFZZmAXMHaogmUPDqGjWr1QxdBoyvOHGd3VCB8c4cnZGous478hSnC9jY0ifDX+RuAqe8Z8n15YBC78gNJiFDhvwAAAA==[Pipeline] // withEnv -ha:////4Mysifnd0Ocf66ZbAkSMRU0dSrUf3Gba7C0UtzG+T55RAAAApR+LCAAAAAAAAP9tjTEOwjAQBM+JKGgpeYQjgRAFoqK10vAC4xjjxLoL9gWn4kV8jT8QEYmKrXammdcbFinCkaKTrcXOYzJe9mFw05OZYncNlGVLF2kIEwUra5trauxpxprYwjxRQKlgadEESh4dw0q1+qGroNFVZ46TOygofHOHJwg1lVlH/sIYYX0bmkT46/wNwNj3DOVmu2MQ+w8Y/lSuvgAAAA==[Pipeline] } -ha:////4McO/5IippMf9J/D0C1AOvLyVc7kOTTnsNKGh/bXqJXMAAAApR+LCAAAAAAAAP9tjTEOwjAQBC+JKGgpeYQjgZQGUdFaaXiBiY1xYt0Z+4JT8SK+xh+IiETFVjvTzOsNqxThSNGK3uDgMHVOBD/a+YlMcbh6yqKni+gIE3kjWpNb0ua0YEtsYFlRQiVhbbDzlBxaho3s1UPVXqGtzxxnd5BQOn2HJxRyLrOK/IUpwvY26kT46/wNwBQCQ7XbNwxF8wFetPOevgAAAA==[Pipeline] // node -ha:////4JE2VneQzawNy1cKQf85a7fo5iKtGh5VmSp14P81OWa6AAAApR+LCAAAAAAAAP9tjTEOwjAQBM+JKGgpeYQjgRAFoqK10vAC4xjjxLoL9gWn4kV8jT8QEYmKrXammdcbFinCkaKTrcXOYzJe9mFw05OZYncNlGVLF2kIEwUra5trauxpxprYwjxRQKlgadEESh4dw0q1+qGroNFVZ46TOygofHOHJwg1lVlH/sIYYX0bmkT46/wNwNj3DOVmu2cQuw9UzJo6vgAAAA==[Pipeline] } -ha:////4J18tfongtj0uG+d2GBkWI5RFHesSw2D6JwCoF9jYAM6AAAApR+LCAAAAAAAAP9tjTEOwjAQBM+JKGgpeYQjAQUSoqK10vAC4xjjxLoL9gWn4kV8jT8QEYmKrXammdcbFinCkaKTrcXOYzJe9mFw05OZYncNlGVLF2kIEwUra5trauxpxprYwjxRQKlgadEESh4dw0q1+qGroNFVZ46TOygofHOHJwg1lVlH/sIYYX0bmkT46/wNwNj3DOVmu2cQuw8Ta83PvgAAAA==[Pipeline] // podTemplate -ha:////4CI1ReM95h4qQ4tah6WVxgRmV3eyor/ysbo+AGfR4EmEAAAApB+LCAAAAAAAAP9tjTEOwjAQBM+JKGgpeYQjhQohKlorDS8wsTFOrLtgX3AqXsTX+AMRkajYameaeb1hlSIcKTrZWew9ptbLIYxufjJT7K+BsuzoIlvCRMHKxuaGjD0t2BBbWCYKKBWsLbaBkkfHsFGdfugqaHTVmePsDgoKb+7wBKHmMuvIX5gibG+jSYS/zt8ATMPAUNa7PYOoP5bnzhu+AAAA[Pipeline] End of Pipeline -ERROR: No files included in stash ‘cassandra_17’ -Finished: FAILURE From 5a88e4ff6f2d6c5275dd2a973c33d13c72774cc7 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Fri, 13 Oct 2023 15:59:18 +0530 Subject: [PATCH 386/426] remove step within step in pipeline.jenkins --- .jenkins/pipeline.jenkins | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 7514b0b04e6f..146de44c05ee 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -134,7 +134,7 @@ pipeline { //sh 'cp -r /tmp/* /home/jenkins/agent/workspace/k8s-e2e' //script { env.javaVersionDefault = javaVersionDefault() } //script { env.javaVersionsSupported = javaVersionsSupported() } - buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") + //buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") sh 'echo "finishing stage artifacts"' } } @@ -148,7 +148,7 @@ pipeline { for (def stageName in selectedStages) { parallelStages[stageName] = { stage('lint') { - steps{ + //steps{ script{ if (stageName == 'lint') { sh 'echo "Running lint stage"' @@ -176,7 +176,7 @@ pipeline { testJob(".build/docker/run-tests.sh", "fqltool-test", 1) } } - } + //} } } } From 7060a8de398cba57b946884328fd50f35f678fc6 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Fri, 13 Oct 2023 16:06:58 +0530 Subject: [PATCH 387/426] clean build artifact comments in pipeline.jenkins --- .jenkins/pipeline.jenkins | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 146de44c05ee..e89996874301 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -130,11 +130,7 @@ pipeline { stage('artifacts') { steps { sh 'echo "starting artifacts stage"' - //sh 'sleep 3000' - //sh 'cp -r /tmp/* /home/jenkins/agent/workspace/k8s-e2e' - //script { env.javaVersionDefault = javaVersionDefault() } - //script { env.javaVersionsSupported = javaVersionsSupported() } - //buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") + buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") sh 'echo "finishing stage artifacts"' } } @@ -148,7 +144,6 @@ pipeline { for (def stageName in selectedStages) { parallelStages[stageName] = { stage('lint') { - //steps{ script{ if (stageName == 'lint') { sh 'echo "Running lint stage"' @@ -176,7 +171,6 @@ pipeline { testJob(".build/docker/run-tests.sh", "fqltool-test", 1) } } - //} } } } From fb4122b271685d409d74ca297b0d88ff67c8ce80 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Fri, 13 Oct 2023 16:28:31 +0530 Subject: [PATCH 388/426] comment artifact stage for troubleshooting in pipeline.jenkins --- .jenkins/pipeline.jenkins | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index e89996874301..674f426ac878 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -130,7 +130,7 @@ pipeline { stage('artifacts') { steps { sh 'echo "starting artifacts stage"' - buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") + //buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") sh 'echo "finishing stage artifacts"' } } @@ -143,7 +143,7 @@ pipeline { def parallelStages = [:] for (def stageName in selectedStages) { parallelStages[stageName] = { - stage('lint') { + stage(stageName) { script{ if (stageName == 'lint') { sh 'echo "Running lint stage"' From d37ffb8fa46d44b1214192c709f4b8a9b2efc405 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Fri, 13 Oct 2023 16:43:55 +0530 Subject: [PATCH 389/426] comment artifact stage for troubleshooting in pipeline.jenkins --- .jenkins/pipeline.jenkins | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 674f426ac878..494925f82f20 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -166,7 +166,7 @@ pipeline { // Add steps specific to the stress stage testJob(".build/docker/run-tests.sh", "stress-test", 1) } else if (stageName == 'fqltool') { - sh 'echo "Running stress fqltool"' + sh 'echo "Running fqltool stage"' // Add steps specific to the stress stage testJob(".build/docker/run-tests.sh", "fqltool-test", 1) } @@ -174,6 +174,7 @@ pipeline { } } } + echo "parallelStages: ${parallelStages}" parallel(parallelStages) // XXX – commented out for infracloud/cassandra-5.0 branch // stage('units') { From 777380596ae8614da1c65aa9449a7f8c2137eed1 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Fri, 13 Oct 2023 16:54:03 +0530 Subject: [PATCH 390/426] all echo for troubleshooting in pipeline.jenkins --- .jenkins/pipeline.jenkins | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 494925f82f20..c6621f66a195 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -175,6 +175,11 @@ pipeline { } } echo "parallelStages: ${parallelStages}" + parallelStages.each { stageName, stageContent -> + echo "Stage: $stageName" + echo "Content: ${stageContent}" + } + parallel(parallelStages) // XXX – commented out for infracloud/cassandra-5.0 branch // stage('units') { From d5c0e252d683a7f35cc7b3728ac21da9baea43e2 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Fri, 13 Oct 2023 17:02:30 +0530 Subject: [PATCH 391/426] add echo for troubleshooting in pipeline.jenkins --- .jenkins/pipeline.jenkins | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index c6621f66a195..1cd19c37d78f 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -140,11 +140,17 @@ pipeline { steps { script{ def selectedStages = params.TEST_STAGES_TO_RUN.split(',') + + echo "TEST_STAGES_TO_RUN parameter: ${params.TEST_STAGES_TO_RUN}" + echo "Selected Stages: ${selectedStages}" + + def parallelStages = [:] for (def stageName in selectedStages) { parallelStages[stageName] = { stage(stageName) { script{ + echo "Processing stage: $stageName" if (stageName == 'lint') { sh 'echo "Running lint stage"' // Add steps specific to the lint stage @@ -175,11 +181,6 @@ pipeline { } } echo "parallelStages: ${parallelStages}" - parallelStages.each { stageName, stageContent -> - echo "Stage: $stageName" - echo "Content: ${stageContent}" - } - parallel(parallelStages) // XXX – commented out for infracloud/cassandra-5.0 branch // stage('units') { From 015c9e5f8db25ce5694216399b7d6c8cdd422a56 Mon Sep 17 00:00:00 2001 From: richamishra Date: Fri, 13 Oct 2023 17:37:42 +0530 Subject: [PATCH 392/426] updated pipleine --- .jenkins/pipeline.jenkins | 77 ++++++++++++++++++++------------------- 1 file changed, 40 insertions(+), 37 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 1cd19c37d78f..15c1aa50c1e2 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -143,45 +143,48 @@ pipeline { echo "TEST_STAGES_TO_RUN parameter: ${params.TEST_STAGES_TO_RUN}" echo "Selected Stages: ${selectedStages}" - - - def parallelStages = [:] - for (def stageName in selectedStages) { - parallelStages[stageName] = { - stage(stageName) { - script{ - echo "Processing stage: $stageName" - if (stageName == 'lint') { - sh 'echo "Running lint stage"' - // Add steps specific to the lint stage - //buildJob(".build/docker/check-code.sh", "") - } else if (stageName == 'debian') { - sh 'echo "Running debian stage"' - // Add steps specific to the debian stage - //buildJob(".build/docker/build-debian.sh", "cassandra_*,cassandra-tools_*") - } else if (stageName == 'redhat') { - sh 'echo "Running redhat stage"' - // Add steps specific to the redhat stage - //buildJob(".build/docker/build-redhat.sh rpm", "*.rpm") - } else if (stageName == 'centos7') { - sh 'echo "Running centos7 stage"' - // Add steps specific to the centos7 stage - //buildJob(".build/docker/build-redhat.sh noboolean", "*.rpm") - } else if (stageName == 'stress') { - sh 'echo "Running stress stage"' - // Add steps specific to the stress stage - testJob(".build/docker/run-tests.sh", "stress-test", 1) - } else if (stageName == 'fqltool') { - sh 'echo "Running fqltool stage"' - // Add steps specific to the stress stage - testJob(".build/docker/run-tests.sh", "fqltool-test", 1) - } - } - } - } + + def parallelStages = selectedStages.collectEntries { stageName -> + ["$stageName": { + stage(stageName) { + script { + echo "Processing stage: $stageName" + if (stageName == 'lint') { + sh 'echo "Running lint stage"' + // Add steps specific to the lint stage + } else if (stageName == 'debian') { + sh 'echo "Running debian stage"' + // Add steps specific to the debian stage + } else if (stageName == 'redhat') { + sh 'echo "Running redhat stage"' + // Add steps specific to the redhat stage + } else if (stageName == 'centos7') { + sh 'echo "Running centos7 stage"' + // Add steps specific to the centos7 stage + } else if (stageName == 'stress') { + sh 'echo "Running stress stage"' + // Add steps specific to the stress stage + } else if (stageName == 'fqltool') { + sh 'echo "Running fqltool stage"' + testJob(".build/docker/run-tests.sh", "fqltool-test", 1) + // Add steps specific to the stress stage + } + } + } + }] } - echo "parallelStages: ${parallelStages}" + parallel(parallelStages) + + + + + + + + + + // XXX – commented out for infracloud/cassandra-5.0 branch // stage('units') { // steps { From c9328f938d7fee2f023522ecab02794ff1d0f308 Mon Sep 17 00:00:00 2001 From: richamishra Date: Fri, 13 Oct 2023 17:54:43 +0530 Subject: [PATCH 393/426] updated pipeline --- .jenkins/pipeline.jenkins | 75 ++++++++++++++++++--------------------- 1 file changed, 35 insertions(+), 40 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 15c1aa50c1e2..7ee24fbe812c 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -140,51 +140,46 @@ pipeline { steps { script{ def selectedStages = params.TEST_STAGES_TO_RUN.split(',') - echo "TEST_STAGES_TO_RUN parameter: ${params.TEST_STAGES_TO_RUN}" echo "Selected Stages: ${selectedStages}" - def parallelStages = selectedStages.collectEntries { stageName -> - ["$stageName": { - stage(stageName) { - script { - echo "Processing stage: $stageName" - if (stageName == 'lint') { - sh 'echo "Running lint stage"' - // Add steps specific to the lint stage - } else if (stageName == 'debian') { - sh 'echo "Running debian stage"' - // Add steps specific to the debian stage - } else if (stageName == 'redhat') { - sh 'echo "Running redhat stage"' - // Add steps specific to the redhat stage - } else if (stageName == 'centos7') { - sh 'echo "Running centos7 stage"' - // Add steps specific to the centos7 stage - } else if (stageName == 'stress') { - sh 'echo "Running stress stage"' - // Add steps specific to the stress stage - } else if (stageName == 'fqltool') { - sh 'echo "Running fqltool stage"' - testJob(".build/docker/run-tests.sh", "fqltool-test", 1) - // Add steps specific to the stress stage - } - } - } - }] + ["$stageName": { + stage(stageName) { + script{ + echo "Processing stage: $stageName" + if (stageName == 'lint') { + sh 'echo "Running lint stage"' + // Add steps specific to the lint stage + //buildJob(".build/docker/check-code.sh", "") + } else if (stageName == 'debian') { + sh 'echo "Running debian stage"' + // Add steps specific to the debian stage + //buildJob(".build/docker/build-debian.sh", "cassandra_*,cassandra-tools_*") + } else if (stageName == 'redhat') { + sh 'echo "Running redhat stage"' + // Add steps specific to the redhat stage + //buildJob(".build/docker/build-redhat.sh rpm", "*.rpm") + } else if (stageName == 'centos7') { + sh 'echo "Running centos7 stage"' + // Add steps specific to the centos7 stage + //buildJob(".build/docker/build-redhat.sh noboolean", "*.rpm") + } else if (stageName == 'stress') { + sh 'echo "Running stress stage"' + // Add steps specific to the stress stage + testJob(".build/docker/run-tests.sh", "stress-test", 1) + } else if (stageName == 'fqltool') { + sh 'echo "Running fqltool stage"' + // Add steps specific to the stress stage + testJob(".build/docker/run-tests.sh", "fqltool-test", 1) + } + } } - - parallel(parallelStages) - - - - - - - - + } + ] - + } + echo "parallelStages: ${parallelStages}" + parallel(parallelStages) // XXX – commented out for infracloud/cassandra-5.0 branch // stage('units') { // steps { From 20eb15ab2845c9faec2596c1819d3a3df7042119 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Fri, 13 Oct 2023 17:58:51 +0530 Subject: [PATCH 394/426] resolve conflicts --- .build/build-jars.sh | 2 +- .build/run-ci.sh | 11 ++- .jenkins/dummy.jenkins | 144 ++++++++++++++++++++++++++++++------ .jenkins/job/DslJob.jenkins | 22 +++--- 4 files changed, 145 insertions(+), 34 deletions(-) diff --git a/.build/build-jars.sh b/.build/build-jars.sh index cbbe0b5ba932..71ce4a0eb766 100755 --- a/.build/build-jars.sh +++ b/.build/build-jars.sh @@ -1,4 +1,4 @@ -#!/bin/sh -e +#!/bin/bash -e # 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 diff --git a/.build/run-ci.sh b/.build/run-ci.sh index ccc64330d6e5..8d2c6db87e39 100755 --- a/.build/run-ci.sh +++ b/.build/run-ci.sh @@ -41,6 +41,11 @@ while [[ $# -gt 0 ]]; do shift # This shifts the arguments to the left, discarding the current argument and moving to the next one. shift # This is an additional shift to move to the argument after the option value. ;; + --include-test-stage) + INCLUDE_TEST_STAGE="$2" + shift + shift + ;; *) echo "Unknown option: $1" exit 1 @@ -66,6 +71,10 @@ if ! kubectl get namespace ${KUBE_NS} >/dev/null 2>/dev/null ; then kubectl create namespace ${KUBE_NS} fi +if [ -n "$INCLUDE_TEST_STAGE" ]; then + +fi + # Add Helm Jenkins Operator repository echo "Adding Helm repository for Jenkins Operator..." helm repo add --namespace ${KUBE_NS} jenkins https://raw.githubusercontent.com/jenkinsci/kubernetes-operator/master/chart @@ -82,7 +91,7 @@ kubectl apply --namespace ${KUBE_NS} -f ${CASSANDRA_DIR}/.build/jenkins-deployme TOKEN=$(kubectl get secret jenkins-operator-credentials-example -o jsonpath="{.data.token}" | base64 --decode) # Trigger a new build and capture the response headers -response_headers=$(curl -i -X POST http://localhost:8080/job/k8s-e2e/build -u jenkins-operator:$TOKEN 2>&1) +response_headers=$(curl -i -X POST http://localhost:8080/job/k8s-e2e/buildWithParameters -u jenkins-operator:$TOKEN --data-urlencode "TEST_STAGES_TO_RUN=$INCLUDE_TEST_STAGE" 2>&1) queue_url=$(echo "$response_headers" | grep -i "Location" | awk -F ": " '{print $2}' | tr -d '\r') diff --git a/.jenkins/dummy.jenkins b/.jenkins/dummy.jenkins index c479fe06e9d7..20157cdc5a64 100644 --- a/.jenkins/dummy.jenkins +++ b/.jenkins/dummy.jenkins @@ -1,28 +1,130 @@ pipeline { - agent { - kubernetes { - yaml ''' -apiVersion: v1 -kind: Pod -metadata: - name: andreas-test -spec: - containers: - - name: jnlp - image: jenkins/inbound-agent:4.3-4-jdk11 - command: ["sleep", "10000"] -''' - - } + agent { + kubernetes { + label 'cassandra' + defaultContainer 'jnlp' + yaml ''' + apiVersion: v1 + kind: Pod + metadata: + labels: + jenkins: label + spec: + initContainers: + - name: init-docker-socket + image: alpine:latest + imagePullPolicy: Always + command: + - sh + - -c + - chown 1000:1000 /var/run/docker.sock + volumeMounts: + - name: docker-socket + mountPath: /var/run/docker.sock + securityContext: + runAsUser: 0 + containers: + - name: jnlp + image: richamishra006/apache-k8s-agent:32 + command: + - /bin/sh + - -c + - /usr/local/bin/jenkins-agent + volumeMounts: + - name: docker-socket + mountPath: /var/run/docker.sock + tty: true + securityContext: + privileged: true + nodeSelector: + gke-node: first + volumes: + - name: docker-socket + hostPath: + path: /var/run/docker.sock + ''' } - - stages { - stage('Say Hello World') { - steps { - container("jnlp") { - echo "Hello World!" + } +} +parameters { + string( + //choices: ['Init', 'lint', 'debian', 'redhat', 'centos7', 'stress', 'fqltool', 'Summary'], + description: 'Select the stages to run', + name: 'STAGES_TO_RUN' + ) +} +stages { + stage('Select Stage') { + steps { + script { + def stagesToRun = params.STAGES_TO_RUN.split(',') + stagesToRun.each { stageName -> + if (stageName == 'Init') { + buildInitStage() + } else if (stageName == 'lint') { + buildLintStage() + } else if (stageName == 'debian') { + buildDebianStage() + } else if (stageName == 'artifacts') { + buildArtifactsStage() + } else if (stageName == 'redhat') { + buildRedhatStage() + } else if (stageName == 'centos7') { + buildCentosStage() + } else if (stageName == 'stress') { + buildstressStage() + } else if (stageName == 'fqltool') { + buildfqltoolStage() + } + } } } } } + +def buildInitStage() { + stage('Init') { + script { currentBuild.result = 'SUCCESS' } + sh 'echo "stage init"' + } +} +def buildArtifactsStage() { + stage('artifacts') { + buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") + } +} + +def buildLintStage() { + stage('lint') { + sh 'echo "stage lint"' + + } +} + +def buildDebianStage() { + stage('debian') { + sh 'echo "stage debian"' + + } +} +def buildRedhatStage() { + stage('redhat') { + sh 'echo "stage redhat"' + + } +} +def buildCentosStage() { + stage('centos7') { + sh 'echo "stage centos7"' + } +} +def buildstressStage() { + stage('stress') { + sh 'echo "stage stress"' + } } +def buildfqltoolStage() { + stage('fqltool') { + sh 'echo "stage fqltool"' + } +} \ No newline at end of file diff --git a/.jenkins/job/DslJob.jenkins b/.jenkins/job/DslJob.jenkins index aba3ea9a7fbf..2198e8503d13 100644 --- a/.jenkins/job/DslJob.jenkins +++ b/.jenkins/job/DslJob.jenkins @@ -1,16 +1,16 @@ #!/usr/bin/env groovy -job('jenkins-operator-job-dsl-seed') { - description('Seed Job that generates and triggers the GeneratedPipelineJob') - configure { project -> - project / 'publishers' << 'hudson.tasks.BuildTrigger' { - childProjects('k8s-e2e') - threshold { - name('SUCCESS') - } - } - } -} +// job('jenkins-operator-job-dsl-seed') { +// description('Seed Job that generates and triggers the GeneratedPipelineJob') +// configure { project -> +// project / 'publishers' << 'hudson.tasks.BuildTrigger' { +// childProjects('k8s-e2e') +// threshold { +// name('SUCCESS') +// } +// } +// } +// } From b2e3ab040008992e719f0156927ce374e5fd386f Mon Sep 17 00:00:00 2001 From: Nbarola Date: Fri, 13 Oct 2023 18:01:26 +0530 Subject: [PATCH 395/426] revert changes in build-jars.sh --- .build/build-jars.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.build/build-jars.sh b/.build/build-jars.sh index 71ce4a0eb766..cbbe0b5ba932 100755 --- a/.build/build-jars.sh +++ b/.build/build-jars.sh @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/sh -e # 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 From c2974b60be79fcfadcdd4623e106ff9500c82774 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Fri, 13 Oct 2023 18:04:22 +0530 Subject: [PATCH 396/426] uncomment artifacts build job after troubleshooting in pipeline.jenkins --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 7ee24fbe812c..d33c4f5de5d1 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -130,7 +130,7 @@ pipeline { stage('artifacts') { steps { sh 'echo "starting artifacts stage"' - //buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") + buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") sh 'echo "finishing stage artifacts"' } } From b1faf35fddb725a316caeaa5b7db15b94f3d2310 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Fri, 13 Oct 2023 18:09:13 +0530 Subject: [PATCH 397/426] add default values for include-test-stage variable in run-ci.sh --- .build/run-ci.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.build/run-ci.sh b/.build/run-ci.sh index 8d2c6db87e39..d652e27e925f 100755 --- a/.build/run-ci.sh +++ b/.build/run-ci.sh @@ -72,9 +72,15 @@ if ! kubectl get namespace ${KUBE_NS} >/dev/null 2>/dev/null ; then fi if [ -n "$INCLUDE_TEST_STAGE" ]; then - + # The variable is not empty, so it has a value + echo "INCLUDE_TEST_STAGE is not empty. Its value is: $INCLUDE_TEST_STAGE" +else + # The variable is empty, so assign a default value + INCLUDE_TEST_STAGE="lint,stress,fqltool" + echo "INCLUDE_TEST_STAGE is empty. Assigning default value: $INCLUDE_TEST_STAGE" fi + # Add Helm Jenkins Operator repository echo "Adding Helm repository for Jenkins Operator..." helm repo add --namespace ${KUBE_NS} jenkins https://raw.githubusercontent.com/jenkinsci/kubernetes-operator/master/chart From d43af0939c497e5cdd6db903330053759276a2d0 Mon Sep 17 00:00:00 2001 From: richamishra Date: Fri, 13 Oct 2023 18:33:38 +0530 Subject: [PATCH 398/426] refined jenkinsfile and scripts --- .build/docker/_docker_run.sh | 12 +-- .build/docker/run-tests.sh | 8 +- .build/run-new-ci.sh | 28 ------- .jenkins/dummy.jenkins | 130 ------------------------------ .jenkins/pipeline.jenkins | 40 +-------- .jenkins/scriptedPipeline.jenkins | 62 -------------- 6 files changed, 9 insertions(+), 271 deletions(-) delete mode 100644 .build/run-new-ci.sh delete mode 100644 .jenkins/dummy.jenkins delete mode 100644 .jenkins/scriptedPipeline.jenkins diff --git a/.build/docker/_docker_run.sh b/.build/docker/_docker_run.sh index d369257d446e..200a908326c9 100755 --- a/.build/docker/_docker_run.sh +++ b/.build/docker/_docker_run.sh @@ -28,7 +28,6 @@ # variables, with defaults [ "x${cassandra_dir}" != "x" ] || cassandra_dir="$(readlink -f $(dirname "$0")/../..)" -#[ "x${cassandra_dir}" != "x" ] || cassandra_dir="$(readlink -f $(dirname "$0"))" [ "x${build_dir}" != "x" ] || build_dir="${cassandra_dir}/build" [ -d "${build_dir}" ] || { mkdir -p "${build_dir}" ; } echo "$CASSANDRA_DIR from _docker_run" @@ -122,10 +121,6 @@ docker_command="export ANT_OPTS=\"-Dbuild.dir=\${DIST_DIR} ${CASSANDRA_DOCKER_AN # run without the default seccomp profile # re-use the host's maven repository -# container_id=$(docker run --name ${container_name} -d --security-opt seccomp=unconfined --rm \ -# -v "${cassandra_dir}":/home/build/cassandra -v ~/.m2/repository/:/home/build/.m2/repository/ -v "${build_dir}":/dist \ -# ${docker_volume_opt} \ -# ${image_name} sleep 1h) container_id=$(docker run --name ${container_name} -d --security-opt seccomp=unconfined --rm \ -v "${cassandra_dir}":/home/build/cassandra -v ~/.m2/repository/:/home/build/.m2/repository/ -v "${build_dir}":/dist \ ${docker_volume_opt} \ @@ -133,16 +128,13 @@ container_id=$(docker run --name ${container_name} -d --security-opt seccomp=unc echo "Running container ${container_name} ${container_id}" -#sleep 600 #docker exec --user root ${container_name} bash -c "\${CASSANDRA_DIR}/.build/docker/_create_user.sh build $(id -u) $(id -g)" -#docker exec --user root ${container_name} bash -c "/home/build/cassandra/.build/docker/_create_user.sh build $(stat -f %u ${cassandra_dir}) $(stat -f %g ${cassandra_dir})" + docker exec --user root ${container_name} bash -c "/home/build/cassandra/.build/docker/_create_user.sh build $(id -u) $(id -g)" docker exec --user build ${container_name} bash -c "${docker_command}" RETURN=$? -current_build_dir=$(basename "${build_dir}") -#docker cp ${container_name}:"/home/build/cassandra/build/${current_build_dir}" /home/jenkins/agent/workspace/k8s-e2e/build -#docker stop ${container_name} >/dev/null +docker stop ${container_name} >/dev/null popd >/dev/null [ $RETURN -eq 0 ] && echo "Build directory found at ${build_dir}" exit $RETURN diff --git a/.build/docker/run-tests.sh b/.build/docker/run-tests.sh index 504905a75233..5b6ba6c1509f 100755 --- a/.build/docker/run-tests.sh +++ b/.build/docker/run-tests.sh @@ -201,17 +201,15 @@ docker_command="source \${CASSANDRA_DIR}/.build/docker/_set_java.sh ${java_versi docker_id=$(docker run --name ${container_name} ${docker_flags} ${docker_mounts} ${docker_volume_opt} ${image_name} sleep 4h) echo "Running container ${container_name} ${docker_id}" -#sleep 600 docker exec --user root ${container_name} bash -c "\${CASSANDRA_DIR}/.build/docker/_create_user.sh cassandra $(id -u) $(id -g)" | tee -a ${logfile} docker exec --user root ${container_name} update-alternatives --set python /usr/bin/python${python_version} | tee -a ${logfile} -#docker cp "${build_dir}/." ${container_name}:/home/cassandra/cassandra/build # capture logs and pid for container docker exec --user cassandra ${container_name} bash -c "${docker_command}" | tee -a ${logfile} status=$? -#docker cp ${container_name}:/home/cassandra/cassandra/build/. "/home/jenkins/agent/workspace/k8s-e2e/build/${current_build_dir}" -#docker exec --user cassandra ${container_name} bash -c "mkdir -p /home/cassandra/cassandra/result/1/${target} && cp -r /home/cassandra/cassandra/build/test/output /home/cassandra/cassandra/result/1/${target}" + + if [ "$status" -ne 0 ] ; then echo "${docker_id} failed (${status}), debug…" docker inspect ${docker_id} @@ -224,7 +222,7 @@ if [ "$status" -ne 0 ] ; then echo "–––" echo "Failure." fi -# docker stop in background, ignore errors +docker stop in background, ignore errors #( nohup docker stop ${docker_id} >/dev/null 2>/dev/null & ) xz -f ${logfile} 2>/dev/null diff --git a/.build/run-new-ci.sh b/.build/run-new-ci.sh deleted file mode 100644 index b49f201e1b0c..000000000000 --- a/.build/run-new-ci.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/bash -KUBE_NS=default -POD_NAME=jenkins-example -BUILD_DIR=/var/lib/jenkins/jobs/k8s-e2e/builds -LATEST_BUILD=$(kubectl exec -it jenkins-example -- /bin/bash -c "ls -t $BUILD_DIR | head -n 1" | tr -d '\r') - -CONSOLE_LOG_FILE="$BUILD_DIR/$LATEST_BUILD/log" - -# Define a function to check if "FINISHED" is in the consoleLog -check_finished() { - kubectl exec -n default jenkins-example -- cat "$CONSOLE_LOG_FILE" | grep -q "Finished" -} - -# Continuously check for "FINISHED" -while true; do - if check_finished; then - echo "Build has finished." - break - else - echo "Build is still in progress." - fi - sleep 5 # Adjust the sleep interval as needed -done - -LOCAL_DIR=. -mkdir -p $LOCAL_DIR/$LATEST_BUILD -kubectl cp -n $KUBE_NS $POD_NAME:$BUILD_DIR/$LATEST_BUILD/log $LOCAL_DIR/$LATEST_BUILD/log -kubectl cp -n $KUBE_NS $POD_NAME:$BUILD_DIR/$LATEST_BUILD/junitResult.xml $LOCAL_DIR/$LATEST_BUILD/junitResult.xml \ No newline at end of file diff --git a/.jenkins/dummy.jenkins b/.jenkins/dummy.jenkins deleted file mode 100644 index 20157cdc5a64..000000000000 --- a/.jenkins/dummy.jenkins +++ /dev/null @@ -1,130 +0,0 @@ -pipeline { - agent { - kubernetes { - label 'cassandra' - defaultContainer 'jnlp' - yaml ''' - apiVersion: v1 - kind: Pod - metadata: - labels: - jenkins: label - spec: - initContainers: - - name: init-docker-socket - image: alpine:latest - imagePullPolicy: Always - command: - - sh - - -c - - chown 1000:1000 /var/run/docker.sock - volumeMounts: - - name: docker-socket - mountPath: /var/run/docker.sock - securityContext: - runAsUser: 0 - containers: - - name: jnlp - image: richamishra006/apache-k8s-agent:32 - command: - - /bin/sh - - -c - - /usr/local/bin/jenkins-agent - volumeMounts: - - name: docker-socket - mountPath: /var/run/docker.sock - tty: true - securityContext: - privileged: true - nodeSelector: - gke-node: first - volumes: - - name: docker-socket - hostPath: - path: /var/run/docker.sock - ''' - } - } -} -parameters { - string( - //choices: ['Init', 'lint', 'debian', 'redhat', 'centos7', 'stress', 'fqltool', 'Summary'], - description: 'Select the stages to run', - name: 'STAGES_TO_RUN' - ) -} -stages { - stage('Select Stage') { - steps { - script { - def stagesToRun = params.STAGES_TO_RUN.split(',') - stagesToRun.each { stageName -> - if (stageName == 'Init') { - buildInitStage() - } else if (stageName == 'lint') { - buildLintStage() - } else if (stageName == 'debian') { - buildDebianStage() - } else if (stageName == 'artifacts') { - buildArtifactsStage() - } else if (stageName == 'redhat') { - buildRedhatStage() - } else if (stageName == 'centos7') { - buildCentosStage() - } else if (stageName == 'stress') { - buildstressStage() - } else if (stageName == 'fqltool') { - buildfqltoolStage() - } - } - } - } - } - } - -def buildInitStage() { - stage('Init') { - script { currentBuild.result = 'SUCCESS' } - sh 'echo "stage init"' - } -} -def buildArtifactsStage() { - stage('artifacts') { - buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") - } -} - -def buildLintStage() { - stage('lint') { - sh 'echo "stage lint"' - - } -} - -def buildDebianStage() { - stage('debian') { - sh 'echo "stage debian"' - - } -} -def buildRedhatStage() { - stage('redhat') { - sh 'echo "stage redhat"' - - } -} -def buildCentosStage() { - stage('centos7') { - sh 'echo "stage centos7"' - } -} -def buildstressStage() { - stage('stress') { - sh 'echo "stage stress"' - } -} -def buildfqltoolStage() { - stage('fqltool') { - sh 'echo "stage fqltool"' - } -} \ No newline at end of file diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index d33c4f5de5d1..54881304c512 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -149,27 +149,21 @@ pipeline { echo "Processing stage: $stageName" if (stageName == 'lint') { sh 'echo "Running lint stage"' - // Add steps specific to the lint stage //buildJob(".build/docker/check-code.sh", "") } else if (stageName == 'debian') { sh 'echo "Running debian stage"' - // Add steps specific to the debian stage //buildJob(".build/docker/build-debian.sh", "cassandra_*,cassandra-tools_*") } else if (stageName == 'redhat') { sh 'echo "Running redhat stage"' - // Add steps specific to the redhat stage //buildJob(".build/docker/build-redhat.sh rpm", "*.rpm") } else if (stageName == 'centos7') { sh 'echo "Running centos7 stage"' - // Add steps specific to the centos7 stage //buildJob(".build/docker/build-redhat.sh noboolean", "*.rpm") } else if (stageName == 'stress') { sh 'echo "Running stress stage"' - // Add steps specific to the stress stage testJob(".build/docker/run-tests.sh", "stress-test", 1) } else if (stageName == 'fqltool') { sh 'echo "Running fqltool stage"' - // Add steps specific to the stress stage testJob(".build/docker/run-tests.sh", "fqltool-test", 1) } } @@ -284,7 +278,6 @@ pipeline { * Return the default JDK defined by build.xml **/ def javaVersionDefault() { - //sh 'cp -r /tmp/* /home/jenkins/agent/workspace/k8s-e2e' sh (returnStdout: true, script: 'grep \'property\\s*name=\"java.default\"\' build.xml | sed -ne \'s/.*value=\"\\([^\"]*\\)\".*/\\1/p\'').trim() } @@ -292,7 +285,6 @@ def javaVersionDefault() { * Return the supported JDKs defined by build.xml **/ def javaVersionsSupported() { - //sh 'cp -r /tmp/* /home/jenkins/agent/workspace/k8s-e2e' sh (returnStdout: true, script: 'grep \'property\\s*name=\"java.supported\"\' build.xml | sed -ne \'s/.*value=\"\\([^\"]*\\)\".*/\\1/p\'').trim() } @@ -348,19 +340,14 @@ def _buildAxis(build_script, toCopy, arch, jdk) { echo "build_script: ${build_script}" //checkout scm sh 'sudo mount --bind /tmp/k8s-e2e/ /home/jenkins/agent/workspace/k8s-e2e/' - sh "echo scm success" tool type: 'jdk', name: "jdk_${jdk}_latest" - sh "echo tool success" def statusCode = 0, attempt = 1 retry(2) { if (attempt > 1) { sleep(60 * attempt) } def build_script_safe_name = "${build_script}".replace(".build/docker/", "").replace(".sh", "_").replace(" ", "_") def logfile = "${JOB_NAME}_${BUILD_NUMBER}_${build_script_safe_name}_jdk${jdk}_${arch}_attempt_${attempt}.log" sh "mkdir -p build" - //sh 'sleep 600' def build_dir = sh( returnStdout: true, script:"mktemp -d ${WORKSPACE}/build/build_docker_run.XXXXXXXXXX" ).trim() - def tmp_dir = generatePath(build_dir.trim()) - echo "tmp_dir ${tmp_dir}" try { sh 'echo ${build_script}' if (".build/docker/build-artifacts.sh" != build_script && !build_script.contains(".build/docker/_docker_run.sh")) { @@ -371,8 +358,6 @@ def _buildAxis(build_script, toCopy, arch, jdk) { } echo "Executing `build_dir=${build_dir} ${build_script} ${jdk} 2>&1 | tee ${logfile}` on ${NODE_NAME}" statusCode = sh returnStatus:true, script:"build_dir=\"${build_dir}\" ${build_script} ${jdk} 2>&1 | tee ${build_dir}/${logfile}" - sh "echo ${build_script}" - echo "${build_dir}" if (".build/docker/build-artifacts.sh" == build_script || build_script.contains(".build/docker/_docker_run.sh")) { dir("${build_dir}") { @@ -483,16 +468,12 @@ parallel(tests_per_arch) **/ def _testAxis(test_script, test_type, toCopy, arch, jdk, python, cython, split) { echo "Spawning `${test_script} ${test_type} ${split} ${jdk}` with arch=${arch} jdk=${jdk} python${python} cython=${cython}" - echo "test" node(arch) { branchName: "${test_script} ${test_type} ${split} ${jdk} ${NODE_NAME}" - echo "test below branchName" echo "Starting `${test_script} ${test_type} ${split} ${jdk}` with arch=${arch} jdk=${jdk} python${python} cython=${cython} on ${NODE_NAME}" cleanWs() //checkout scm sh 'sudo mount --bind /tmp/k8s-e2e/ /home/jenkins/agent/workspace/k8s-e2e/' - echo "test scm success" - //def build_dir = '/home/jenkins/agent/workspace/k8s-e2e/build' sh "mkdir -p build" def build_dir = sh( returnStdout: true, script:"mktemp -d ${WORKSPACE}/build/build_docker_run.XXXXXXXXXX" ).trim() def current_build_dir = sh(returnStdout: true, script: "basename \"${build_dir}\"").trim() @@ -528,29 +509,16 @@ def _testAxis(test_script, test_type, toCopy, arch, jdk, python, cython, split) } } - dir("${build_dir}") { + //dir("${build_dir}") { // only stash the project built files. all dependency libraries are restored from the local maven repo using `ant resolver-dist-lib` - stash name: "${arch}_${jdk}_${test_type}", includes: "test/output/**" - //stash name: "${arch}_${jdk}", includes: "*.jar" - //def container_name = "stash_${jdk}" - //sh "docker run --name ${container_name} -d -v /home/jenkins/agent/workspace/k8s-e2e:/home/jenkins/agent/workspace/k8s-e2e alpine:latest tail -f /dev/null" - //sh "docker exec ${container_name} sh -c 'adduser -D --no-create-home --uid 1000 --gecos build build && apk add git'" - //sh "docker exec -u build ${container_name} sh -c \"cd /home/jenkins/agent/workspace/k8s-e2e && git add build && git stash save jdk_${jdk}\"" - //sh "docker stop ${container_name}" - } + //stash name: "${arch}_${jdk}_${test_type}", includes: "test/output/**" + //} if (currentBuild.result != 'SUCCESS') unstable("${build_name} failures") if (currentBuild.result == 'ABORTED' && currentBuild.result != 'FAILURE') currentBuild.result='ABORTED' if (currentBuild.result == 'FAILURE') currentBuild.result='FAILURE' } } -def generatePath(build_dir) { - def tmp_dir = '/tmp' - def parts = build_dir.split('/') - def hash = parts.last() - echo "parts[6]: ${parts[6]}" - echo "hash: ${hash}" - return "${tmp_dir}/${parts[6]}/${hash}" -} + def copyToNightlies(sourceFiles, remoteDirectory='') { if (isCanonical()) { diff --git a/.jenkins/scriptedPipeline.jenkins b/.jenkins/scriptedPipeline.jenkins deleted file mode 100644 index ad6d8d51eb36..000000000000 --- a/.jenkins/scriptedPipeline.jenkins +++ /dev/null @@ -1,62 +0,0 @@ -node('cassandra') { - def javaVersionDefault - def javaVersionsSupported - - stage('Preparation') { - checkout scm - javaVersionDefault = javaVersionDefault() - javaVersionsSupported = javaVersionsSupported() - } - - stage('Init') { - cleanWs() - currentBuild.result = 'SUCCESS' - } - - stage('Builds') { - parallel( - "artifacts": { - buildJob(".build/docker/build-artifacts.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") - } - ) - } - - stage('Test') { - parallel( - "lint": { - buildJob(".build/docker/check-code.sh", "") - }, - "debian": { - buildJob(".build/docker/build-debian.sh", "cassandra_*,cassandra-tools_*") - }, - "redhat": { - buildJob(".build/docker/build-redhat.sh rpm", "*.rpm") - }, - "centos7": { - buildJob(".build/docker/build-redhat.sh noboolean", "*.rpm") - }, - "stress": { - testJob(".build/docker/run-tests.sh", "stress-test", 1) - }, - "fqltool": { - testJob(".build/docker/run-tests.sh", "fqltool-test", 1) - } - // ... Add more test stages as needed - ) - } - - stage('Summary') { - collectConsoleLog() - copyToNightlies('console.log.xz,TESTS-TestSuites.xml.xz') - } -} - -def javaVersionDefault() { - return sh(script: "grep 'property\\s*name=\"java.default\"' build.xml | sed -ne 's/.*value=\"\\([^\"]*\\)\".*/\\1/p'", returnStdout: true).trim() -} - -def javaVersionsSupported() { - return sh(script: "grep 'property\\s*name=\"java.supported\"' build.xml | sed -ne 's/.*value=\"\\([^\"]*\\)\".*/\\1/p'", returnStdout: true).trim() -} - -// Define other helper functions and stages here From 2a3d6c2cba7542e540585a3fa0a14c7fa76927c0 Mon Sep 17 00:00:00 2001 From: richamishra Date: Fri, 13 Oct 2023 19:18:48 +0530 Subject: [PATCH 399/426] changed the mount path --- .jenkins/pipeline.jenkins | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 54881304c512..11a8e03b70d2 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -90,7 +90,7 @@ pipeline { path: /var/run/docker.sock - name: cassandra-dir hostPath: - path: /home/jenkins/agent/workspace/k8s-e2e + path: /home/michael_sembwever/cassandra/cassandra ''' } } @@ -339,7 +339,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { //cleanWs() echo "build_script: ${build_script}" //checkout scm - sh 'sudo mount --bind /tmp/k8s-e2e/ /home/jenkins/agent/workspace/k8s-e2e/' + sh 'sudo mount --bind /tmp/k8s-e2e/ /home/michael_sembwever/cassandra/cassandra' tool type: 'jdk', name: "jdk_${jdk}_latest" def statusCode = 0, attempt = 1 retry(2) { @@ -473,7 +473,7 @@ def _testAxis(test_script, test_type, toCopy, arch, jdk, python, cython, split) echo "Starting `${test_script} ${test_type} ${split} ${jdk}` with arch=${arch} jdk=${jdk} python${python} cython=${cython} on ${NODE_NAME}" cleanWs() //checkout scm - sh 'sudo mount --bind /tmp/k8s-e2e/ /home/jenkins/agent/workspace/k8s-e2e/' + sh 'sudo mount --bind /tmp/k8s-e2e/ /home/michael_sembwever/cassandra/cassandra' sh "mkdir -p build" def build_dir = sh( returnStdout: true, script:"mktemp -d ${WORKSPACE}/build/build_docker_run.XXXXXXXXXX" ).trim() def current_build_dir = sh(returnStdout: true, script: "basename \"${build_dir}\"").trim() From 13b89a5e5b3cee6324c2f0d45b23e049a1134ea8 Mon Sep 17 00:00:00 2001 From: richamishra Date: Fri, 13 Oct 2023 19:22:27 +0530 Subject: [PATCH 400/426] updated mount path --- .jenkins/pipeline.jenkins | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 11a8e03b70d2..00e0f335db8c 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -339,7 +339,7 @@ def _buildAxis(build_script, toCopy, arch, jdk) { //cleanWs() echo "build_script: ${build_script}" //checkout scm - sh 'sudo mount --bind /tmp/k8s-e2e/ /home/michael_sembwever/cassandra/cassandra' + sh 'sudo mount --bind /tmp/k8s-e2e/ /home/jenkins/agent/workspace/k8s-e2e/' tool type: 'jdk', name: "jdk_${jdk}_latest" def statusCode = 0, attempt = 1 retry(2) { @@ -473,7 +473,7 @@ def _testAxis(test_script, test_type, toCopy, arch, jdk, python, cython, split) echo "Starting `${test_script} ${test_type} ${split} ${jdk}` with arch=${arch} jdk=${jdk} python${python} cython=${cython} on ${NODE_NAME}" cleanWs() //checkout scm - sh 'sudo mount --bind /tmp/k8s-e2e/ /home/michael_sembwever/cassandra/cassandra' + sh 'sudo mount --bind /tmp/k8s-e2e/ /home/jenkins/agent/workspace/k8s-e2e/' sh "mkdir -p build" def build_dir = sh( returnStdout: true, script:"mktemp -d ${WORKSPACE}/build/build_docker_run.XXXXXXXXXX" ).trim() def current_build_dir = sh(returnStdout: true, script: "basename \"${build_dir}\"").trim() From 4f9f82ded410cb75cf538b4223792aa292970580 Mon Sep 17 00:00:00 2001 From: richamishra Date: Fri, 13 Oct 2023 19:30:10 +0530 Subject: [PATCH 401/426] reverted mount path --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 00e0f335db8c..54881304c512 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -90,7 +90,7 @@ pipeline { path: /var/run/docker.sock - name: cassandra-dir hostPath: - path: /home/michael_sembwever/cassandra/cassandra + path: /home/jenkins/agent/workspace/k8s-e2e ''' } } From 45d8aa21834c7df04c923f6e648b91bba5c31473 Mon Sep 17 00:00:00 2001 From: richamishra Date: Mon, 16 Oct 2023 11:23:10 +0530 Subject: [PATCH 402/426] updated job name --- .jenkins/job/DslJob.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/job/DslJob.jenkins b/.jenkins/job/DslJob.jenkins index 2198e8503d13..d01bd73be279 100644 --- a/.jenkins/job/DslJob.jenkins +++ b/.jenkins/job/DslJob.jenkins @@ -14,7 +14,7 @@ -pipelineJob('k8s-e2e') { +pipelineJob('k8s-jenkins') { displayName('Kubernetes Plugin E2E Test') definition { From 88ad70c63ac898e414861333506c95befa92540e Mon Sep 17 00:00:00 2001 From: richamishra Date: Mon, 16 Oct 2023 13:28:25 +0530 Subject: [PATCH 403/426] reverted job name --- .jenkins/job/DslJob.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/job/DslJob.jenkins b/.jenkins/job/DslJob.jenkins index d01bd73be279..2198e8503d13 100644 --- a/.jenkins/job/DslJob.jenkins +++ b/.jenkins/job/DslJob.jenkins @@ -14,7 +14,7 @@ -pipelineJob('k8s-jenkins') { +pipelineJob('k8s-e2e') { displayName('Kubernetes Plugin E2E Test') definition { From 18621098b47759596c19489817a006008f79b19a Mon Sep 17 00:00:00 2001 From: Nbarola Date: Mon, 16 Oct 2023 17:52:57 +0530 Subject: [PATCH 404/426] add stringParam to pipelineJob in DslJob.jenkins --- .jenkins/job/DslJob.jenkins | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.jenkins/job/DslJob.jenkins b/.jenkins/job/DslJob.jenkins index 2198e8503d13..9f86aacc9577 100644 --- a/.jenkins/job/DslJob.jenkins +++ b/.jenkins/job/DslJob.jenkins @@ -16,6 +16,9 @@ pipelineJob('k8s-e2e') { displayName('Kubernetes Plugin E2E Test') + parameters { + stringParam('TEST_STAGES_TO_RUN', "", 'Select the stages to run') + } definition { cpsScm { From acaed3e9b19589f1555ec1dbfeb180ddd809e4c0 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Mon, 16 Oct 2023 18:55:55 +0530 Subject: [PATCH 405/426] parameterise repo-url and repo-branch for jenkins-deployment.yaml in run-ci.sh --- .build/run-ci.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.build/run-ci.sh b/.build/run-ci.sh index d652e27e925f..39f12e75de61 100755 --- a/.build/run-ci.sh +++ b/.build/run-ci.sh @@ -81,6 +81,15 @@ else fi +TARGETS=".jenkins/job/DslJob.jenkins" +REPO_BRANCH="infracloud/cassandra-5.0" +REPO_URL="https://github.com/infracloudio/cassandra.git" + + +sed -i -e "/targets:/s|:.*$|: \"$TARGETS\"|" \ + -e "/repositoryBranch:/s|:.*$|: \"$REPO_BRANCH\"|" \ + -e "/repositoryUrl:/s|:.*$|: \"$REPO_URL\"|" jenkins-deployment.yaml + # Add Helm Jenkins Operator repository echo "Adding Helm repository for Jenkins Operator..." helm repo add --namespace ${KUBE_NS} jenkins https://raw.githubusercontent.com/jenkinsci/kubernetes-operator/master/chart From d84b73b3317ac82c9c393a83baa5f48844977ad3 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Tue, 17 Oct 2023 13:19:18 +0530 Subject: [PATCH 406/426] remove nodeSelector from the k8s agent pod template --- .jenkins/pipeline.jenkins | 3 --- 1 file changed, 3 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 54881304c512..0a01427f2ce2 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -80,10 +80,7 @@ pipeline { mountPath: /tmp/k8s-e2e tty: true securityContext: - //runAsUser: 0 privileged: true - nodeSelector: - gke-node: first volumes: - name: docker-socket hostPath: From 38c27a1748b1edb486dfbcf840f233036d7d6f4e Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 17 Oct 2023 15:21:22 +0530 Subject: [PATCH 407/426] updated buildjob command --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 54881304c512..d30d33ec89a4 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -130,7 +130,7 @@ pipeline { stage('artifacts') { steps { sh 'echo "starting artifacts stage"' - buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") + buildJob(".build/docker/build-artifacts.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") sh 'echo "finishing stage artifacts"' } } From 3e94a1c3f72eb08a4a61cb1f61af3489e944ae2c Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 17 Oct 2023 15:40:35 +0530 Subject: [PATCH 408/426] reverted buildjob command --- .jenkins/pipeline.jenkins | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 914381b3e8c9..54881304c512 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -80,7 +80,10 @@ pipeline { mountPath: /tmp/k8s-e2e tty: true securityContext: + //runAsUser: 0 privileged: true + nodeSelector: + gke-node: first volumes: - name: docker-socket hostPath: @@ -127,7 +130,7 @@ pipeline { stage('artifacts') { steps { sh 'echo "starting artifacts stage"' - buildJob(".build/docker/build-artifacts.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") + buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") sh 'echo "finishing stage artifacts"' } } From 93482effde4dd78fc1eb79f7cc85caa218dda583 Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 17 Oct 2023 15:48:30 +0530 Subject: [PATCH 409/426] updated buildjob command --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 54881304c512..7ba75e73f617 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -130,7 +130,7 @@ pipeline { stage('artifacts') { steps { sh 'echo "starting artifacts stage"' - buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") + buildJob(".build/docker/build-artifacts,sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") sh 'echo "finishing stage artifacts"' } } From a3f7b1acb9f757879a92d908c8410886b01394bd Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 17 Oct 2023 15:56:38 +0530 Subject: [PATCH 410/426] fixed typo --- .jenkins/pipeline.jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index 7ba75e73f617..d30d33ec89a4 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -130,7 +130,7 @@ pipeline { stage('artifacts') { steps { sh 'echo "starting artifacts stage"' - buildJob(".build/docker/build-artifacts,sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") + buildJob(".build/docker/build-artifacts.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") sh 'echo "finishing stage artifacts"' } } From 2bfe66570f4892011b816c9680be6a07e6505341 Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 17 Oct 2023 17:47:01 +0530 Subject: [PATCH 411/426] reverted changes --- .jenkins/pipeline.jenkins | 3 --- 1 file changed, 3 deletions(-) diff --git a/.jenkins/pipeline.jenkins b/.jenkins/pipeline.jenkins index d30d33ec89a4..914381b3e8c9 100644 --- a/.jenkins/pipeline.jenkins +++ b/.jenkins/pipeline.jenkins @@ -80,10 +80,7 @@ pipeline { mountPath: /tmp/k8s-e2e tty: true securityContext: - //runAsUser: 0 privileged: true - nodeSelector: - gke-node: first volumes: - name: docker-socket hostPath: From be5f02e33f4c2a14bcc33a205eb2a0fec5f09daf Mon Sep 17 00:00:00 2001 From: richamishra Date: Tue, 17 Oct 2023 18:00:56 +0530 Subject: [PATCH 412/426] added few changes in script --- .build/jenkins-deployment.yaml | 6 +++--- .build/run-ci.sh | 33 +++++++++++++++++++++++++++++++-- 2 files changed, 34 insertions(+), 5 deletions(-) diff --git a/.build/jenkins-deployment.yaml b/.build/jenkins-deployment.yaml index c1607677d7d3..f2f0a4e39f99 100644 --- a/.build/jenkins-deployment.yaml +++ b/.build/jenkins-deployment.yaml @@ -106,7 +106,7 @@ spec: runAsUser: 1000 seedJobs: - id: jenkins-operator - targets: ".jenkins/job/DslJob.jenkins" #"cicd/jobs/k8s.jenkins" + targets: ".jenkins/job/DslJob.jenkins" description: "Casandra Repo" - repositoryBranch: infracloud/cassandra-5.0 #master #infracloud/cassandra-5.0 # - repositoryUrl: https://github.com/infracloudio/cassandra.git + repositoryBranch: "infracloud/cassandra-5.0" + repositoryUrl: "https://github.com/infracloudio/cassandra.git" diff --git a/.build/run-ci.sh b/.build/run-ci.sh index 39f12e75de61..109b323bcde0 100755 --- a/.build/run-ci.sh +++ b/.build/run-ci.sh @@ -96,13 +96,28 @@ helm repo add --namespace ${KUBE_NS} jenkins https://raw.githubusercontent.com/j # Install Jenkins Operator using Helm echo "Installing Jenkins Operator..." -#helm upgrade --namespace ${KUBE_NS} --install jenkins-operator jenkins/jenkins-operator --set jenkins.enabled=false --set jenkins.backup.enabled=false --version 0.8.0-beta.2 +helm upgrade --namespace ${KUBE_NS} --install jenkins-operator jenkins/jenkins-operator --set jenkins.enabled=false --set jenkins.backup.enabled=false --version 0.8.0-beta.2 echo "Jenkins Operator installed successfully!" # condition to check if above command was success # deploy jenkins Instance TODO jenkins file parameter kubectl apply --namespace ${KUBE_NS} -f ${CASSANDRA_DIR}/.build/jenkins-deployment.yaml +while ! ( kubectl --namespace ${KUBE_NS} get pods | grep seed-job-agent | grep " 1/1 " | grep -q " Running" ) ; do + echo "Jenkins installing. Waiting..." + sleep 5 # Adjust the polling interval as needed +done + +kubectl rollout status deployment/jenkins-operator -n ${KUBE_NS} + +# Port-forward the Jenkins service to access it locally +jenkins_pod=$(kubectl get pods -n ${KUBE_NS} -l jenkins-cr=example -o jsonpath='{.items[0].metadata.name}') + +nohup kubectl port-forward svc/jenkins-operator-http-example 8080:8080 & +echo "port-forwarding running in background" +# echo "To forward the Jenkins service to another terminal, open a new terminal window and run the following command:" +# echo "kubectl port-forward -n ${KUBE_NS} $jenkins_pod 8080:8080" + TOKEN=$(kubectl get secret jenkins-operator-credentials-example -o jsonpath="{.data.token}" | base64 --decode) # Trigger a new build and capture the response headers @@ -152,6 +167,20 @@ done LOCAL_DIR=. mkdir -p $LOCAL_DIR/$build_number kubectl cp -n $KUBE_NS $POD_NAME:$BUILD_DIR/$build_number/log $LOCAL_DIR/$build_number/log -kubectl cp -n $KUBE_NS $POD_NAME:$BUILD_DIR/$build_number/junitResult.xml $LOCAL_DIR/$build_number/junitResult.xml +zip -r $LOCAL_DIR/$build_number/files.zip $LOCAL_DIR/$build_number/log +rm $LOCAL_DIR/$build_number/log + +if kubectl exec -n $KUBE_NS $POD_NAME -- test -e $BUILD_DIR/$build_number/junitResult.xml; then + # Copy and compress the junitResult.xml file + kubectl cp -n $KUBE_NS $POD_NAME:$BUILD_DIR/$build_number/junitResult.xml $LOCAL_DIR/$build_number/junitResult.xml + + # Create a zip archive of the copied junitResult.xml file + zip -j $LOCAL_DIR/$build_number/junitResult.zip $LOCAL_DIR/$build_number/junitResult.xml + # Clean up: remove the individual junitResult.xml file + rm $LOCAL_DIR/$build_number/junitResult.xml +else + # Display a message indicating that junitResult.xml is not generated + echo "junitResult.xml is not generated." +fi From 49c15dfa39d36680dcaf0aa77ce2b75b33b09d96 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Tue, 17 Oct 2023 19:55:14 +0530 Subject: [PATCH 413/426] update jenkins deployment deployment name --- .build/jenkins-deployment.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.build/jenkins-deployment.yaml b/.build/jenkins-deployment.yaml index f2f0a4e39f99..d1bde85bc936 100644 --- a/.build/jenkins-deployment.yaml +++ b/.build/jenkins-deployment.yaml @@ -15,7 +15,7 @@ data: apiVersion: jenkins.io/v1alpha2 kind: Jenkins metadata: - name: example + name: jenkins spec: configurationAsCode: configurations: From 742e923109d98b3caa3f16bbbac80f5d7ebed92a Mon Sep 17 00:00:00 2001 From: Nbarola Date: Tue, 17 Oct 2023 19:57:18 +0530 Subject: [PATCH 414/426] update jenkins deployment name in run-ci.sh --- .build/run-ci.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.build/run-ci.sh b/.build/run-ci.sh index 109b323bcde0..5a4e069609cd 100755 --- a/.build/run-ci.sh +++ b/.build/run-ci.sh @@ -111,14 +111,14 @@ done kubectl rollout status deployment/jenkins-operator -n ${KUBE_NS} # Port-forward the Jenkins service to access it locally -jenkins_pod=$(kubectl get pods -n ${KUBE_NS} -l jenkins-cr=example -o jsonpath='{.items[0].metadata.name}') +jenkins_pod=$(kubectl get pods -n ${KUBE_NS} -l jenkins-cr=jenkins -o jsonpath='{.items[0].metadata.name}') -nohup kubectl port-forward svc/jenkins-operator-http-example 8080:8080 & +nohup kubectl port-forward svc/jenkins-operator-http-jenkins 8080:8080 & echo "port-forwarding running in background" # echo "To forward the Jenkins service to another terminal, open a new terminal window and run the following command:" # echo "kubectl port-forward -n ${KUBE_NS} $jenkins_pod 8080:8080" -TOKEN=$(kubectl get secret jenkins-operator-credentials-example -o jsonpath="{.data.token}" | base64 --decode) +TOKEN=$(kubectl get secret jenkins-operator-credentials-jenkins -o jsonpath="{.data.token}" | base64 --decode) # Trigger a new build and capture the response headers response_headers=$(curl -i -X POST http://localhost:8080/job/k8s-e2e/buildWithParameters -u jenkins-operator:$TOKEN --data-urlencode "TEST_STAGES_TO_RUN=$INCLUDE_TEST_STAGE" 2>&1) @@ -143,7 +143,7 @@ done echo "build_number $build_number" BUILD_DIR=/var/lib/jenkins/jobs/k8s-e2e/builds -POD_NAME=jenkins-example +POD_NAME=jenkins-jenkins LATEST_BUILD=$(kubectl exec -it $POD_NAME -- /bin/bash -c "ls -t $BUILD_DIR | head -n 1" | tr -d '\r') CONSOLE_LOG_FILE="$BUILD_DIR/$build_number/log" From b696aeef2e0d75161e444236bc73063cf22ae616 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Wed, 18 Oct 2023 12:40:37 +0530 Subject: [PATCH 415/426] add tear-down and portforwarding process termination in run-ci.sh --- .build/run-ci.sh | 90 ++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 83 insertions(+), 7 deletions(-) diff --git a/.build/run-ci.sh b/.build/run-ci.sh index 5a4e069609cd..d4a47401b368 100755 --- a/.build/run-ci.sh +++ b/.build/run-ci.sh @@ -46,6 +46,38 @@ while [[ $# -gt 0 ]]; do shift shift ;; + --repo-url) + REPO_URL="$2" + shift + shift;; + --repo-branch) + REPO_BRANCH="$2" + shift + shift + ;; + --targets) + TARGETS="$2" + shift + shift + ;; + --tear-down) + TEAR_DOWN="$2" + shift + shift + ;; + --help) + echo "Usage: your_script.sh [options]" + echo "Options:" + echo " -c, --kubeconfig Specify the path to a Kubeconfig file." + echo " -ctx, --kubecontext Specify the Kubernetes context to use." + echo " --include-test-stage Include test stage/s." + echo " --repo-url Specify the repository URL." + echo " --repo-branch Specify the repository branch." + echo " --targets Specify the build targets." + echo " --tear-down Tear down Jenkins Instance, true or false." + echo " --help Show this help message." + exit 0 + ;; *) echo "Unknown option: $1" exit 1 @@ -81,14 +113,45 @@ else fi -TARGETS=".jenkins/job/DslJob.jenkins" -REPO_BRANCH="infracloud/cassandra-5.0" -REPO_URL="https://github.com/infracloudio/cassandra.git" +if [ -n "$TARGETS" ]; then + # The variable is not empty, so it has a value + echo "TARGETS is not empty. Its value is: $TARGETS" +else + # The variable is empty, so assign a default value + TARGETS=".jenkins/job/DslJob.jenkins" + echo "TARGETS is empty. Assigning default value: $TARGETS" +fi + +if [ -n "$REPO_URL" ]; then + # The variable is not empty, so it has a value + echo "REPO_URL is not empty. Its value is: $REPO_URL" +else + # The variable is empty, so assign a default value + REPO_URL="https://github.com/infracloudio/cassandra.git" + echo "REPO_URL is empty. Assigning default value: $REPO_URL" +fi + +if [ -n "$REPO_BRANCH" ]; then + # The variable is not empty, so it has a value + echo "REPO_BRANCH is not empty. Its value is: $REPO_BRANCH" +else + # The variable is empty, so assign a default value + REPO_BRANCH="infracloud/cassandra-5.0" + echo "REPO_BRANCH is empty. Assigning default value: $REPO_BRANCH" +fi +if [ -n "$TEAR_DOWN" ]; then + # The variable is not empty, so it has a value + echo "TEAR_DOWN is not empty. Its value is: $TEAR_DOWN" +else + # The variable is empty, so assign a default value + TEAR_DOWN=false + echo "TEAR_DOWN is empty. Assigning default value: $TEAR_DOWN" +fi -sed -i -e "/targets:/s|:.*$|: \"$TARGETS\"|" \ +sed -e "/targets:/s|:.*$|: \"$TARGETS\"|" \ -e "/repositoryBranch:/s|:.*$|: \"$REPO_BRANCH\"|" \ - -e "/repositoryUrl:/s|:.*$|: \"$REPO_URL\"|" jenkins-deployment.yaml + -e "/repositoryUrl:/s|:.*$|: \"$REPO_URL\"|" ${CASSANDRA_DIR}/.build/jenkins-deployment.yaml > ${CASSANDRA_DIR}/.build/jenkins-deployment.yaml # Add Helm Jenkins Operator repository echo "Adding Helm repository for Jenkins Operator..." @@ -98,9 +161,13 @@ helm repo add --namespace ${KUBE_NS} jenkins https://raw.githubusercontent.com/j echo "Installing Jenkins Operator..." helm upgrade --namespace ${KUBE_NS} --install jenkins-operator jenkins/jenkins-operator --set jenkins.enabled=false --set jenkins.backup.enabled=false --version 0.8.0-beta.2 -echo "Jenkins Operator installed successfully!" # condition to check if above command was success +while ! ( kubectl --namespace ${KUBE_NS} get pods | grep jenkins-operator | grep " 1/1 " | grep -q " Running" ) ; do + echo "Jenkins installing. Waiting..." + sleep 5 # Adjust the polling interval as needed +done + +echo "Jenkins Operator installed successfully!" -# deploy jenkins Instance TODO jenkins file parameter kubectl apply --namespace ${KUBE_NS} -f ${CASSANDRA_DIR}/.build/jenkins-deployment.yaml while ! ( kubectl --namespace ${KUBE_NS} get pods | grep seed-job-agent | grep " 1/1 " | grep -q " Running" ) ; do @@ -184,3 +251,12 @@ else echo "junitResult.xml is not generated." fi + +# kill the port-forwarding process +ps -elf | grep port-forward | head -n1 | awk -F " " '{ print $4 }' | xargs kill -9 + + +if [ $TEAR_DOWN ]; then + kubectl delete --namespace ${KUBE_NS} -f ${CASSANDRA_DIR}/.build/jenkins-deployment.yaml +fi + From b8f9e3ac337b134fbf219ae9235d077423652e26 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Wed, 18 Oct 2023 12:42:40 +0530 Subject: [PATCH 416/426] Update the fetch result code in .build/run-ci.sh Co-authored-by: mck --- .build/run-ci.sh | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/.build/run-ci.sh b/.build/run-ci.sh index d4a47401b368..c9969efea654 100755 --- a/.build/run-ci.sh +++ b/.build/run-ci.sh @@ -231,21 +231,12 @@ while true; do sleep 5 # Adjust the sleep interval as needed done -LOCAL_DIR=. -mkdir -p $LOCAL_DIR/$build_number -kubectl cp -n $KUBE_NS $POD_NAME:$BUILD_DIR/$build_number/log $LOCAL_DIR/$build_number/log -zip -r $LOCAL_DIR/$build_number/files.zip $LOCAL_DIR/$build_number/log -rm $LOCAL_DIR/$build_number/log +RESULTS_DIR="${CASSANDRA_DIR}/build/ci_${build_number}" +mkdir -p ${RESULTS_DIR} +kubectl cp -n $KUBE_NS $POD_NAME:${CONSOLE_LOG_FILE} ${RESULTS_DIR}/log if kubectl exec -n $KUBE_NS $POD_NAME -- test -e $BUILD_DIR/$build_number/junitResult.xml; then - # Copy and compress the junitResult.xml file - kubectl cp -n $KUBE_NS $POD_NAME:$BUILD_DIR/$build_number/junitResult.xml $LOCAL_DIR/$build_number/junitResult.xml - - # Create a zip archive of the copied junitResult.xml file - zip -j $LOCAL_DIR/$build_number/junitResult.zip $LOCAL_DIR/$build_number/junitResult.xml - - # Clean up: remove the individual junitResult.xml file - rm $LOCAL_DIR/$build_number/junitResult.xml + kubectl cp -n $KUBE_NS $POD_NAME:$BUILD_DIR/$build_number/junitResult.xml ${RESULTS_DIR}/junitResult.xml else # Display a message indicating that junitResult.xml is not generated echo "junitResult.xml is not generated." From 9d1765ce77fc15c2fa625753367c6e4c7a0ba5c3 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Wed, 18 Oct 2023 16:30:45 +0530 Subject: [PATCH 417/426] remove dsljob and pipelinecopy jenkinsfiles --- .jenkins/job/DslJob.jenkins | 3 + .jenkins/job/dsljobcopy.jenkins | 34 -- .jenkins/pipelinecopy.jenkins | 657 -------------------------------- 3 files changed, 3 insertions(+), 691 deletions(-) delete mode 100644 .jenkins/job/dsljobcopy.jenkins delete mode 100644 .jenkins/pipelinecopy.jenkins diff --git a/.jenkins/job/DslJob.jenkins b/.jenkins/job/DslJob.jenkins index 9f86aacc9577..4e4ff2da41a0 100644 --- a/.jenkins/job/DslJob.jenkins +++ b/.jenkins/job/DslJob.jenkins @@ -1,5 +1,8 @@ #!/usr/bin/env groovy +// Below section was added to trigger the generated job automatically +// Since we are triggering the builds using curl (CLI) we don't need it for now + // job('jenkins-operator-job-dsl-seed') { // description('Seed Job that generates and triggers the GeneratedPipelineJob') // configure { project -> diff --git a/.jenkins/job/dsljobcopy.jenkins b/.jenkins/job/dsljobcopy.jenkins deleted file mode 100644 index adfaf3ccaa88..000000000000 --- a/.jenkins/job/dsljobcopy.jenkins +++ /dev/null @@ -1,34 +0,0 @@ -#!/usr/bin/env groovy - -job('jenkins-operator-job-dsl-seed') { - description('Seed Job that generates and triggers the GeneratedPipelineJob') - configure { project -> - project / 'publishers' << 'hudson.tasks.BuildTrigger' { - childProjects('k8s-e2e') - threshold { - name('SUCCESS') - } - } - } -} - - - -pipelineJob('k8s-e2e') { - displayName('Kubernetes Plugin E2E Test') - - definition { - cpsScm { - scm { - git { - remote { - url('https://github.com/infracloudio/cassandra.git') - } - branches('*/infracloud/cassandra-5.0') - } - } - scriptPath('.jenkins/pipelinecopy.jenkins') - } - } -} - diff --git a/.jenkins/pipelinecopy.jenkins b/.jenkins/pipelinecopy.jenkins deleted file mode 100644 index c62026ba9178..000000000000 --- a/.jenkins/pipelinecopy.jenkins +++ /dev/null @@ -1,657 +0,0 @@ -// 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 -// -// https://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. -// -// -// Jenkins CI declaration. -// -// This file is declarative initially. -// The declarative component describes the pipeline stages and to what CI-agnostic scripts they map to. -// These CI-agnostic scripts are used as an intermediate dockerised layer above the ant build.xml -// The ant build.xml is never invoked directly. -// -// Below the declarative section there is groovy scripting methods for all the logic between -// the 10k ft declarative view and the CI-agnostic scripts. -// -// This Jenkinsfile is expected to work on any ci-cassandra.a.o clone. -// Functionality that depends upon ASF Infra and the canonical ci-cassandra.a.o setup (e.g. post-commit builds) -// is required to quietly fail when run on other environments. -// -// -// Job definitions are still being migrated from (where other CI jobs can also be found): -// https://github.com/apache/cassandra-builds/blob/trunk/jenkins-dsl/cassandra_job_dsl_seed.groovy -// -// -// Syntax help can be found at https://ci-cassandra.apache.org/pipeline-syntax/ -// -// Validate/lint this file using the following command -// `curl -X POST -F "jenkinsfile=<.jenkins/Jenkinsfile" https://ci-cassandra.apache.org/pipeline-model-converter/validate` - -pipeline { - agent { - kubernetes { - label 'cassandra' - //defaultContainer 'jnlp' - yaml ''' - apiVersion: v1 - kind: Pod - metadata: - labels: - jenkins: label - spec: - initContainers: - - name: init-docker-socket - image: alpine:latest - imagePullPolicy: Always - command: - - sh - - -c - - chown 1000:1000 /var/run/docker.sock - volumeMounts: - - name: docker-socket - mountPath: /var/run/docker.sock - securityContext: - runAsUser: 0 - containers: - - name: jnlp - image: richamishra006/apache-k8s-agent:v31 - command: - - /bin/sh - - -c - - /usr/local/bin/jenkins-agent - volumeMounts: - - name: docker-socket - mountPath: /var/run/docker.sock - tty: true - securityContext: - privileged: true - //nodeSelector: - //gke-node: first - volumes: - - name: docker-socket - hostPath: - path: /var/run/docker.sock - ''' - } - } - - options { - githubProjectProperty('https://github.com/apache/cassandra') - parallelsAlwaysFailFast() - timestamps() - } - environment { - javaVersionDefault = javaVersionDefault() - javaVersionsSupported = javaVersionsSupported() - PIPELINE_SCRIPT_DEBUG = 'true' - } - stages { - stage('Init') { - steps { - container('jnlp') { - //cleanWs() - script { currentBuild.result='SUCCESS' } - sh 'echo "stage init"' - } - } - } - - stage('Builds') { - parallel { - stage('artifacts') { - agent { - kubernetes { - label "artifacts" - yaml ''' - spec: - containers: - - name: jnlp - image: richamishra006/apache-k8s-agent:v31 - command: - - /bin/sh - - -c - - /usr/local/bin/jenkins-agent - volumeMounts: - - name: docker-socket - mountPath: /var/run/docker.sock - tty: true - securityContext: - privileged: true - - name: bullseye - image: apache/cassandra-bullseye-build:5687c7b6dcee1866f97a493aef77794f - command: ["tail"] - args: ["-f", "/dev/null"] - volumeMounts: - - name: cass-dir - mountPath: /home/build/cassandra - - name: m2-dir - mountPath: /home/build/.m2/repository - - name: dist-dir - mountPath: /dist - securityContext: - runAsUser: 0 - resources: - requests: - cpu: 100m - memory: 1Gi - volumes: - - name: cass-dir - hostPath: - path: /home/nishant/jenkins/apache/cassandra - - name: m2-dir - hostPath: - path: /home/nishant/.m2/repository/ - - name: dist-dir - hostPath: - path: /home/nishant/jenkins/apache/cassandra/build - - name: docker-socket - hostPath: - path: /var/run/docker.sock - ''' - } - } - steps { - container('bullseye') { - script { - sh 'echo "artifacts stage"' - sh 'bash /home/build/cassandra/.build/docker/_create_user.sh build 1000 1000' - sh 'su build' - sh 'export ANT_OPTS=-Dbuild.dir=/dist' - //sh 'sleep 3000' - sh 'bash /home/build/cassandra/.build/docker/_set_java.sh 11' - sh 'bash /home/build/cassandra/.build/build-jars.sh' - sh 'exit $?' - } - } - - } - } - } - //parallel { - //stage('artifacts') { - //steps { - //sh 'echo "starting artifacts stage"' - //buildJob(".build/docker/_docker_run.sh bullseye-build.docker build-jars.sh", "apache-cassandra-*.tar.gz,apache-cassandra-*.jar,apache-cassandra-*.pom") - //sh 'echo "finishing stage artifacts"' - - //} - //} - //} - } - stage('Test') { - parallel { - stage('lint') { - steps { - //buildJob(".build/docker/check-code.sh", "") - sh 'echo "stage lint"' - } - } - stage('debian') { - steps { - //buildJob(".build/docker/build-debian.sh", "cassandra_*,cassandra-tools_*") - sh 'echo "stage debian"' - } - } - stage('redhat') { - steps { - //buildJob(".build/docker/build-redhat.sh rpm", "*.rpm") - sh 'echo "stage redhat"' - } - } - stage('centos7') { - steps { - //buildJob(".build/docker/build-redhat.sh noboolean", "*.rpm") - sh 'echo "stage centos7"' - } - } - stage('stress') { - steps { - //testJob(".build/docker/run-tests.sh", "stress-test", 1) - sh 'echo "stage stress"' - } - } - stage('fqltool') { - steps { - //testJob(".build/docker/run-tests.sh", "fqltool-test", 1) - sh 'echo "stage fqltool"' - } - } - // XXX – commented out for infracloud/cassandra-5.0 branch - // stage('units') { - // steps { - // testJob(".build/docker/run-tests.sh", "test", 8) - // } - // } - // stage('long units') { - // steps { - // testJob(".build/docker/run-tests.sh", "long-test", 8) - // } - // } - // stage('burn') { - // steps { - // testJob(".build/docker/run-tests.sh", "test-burn", 8) - // } - // } - // stage('cdc') { - // steps { - // testJob(".build/docker/run-tests.sh", "test-cdc", 8) - // } - // } - // stage('compression') { - // steps { - // testJob(".build/docker/run-tests.sh", "test-compression", 8) - // } - // } - // stage('cqlsh') { - // steps { - // testJob(".build/docker/run-tests.sh", "cqlsh-test", 1) - // } - // } - // stage('jvm-dtest') { - // steps { - // testJob(".build/docker/run-tests.sh", "jvm-dtest", 8) - // } - // } - // stage('jvm-dtest-upgrade') { - // steps { - // testJob(".build/docker/run-tests.sh", "jvm-dtest-upgrade", 8) - // } - // } - // stage('dtest') { - // steps { - // testJob(".build/docker/run-tests.sh", "dtest", 64) - // } - // } - // stage('dtest-large') { - // steps { - // testJob(".build/docker/run-tests.sh", "dtest-large", 8) - // } - // } - // stage('dtest-novnode') { - // steps { - // testJob(".build/docker/run-tests.sh", "dtest-novnode", 64) - // } - // } - // stage('dtest-offheap') { - // steps { - // testJob(".build/docker/run-tests.sh", "dtest-offheap", 64) - // } - // } - // stage('dtest-large-novnode') { - // steps { - // testJob(".build/docker/run-tests.sh", "dtest-large-novnode", 8) - // } - // } - // stage('dtest-upgrade') { - // steps { - // testJob(".build/docker/run-tests.sh", "dtest-upgrade", 64) - // } - // } - } - } - stage('Summary') { - steps { - // FIXME is this needed if each job is submitting its own results to the overall pipeline ?? - //junit testResults: '**/build/test/**/TEST*.xml,**/cqlshlib.xml,**/nosetests.xml', testDataPublishers: [[$class: 'StabilityTestDataPublisher']] - - //sendNotifications() - - // FIXME how to collect and build one test report file ?? - //generateUnifiedTestReport() - - //collectConsoleLog() // FIXME should this be in a final instead ? (we always want the console log archived) - //copyToNightlies('console.log.xz,TESTS-TestSuites.xml.xz') - sh 'echo "stage summary"' - } - } - } -} - -/////////////////////////// -//// scripting support //// -/////////////////////////// - - -/** - * Return the default JDK defined by build.xml - **/ -def javaVersionDefault() { - sh (returnStdout: true, script: 'grep \'property\\s*name=\"java.default\"\' build.xml | sed -ne \'s/.*value=\"\\([^\"]*\\)\".*/\\1/p\'').trim() -} - -/** - * Return the supported JDKs defined by build.xml - **/ -def javaVersionsSupported() { - sh (returnStdout: true, script: 'grep \'property\\s*name=\"java.supported\"\' build.xml | sed -ne \'s/.*value=\"\\([^\"]*\\)\".*/\\1/p\'').trim() -} - -/** - * Is this a post-commit build (or a pre-commit build) - **/ -def isPostCommit() { - // any build of a branch found on github.com/apache/cassandra is considered a post-commit (post-merge) CI run - return "${GIT_URL}".contains("apache/cassandra") -} - -/** - * Are we running on ci-cassandra.apache.org ? - **/ -def isCanonical() { - return "${JENKINS_URL}".contains("ci-cassandra.apache.org") -} - -/** - * Executes `${build_script} ${jdk}` for each arch, and jdk. - * - * Stashes the jarfiles for `package-artifacts.sh` - * Copies build artifacts and logfiles to nightlies - * Cleans the agent (docker prune) afterwards - * Stops the pipeline on any failure - **/ -def buildJob(build_script, toCopy) { - //def archs = ['cassandra', 'cassandra-arm64'] // uncomment when ready for arm64 testing - def archs = ['cassandra'] - def jdks = "${javaVersionsSupported}".split(/,/, -1) - def builds_per_arch = [:] - for (a in archs) { - def arch = a - builds_per_arch[arch] = { - def builds_per_jdk = [:] - for (j in jdks) { - def jdk = j - builds_per_jdk[jdk] = { _buildAxis(build_script, toCopy, arch, jdk) } - } - parallel(builds_per_jdk) - } - } - parallel(builds_per_arch) -} - -/** - * Executes `${build_script} ${jdk}` for stated arch, and jdk. - **/ -def _buildAxis(build_script, toCopy, arch, jdk) { - node(arch) { - branchName: "${build_script} ${jdk} ${NODE_NAME}" - //cleanWs() - checkout scm - sh "echo scm success" - tool type: 'jdk', name: "jdk_${jdk}_latest" - sh "echo tool success" - def statusCode = 0, attempt = 1 - retry(2) { - if (attempt > 1) { sleep(60 * attempt) } - def build_script_safe_name = "${build_script}".replace(".build/docker/", "").replace(".sh", "_").replace(" ", "_") - def logfile = "${JOB_NAME}_${BUILD_NUMBER}_${build_script_safe_name}_jdk${jdk}_${arch}_attempt_${attempt}.log" - sh "mkdir -p build" - def build_dir = sh( returnStdout: true, script:"mktemp -d ${WORKSPACE}/build/build_docker_run.XXXXXXXXXX" ) - try { - //if (".build/docker/build-artifacts.sh" != build_script) { - // build-artifacts.sh must be run in an earlier completed stage for the stash to exist - //dir(build_dir) { - //unstash name: "${arch}_${jdk}" - //} - //} - echo "Executing `build_dir=${build_dir} ${build_script} ${jdk} 2>&1 | tee ${logfile}` on ${NODE_NAME}" - statusCode = sh returnStatus:true, script:"build_dir=\"${build_dir}\" ${build_script} ${jdk} 2>&1 | tee ${logfile}" - //if (".build/docker/build-artifacts.sh" == build_script || build_script.contains(".build/docker/_docker_run.sh")) { - //dir("${build_dir}") { - // only stash the project built files. all dependency libraries are restored from the local maven repo using `ant resolver-dist-lib` - //stash name: "${arch}_${jdk}", includes: "*.jar,classes/**,test/classes/**,tools/**", excludes: "dist/**,**/lib/**/*.jar," - //} - //} - } finally { - attempt = attempt + 1 - sh "ls" - sh "xz -f *_attempt_*.log" - copyToNightlies("*_attempt_*.log.xz", "${build_script_safe_name}/jdk${jdk}/${arch}/") - if (0 == statusCode) { - dir("${build_dir}") { - copyToNightlies("${toCopy}", "${build_script_safe_name}/jdk${jdk}/${arch}/") - } - } - cleanAgent(build_script) - if (0 != statusCode) { - currentBuild.result = 'FAILURE' - error("FAILED '${build_script} ${jdk}' on ${NODE_NAME}") - } else { - echo "Complete '${build_script} ${jdk}' on ${NODE_NAME}" - } - } - } - } -} - -/** - * Saves JUnit results, fails if no reports are found - * Copies (single-file unified) junit results and logfiles to nightlies - * Cleans the agent (docker prune) afterwards - * Stops the pipeline on any failure - **/ -def testJob(test_script, test_type, splits=1, toCopy='') { - //def archs = ['cassandra', 'cassandra-arm64'] // uncomment when ready for arm64 testing - def archs = ['cassandra'] - //def jdks = "${javaVersionsSupported}".split(/,/, -1) // TODO uncomment – this is the real mcoy - def jdks = ['11'] - def pythons = ['3.7'] - def cythons = ['no'] - def tests_per_arch = [:] - - // XXX – the following matrix over arrays should be better done with multi-arrays and recursion - - for (a in archs) { - def arch = a - tests_per_arch[arch] = { - def tests_per_jdk = [:] - for (j in jdks) { - def jdk = j - tests_per_jdk[jdk] = { - def tests_per_python = [:] - for (p in pythons) { - def python = p - tests_per_python[python] = { - def tests_per_cython = [:] - for (c in cythons) { - def cython = c - tests_per_cython[cython] = { - def tests_per_split = [:] - for (s in 1..splits) { - def split = s - tests_per_split[split] = { - _testAxis(test_script, test_type, toCopy, arch, jdk, python, cython, "${split}/${splits}") - } - } - parallel(tests_per_split) - } - } - parallel(tests_per_cython) - } - } - parallel(tests_per_python) - } - } - parallel(tests_per_jdk) - } - } - parallel(tests_per_arch) -} - -/** - * Executes `.build/test-docker.sh ${testDockerImage} ${test_type} ${split}` for the stated arch, jdk, python, cython, and split. - **/ -def _testAxis(test_script, test_type, toCopy, arch, jdk, python, cython, split) { - echo "Spawning `${test_script} ${test_type} ${split} ${jdk}` with arch=${arch} jdk=${jdk} python${python} cython=${cython}" - node(arch) { - branchName: "${test_script} ${test_type} ${split} ${jdk} ${NODE_NAME}" - echo "Starting `${test_script} ${test_type} ${split} ${jdk}` with arch=${arch} jdk=${jdk} python${python} cython=${cython} on ${NODE_NAME}" - cleanWs() - checkout scm - tool type: 'jdk', name: "jdk_${jdk}_latest" - // FIXME python – need a tool type (like jdk above) - // FIXME cython – need a tool type (like jdk above) - def statusCode = 0, attempt = 1 - retry(2) { - if (attempt > 1) { sleep(60 * attempt) } - def logfile = "${JOB_NAME}_${BUILD_NUMBER}_${test_type}_jdk${jdk}_python_${python}_${cython}_${arch}_attempt_${attempt}.log" - try { - dir("build") { - unstash name: "${arch}_${jdk}" - } - echo "Executing `${test_script} ${test_type} ${split} ${jdk} 2>&1 | tee ${logfile}` on ${NODE_NAME} with jdk=${jdk} python=${python} cython=${cython}" - statusCode = sh returnStatus:true, script:"${test_script} ${test_type} ${split} ${jdk} 2>&1 | tee ${logfile}" - } finally { - attempt = attempt + 1 - if (0 == statusCode) { - junit testResults: '**/build/test/**/TEST*.xml,**/cqlshlib.xml,**/nosetests.xml', testDataPublishers: [[$class: 'StabilityTestDataPublisher']] - } else { - toCopy = "" - } - sh "xz -f *_attempt_*.log" - copyToNightlies("*_attempt_*.log.xz,console.log.xz,TESTS-TestSuites.xml.xz,build/test/logs/**,${toCopy}", "${test_type}/${arch}/jdk${jdk}/python${python}/cython_${cython}/" + "split_${split}".replace("/", "_")) - cleanAgent(test_script) - if (0 != statusCode) { - currentBuild.result = 'FAILURE' - error("FAILED `${test_script} ${test_type} ${split} ${jdk}` with arch=${arch} jdk=${jdk} python=${python} cython=${cython} on ${NODE_NAME}") - } else { - echo "Complete `${test_script} ${test_type} ${split} ${jdk}` with arch=${arch} jdk=${jdk} python=${python} cython=${cython} on ${NODE_NAME}" - } - } - } - if (build_result.result != 'SUCCESS') unstable("${build_name} failures") - if (build_result.result == 'ABORTED' && currentBuild.result != 'FAILURE') currentBuild.result='ABORTED' - if (build_result.result == 'FAILURE') currentBuild.result='FAILURE' - } -} - -def copyToNightlies(sourceFiles, remoteDirectory='') { - if (isCanonical()) { - def remotePath = remoteDirectory.startsWith("cassandra/") ? "${remoteDirectory}" : "cassandra/${JOB_NAME}/${BUILD_NUMBER}/${remoteDirectory}" - def attempt = 1 - retry(9) { - if (attempt > 1) { sleep(60 * attempt) } - sshPublisher( - continueOnError: true, failOnError: false, - publishers: [ - sshPublisherDesc( - configName: "Nightlies", - transfers: [ sshTransfer( sourceFiles: sourceFiles, remoteDirectory: remotePath) ] - ) - ]) - } - echo "archived to https://nightlies.apache.org/${remotePath}" - } -} - -def cleanAgent(job_name) { - if (isCanonical()) { - def maxJobHours = 12 - echo "Cleaning project, processes, docker for '${job_name}' on ${NODE_NAME}…" ; - sh """ - git clean -qxdff -e build/test/jmh-result.json || true; - if pgrep -xa docker || pgrep -af "build/docker" || pgrep -af "cassandra-builds/build-scripts" ; then docker system prune --all --force --filter "until=${maxJobHours}h" || true ; else docker system prune --force --volumes || true ; fi; - """ - } -} - -// CASSANDRA-18130 -def saveAgentReport(build_name) { - if (isCanonical()) { - // - // echo "Updating disk usage report…"; - // sh """ - // ( echo "----" ; - // echo \$(date) ; - // echo "${JOB_NAME} ${BUILD_NUMBER} ${build_name}" ; - // du -xm / 2>/dev/null | sort -rn | head -n 30 ; - // df -h ) | tee -a \$(date +"%Y%m%d%H%M")-disk-usage-stats.txt - // """ - // copyToNightlies("*-disk-usage-stats.txt", "cassandra/agents/${NODE_NAME}/disk-usage/") - // sh 'rm *-disk-usage-stats.txt' - } -} - -///////////////////////////////////////// -////// scripting support for summary //// -///////////////////////////////////////// - -// FIXME – we need first to collect all the test result files from each job, putting them under buid/test/output/ -def generateUnifiedTestReport() { - sh "ant generate-unified-test-report" - sh "xz -f build/TESTS-TestSuites.xml" -} - -def collectConsoleLog() { - sh "wget --retry-connrefused --waitretry=1 \"\${BUILD_URL}/timestamps/?time=HH:mm:ss&timeZone=UTC&appendLog\" -qO console.log || echo wget failed" - sh "xz -f console.log" -} - -def copyTestResults(build_name, build_number) { - try { - step([$class: 'CopyArtifact', - projectName: "${build_name}", - optional: true, - fingerprintArtifacts: true, - selector: specific("${build_number}"), - target: build_name]); - } catch (Exception ex) { - echo 'Exception occurred getting test results for ' + build_name + '#' + build_number + ex.toString() - } -} - -def sendNotifications() { - if (isPostCommit() && isCanonical()) { - // the following is expected only to work on ci-cassandra.apache.org - try { - script { - changes = formatChangeLogChanges(currentBuild.changeSets) - echo "changes: ${changes}" - } - slackSend channel: '#cassandra-builds', message: ":apache: <${BUILD_URL}|${currentBuild.fullDisplayName}> completed: ${currentBuild.result}. \n${changes}" - emailext to: 'builds@cassandra.apache.org', subject: "Build complete: ${currentBuild.fullDisplayName} [${currentBuild.result}] ${GIT_COMMIT}", presendScript: 'msg.removeHeader("In-Reply-To"); msg.removeHeader("References")', body: emailContent() - } catch (Exception ex) { - echo 'failed to send notifications ' + ex.toString() - } - } -} - -def formatChangeLogChanges(changeLogSets) { - def result = '' - for (int i = 0; i < changeLogSets.size(); i++) { - def entries = changeLogSets[i].items - for (int j = 0; j < entries.length; j++) { - def entry = entries[j] - result = result + "${entry.commitId} by ${entry.author} on ${new Date(entry.timestamp)}: ${entry.msg}\n" - } - } - return result -} - -def emailContent() { - return ''' - ------------------------------------------------------------------------------- - Build ${ENV,var="JOB_NAME"} #${BUILD_NUMBER} ${BUILD_STATUS} - URL: ${BUILD_URL} - ------------------------------------------------------------------------------- - Changes: - ${CHANGES} - ------------------------------------------------------------------------------- - Failed Tests: - ${FAILED_TESTS,maxTests=500,showMessage=false,showStack=false} - ------------------------------------------------------------------------------- - For complete test report and logs see https://nightlies.apache.org/cassandra/${JOB_NAME}/${BUILD_NUMBER}/ - ''' -} From 3490fdd8ebd094563699d420ad204c8cabdc7433 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Wed, 18 Oct 2023 18:03:44 +0530 Subject: [PATCH 418/426] move agent-build.docker file --- .build/docker/agent-build.docker | 44 -------------------------------- 1 file changed, 44 deletions(-) delete mode 100644 .build/docker/agent-build.docker diff --git a/.build/docker/agent-build.docker b/.build/docker/agent-build.docker deleted file mode 100644 index 98655d96deb4..000000000000 --- a/.build/docker/agent-build.docker +++ /dev/null @@ -1,44 +0,0 @@ -# Use Alpine Linux as the base image -FROM jenkins/inbound-agent:3148.v532a_7e715ee3-4 - -USER root -RUN apt-get update -RUN apt-get install xz-utils -y -RUN apt-get install bc -y -RUN apt-get update -RUN apt-get install coreutils -y -RUN apt-get update && apt-get install -y sudo - - - -RUN apt-get update && \ - apt-get install -y openjdk-11-jdk openjdk-17-jdk && \ - update-alternatives --set java /usr/lib/jvm/java-11-openjdk-amd64/bin/java && \ - update-alternatives --set javac /usr/lib/jvm/java-11-openjdk-amd64/bin/javac && \ - update-alternatives --install /usr/local/bin/jdk_11 java /usr/lib/jvm/java-11-openjdk-amd64/bin/java 1 && \ - update-alternatives --install /usr/local/bin/jdk_17 java /usr/lib/jvm/java-17-openjdk-amd64/bin/java 1 - -# Install Docker -RUN apt-get install -y gnupg -# Install Docker for Debian Bullseye -RUN apt-get update && \ - apt-get install -y apt-transport-https ca-certificates curl gnupg lsb-release && \ - curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg && \ - echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian $(lsb_release -cs) stable" > /etc/apt/sources.list.d/docker.list && \ - apt-get update && \ - apt-get install -y docker-ce docker-ce-cli containerd.io - - -RUN echo "jenkins ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/jenkins -#VOLUME /var/run/docker.sock -RUN usermod -aG docker jenkins -#RUN chown -R 1000:1000 /var/run/docker.sock - -USER jenkins - - - - - - - From 80a2e4358234feafd4380b8bf95d03b236fcdb5f Mon Sep 17 00:00:00 2001 From: Nbarola Date: Wed, 18 Oct 2023 18:04:16 +0530 Subject: [PATCH 419/426] move jenkins-deployment.yaml file --- .build/jenkins-deployment.yaml | 112 --------------------------------- 1 file changed, 112 deletions(-) delete mode 100644 .build/jenkins-deployment.yaml diff --git a/.build/jenkins-deployment.yaml b/.build/jenkins-deployment.yaml deleted file mode 100644 index d1bde85bc936..000000000000 --- a/.build/jenkins-deployment.yaml +++ /dev/null @@ -1,112 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: jenkins-operator-user-configuration -data: - 1-system-message.yaml: | - tool: - jdk: - installations: - - name: jdk_11_latest - home: "/usr/bin/jdk_11/bin/java" - - name: jdk_17_latest - home: "/usr/bin/jdk_17/bin/java" ---- -apiVersion: jenkins.io/v1alpha2 -kind: Jenkins -metadata: - name: jenkins -spec: - configurationAsCode: - configurations: - - name: jenkins-operator-user-configuration - secret: - name: "" - groovyScripts: - configurations: [] - secret: - name: "" - service: - type: ClusterIP - port: 8080 - jenkinsAPISettings: - authorizationStrategy: createUser - master: - plugins: - - name: ws-cleanup - version: "0.45" - - name: javadoc - version: "243.vb_b_503b_b_45537" - - name: description-setter - version: "1.10" - - name: throttle-concurrents - version: "2.14" - - name: test-stability - version: "2.3" - - name: postbuildscript - version: "3.2.0-550.v88192b_d3e922" - - name: github - version: "1.37.3" - - name: timestamper - version: "1.26" - - name: openJDK-native-plugin - version: "1.7" - basePlugins: - - name: kubernetes - version: "4029.v5712230ccb_f8" - - name: workflow-job - version: "1342.v046651d5b_dfe" - - name: workflow-aggregator - version: "596.v8c21c963d92d" - - name: git - version: "5.2.0" - - name: job-dsl - version: "1.84" - - name: configuration-as-code - version: "1700.v6f448841296e" - - name: kubernetes-credentials-provider - version: "1.225.v14f9e6b_28f53" - disableCSRFProtection: false - containers: - - name: jenkins-master - image: jenkins/jenkins:2.414.1-lts-jdk11 - # env: - # - name: JAVA_OPTS - # value: "-Dhudson.cli.CLI.HTTPS=true -Djenkins.websocket=false" - imagePullPolicy: Always - livenessProbe: - failureThreshold: 12 - httpGet: - path: /login - port: http - scheme: HTTP - initialDelaySeconds: 100 - periodSeconds: 10 - successThreshold: 1 - timeoutSeconds: 5 - readinessProbe: - failureThreshold: 10 - httpGet: - path: /login - port: http - scheme: HTTP - initialDelaySeconds: 80 - periodSeconds: 10 - successThreshold: 1 - timeoutSeconds: 1 - resources: - limits: - cpu: 1500m - memory: 3Gi - requests: - cpu: 500m - memory: 500Mi - securityContext: - fsGroup: 1000 - runAsUser: 1000 - seedJobs: - - id: jenkins-operator - targets: ".jenkins/job/DslJob.jenkins" - description: "Casandra Repo" - repositoryBranch: "infracloud/cassandra-5.0" - repositoryUrl: "https://github.com/infracloudio/cassandra.git" From fa3970627ccaa73672e83c12ff742b3fc21f161e Mon Sep 17 00:00:00 2001 From: Nbarola Date: Wed, 18 Oct 2023 18:17:02 +0530 Subject: [PATCH 420/426] update tear-down to remove the jenkins operator along with jenkins instance --- .build/run-ci.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.build/run-ci.sh b/.build/run-ci.sh index c9969efea654..fa8ed88af86a 100755 --- a/.build/run-ci.sh +++ b/.build/run-ci.sh @@ -151,7 +151,7 @@ fi sed -e "/targets:/s|:.*$|: \"$TARGETS\"|" \ -e "/repositoryBranch:/s|:.*$|: \"$REPO_BRANCH\"|" \ - -e "/repositoryUrl:/s|:.*$|: \"$REPO_URL\"|" ${CASSANDRA_DIR}/.build/jenkins-deployment.yaml > ${CASSANDRA_DIR}/.build/jenkins-deployment.yaml + -e "/repositoryUrl:/s|:.*$|: \"$REPO_URL\"|" ${CASSANDRA_DIR}/.jenkins/k8s/jenkins-deployment.yaml > ${CASSANDRA_DIR}/.jenkins/k8s/jenkins-deployment.yaml # Add Helm Jenkins Operator repository echo "Adding Helm repository for Jenkins Operator..." @@ -168,7 +168,7 @@ done echo "Jenkins Operator installed successfully!" -kubectl apply --namespace ${KUBE_NS} -f ${CASSANDRA_DIR}/.build/jenkins-deployment.yaml +kubectl apply --namespace ${KUBE_NS} -f ${CASSANDRA_DIR}/.jenkins/k8s/jenkins-deployment.yaml while ! ( kubectl --namespace ${KUBE_NS} get pods | grep seed-job-agent | grep " 1/1 " | grep -q " Running" ) ; do echo "Jenkins installing. Waiting..." @@ -248,6 +248,7 @@ ps -elf | grep port-forward | head -n1 | awk -F " " '{ print $4 }' | xargs kill if [ $TEAR_DOWN ]; then - kubectl delete --namespace ${KUBE_NS} -f ${CASSANDRA_DIR}/.build/jenkins-deployment.yaml + kubectl delete --namespace ${KUBE_NS} -f ${CASSANDRA_DIR}/.jenkins/k8s/jenkins-deployment.yaml + helm uninstall --namespace ${KUBE_NS} jenkins-operator fi From 653e3b12f7d3d87f4a8ed0bd304adff75444619d Mon Sep 17 00:00:00 2001 From: Nbarola Date: Wed, 18 Oct 2023 18:19:48 +0530 Subject: [PATCH 421/426] add k8s sub dir to .jenkins dir --- .jenkins/k8s/agent-build.docker | 44 +++++++++++ .jenkins/k8s/jenkins-deployment.yaml | 112 +++++++++++++++++++++++++++ 2 files changed, 156 insertions(+) create mode 100644 .jenkins/k8s/agent-build.docker create mode 100644 .jenkins/k8s/jenkins-deployment.yaml diff --git a/.jenkins/k8s/agent-build.docker b/.jenkins/k8s/agent-build.docker new file mode 100644 index 000000000000..98655d96deb4 --- /dev/null +++ b/.jenkins/k8s/agent-build.docker @@ -0,0 +1,44 @@ +# Use Alpine Linux as the base image +FROM jenkins/inbound-agent:3148.v532a_7e715ee3-4 + +USER root +RUN apt-get update +RUN apt-get install xz-utils -y +RUN apt-get install bc -y +RUN apt-get update +RUN apt-get install coreutils -y +RUN apt-get update && apt-get install -y sudo + + + +RUN apt-get update && \ + apt-get install -y openjdk-11-jdk openjdk-17-jdk && \ + update-alternatives --set java /usr/lib/jvm/java-11-openjdk-amd64/bin/java && \ + update-alternatives --set javac /usr/lib/jvm/java-11-openjdk-amd64/bin/javac && \ + update-alternatives --install /usr/local/bin/jdk_11 java /usr/lib/jvm/java-11-openjdk-amd64/bin/java 1 && \ + update-alternatives --install /usr/local/bin/jdk_17 java /usr/lib/jvm/java-17-openjdk-amd64/bin/java 1 + +# Install Docker +RUN apt-get install -y gnupg +# Install Docker for Debian Bullseye +RUN apt-get update && \ + apt-get install -y apt-transport-https ca-certificates curl gnupg lsb-release && \ + curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg && \ + echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian $(lsb_release -cs) stable" > /etc/apt/sources.list.d/docker.list && \ + apt-get update && \ + apt-get install -y docker-ce docker-ce-cli containerd.io + + +RUN echo "jenkins ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/jenkins +#VOLUME /var/run/docker.sock +RUN usermod -aG docker jenkins +#RUN chown -R 1000:1000 /var/run/docker.sock + +USER jenkins + + + + + + + diff --git a/.jenkins/k8s/jenkins-deployment.yaml b/.jenkins/k8s/jenkins-deployment.yaml new file mode 100644 index 000000000000..d1bde85bc936 --- /dev/null +++ b/.jenkins/k8s/jenkins-deployment.yaml @@ -0,0 +1,112 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: jenkins-operator-user-configuration +data: + 1-system-message.yaml: | + tool: + jdk: + installations: + - name: jdk_11_latest + home: "/usr/bin/jdk_11/bin/java" + - name: jdk_17_latest + home: "/usr/bin/jdk_17/bin/java" +--- +apiVersion: jenkins.io/v1alpha2 +kind: Jenkins +metadata: + name: jenkins +spec: + configurationAsCode: + configurations: + - name: jenkins-operator-user-configuration + secret: + name: "" + groovyScripts: + configurations: [] + secret: + name: "" + service: + type: ClusterIP + port: 8080 + jenkinsAPISettings: + authorizationStrategy: createUser + master: + plugins: + - name: ws-cleanup + version: "0.45" + - name: javadoc + version: "243.vb_b_503b_b_45537" + - name: description-setter + version: "1.10" + - name: throttle-concurrents + version: "2.14" + - name: test-stability + version: "2.3" + - name: postbuildscript + version: "3.2.0-550.v88192b_d3e922" + - name: github + version: "1.37.3" + - name: timestamper + version: "1.26" + - name: openJDK-native-plugin + version: "1.7" + basePlugins: + - name: kubernetes + version: "4029.v5712230ccb_f8" + - name: workflow-job + version: "1342.v046651d5b_dfe" + - name: workflow-aggregator + version: "596.v8c21c963d92d" + - name: git + version: "5.2.0" + - name: job-dsl + version: "1.84" + - name: configuration-as-code + version: "1700.v6f448841296e" + - name: kubernetes-credentials-provider + version: "1.225.v14f9e6b_28f53" + disableCSRFProtection: false + containers: + - name: jenkins-master + image: jenkins/jenkins:2.414.1-lts-jdk11 + # env: + # - name: JAVA_OPTS + # value: "-Dhudson.cli.CLI.HTTPS=true -Djenkins.websocket=false" + imagePullPolicy: Always + livenessProbe: + failureThreshold: 12 + httpGet: + path: /login + port: http + scheme: HTTP + initialDelaySeconds: 100 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 + readinessProbe: + failureThreshold: 10 + httpGet: + path: /login + port: http + scheme: HTTP + initialDelaySeconds: 80 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 1 + resources: + limits: + cpu: 1500m + memory: 3Gi + requests: + cpu: 500m + memory: 500Mi + securityContext: + fsGroup: 1000 + runAsUser: 1000 + seedJobs: + - id: jenkins-operator + targets: ".jenkins/job/DslJob.jenkins" + description: "Casandra Repo" + repositoryBranch: "infracloud/cassandra-5.0" + repositoryUrl: "https://github.com/infracloudio/cassandra.git" From 6d47a1e743a2aa3c34ae868bc2dfb4d82d69d725 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Wed, 18 Oct 2023 18:21:31 +0530 Subject: [PATCH 422/426] update comment in --help case in run-ci.sh --- .build/run-ci.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.build/run-ci.sh b/.build/run-ci.sh index fa8ed88af86a..b6a6d05c2043 100755 --- a/.build/run-ci.sh +++ b/.build/run-ci.sh @@ -74,7 +74,7 @@ while [[ $# -gt 0 ]]; do echo " --repo-url Specify the repository URL." echo " --repo-branch Specify the repository branch." echo " --targets Specify the build targets." - echo " --tear-down Tear down Jenkins Instance, true or false." + echo " --tear-down Tear down Jenkins Instance and Jenkins Operator, true or false." echo " --help Show this help message." exit 0 ;; From c0572a2f5debf292d8f46c7ddbf54b593e482eba Mon Sep 17 00:00:00 2001 From: Nbarola Date: Fri, 20 Oct 2023 12:04:44 +0530 Subject: [PATCH 423/426] parameterise job-name in run-ci.sh --- .build/run-ci.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.build/run-ci.sh b/.build/run-ci.sh index b6a6d05c2043..3c810ce8885c 100755 --- a/.build/run-ci.sh +++ b/.build/run-ci.sh @@ -153,6 +153,9 @@ sed -e "/targets:/s|:.*$|: \"$TARGETS\"|" \ -e "/repositoryBranch:/s|:.*$|: \"$REPO_BRANCH\"|" \ -e "/repositoryUrl:/s|:.*$|: \"$REPO_URL\"|" ${CASSANDRA_DIR}/.jenkins/k8s/jenkins-deployment.yaml > ${CASSANDRA_DIR}/.jenkins/k8s/jenkins-deployment.yaml +# get the job name from the DSL Job file +JOB_NAME=$(grep -o "pipelineJob('\([^']*\)')" .jenkins/job/DslJob.jenkins | sed "s/pipelineJob('//;s/')//") + # Add Helm Jenkins Operator repository echo "Adding Helm repository for Jenkins Operator..." helm repo add --namespace ${KUBE_NS} jenkins https://raw.githubusercontent.com/jenkinsci/kubernetes-operator/master/chart @@ -188,7 +191,7 @@ echo "port-forwarding running in background" TOKEN=$(kubectl get secret jenkins-operator-credentials-jenkins -o jsonpath="{.data.token}" | base64 --decode) # Trigger a new build and capture the response headers -response_headers=$(curl -i -X POST http://localhost:8080/job/k8s-e2e/buildWithParameters -u jenkins-operator:$TOKEN --data-urlencode "TEST_STAGES_TO_RUN=$INCLUDE_TEST_STAGE" 2>&1) +response_headers=$(curl -i -X POST http://localhost:8080/job/$JOB_NAME/buildWithParameters -u jenkins-operator:$TOKEN --data-urlencode "TEST_STAGES_TO_RUN=$INCLUDE_TEST_STAGE" 2>&1) queue_url=$(echo "$response_headers" | grep -i "Location" | awk -F ": " '{print $2}' | tr -d '\r') @@ -209,7 +212,7 @@ while [ -z "$build_number" ] || [ "$build_number" == "null" ]; do done echo "build_number $build_number" -BUILD_DIR=/var/lib/jenkins/jobs/k8s-e2e/builds +BUILD_DIR=/var/lib/jenkins/jobs/$JOB_NAME/builds POD_NAME=jenkins-jenkins LATEST_BUILD=$(kubectl exec -it $POD_NAME -- /bin/bash -c "ls -t $BUILD_DIR | head -n 1" | tr -d '\r') @@ -251,4 +254,3 @@ if [ $TEAR_DOWN ]; then kubectl delete --namespace ${KUBE_NS} -f ${CASSANDRA_DIR}/.jenkins/k8s/jenkins-deployment.yaml helm uninstall --namespace ${KUBE_NS} jenkins-operator fi - From 7613a52287cdd525c70bf87a35bb1956f08dc327 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Fri, 20 Oct 2023 12:29:01 +0530 Subject: [PATCH 424/426] update echo statements in run-ci.sh --- .build/run-ci.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.build/run-ci.sh b/.build/run-ci.sh index 3c810ce8885c..2a97c705a874 100755 --- a/.build/run-ci.sh +++ b/.build/run-ci.sh @@ -165,7 +165,7 @@ echo "Installing Jenkins Operator..." helm upgrade --namespace ${KUBE_NS} --install jenkins-operator jenkins/jenkins-operator --set jenkins.enabled=false --set jenkins.backup.enabled=false --version 0.8.0-beta.2 while ! ( kubectl --namespace ${KUBE_NS} get pods | grep jenkins-operator | grep " 1/1 " | grep -q " Running" ) ; do - echo "Jenkins installing. Waiting..." + echo "Jenkins Operator installing. Waiting..." sleep 5 # Adjust the polling interval as needed done @@ -173,7 +173,7 @@ echo "Jenkins Operator installed successfully!" kubectl apply --namespace ${KUBE_NS} -f ${CASSANDRA_DIR}/.jenkins/k8s/jenkins-deployment.yaml -while ! ( kubectl --namespace ${KUBE_NS} get pods | grep seed-job-agent | grep " 1/1 " | grep -q " Running" ) ; do +while ! ( kubectl --namespace ${KUBE_NS} get pods | grep jenkins-jenkins | grep " 1/1 " | grep -q " Running" ) ; do echo "Jenkins installing. Waiting..." sleep 5 # Adjust the polling interval as needed done From 2b89e51d84d834d114c21aa2830a051b9345586a Mon Sep 17 00:00:00 2001 From: Nbarola Date: Fri, 20 Oct 2023 15:40:02 +0530 Subject: [PATCH 425/426] update sed command in run-ci.sh --- .build/run-ci.sh | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.build/run-ci.sh b/.build/run-ci.sh index 2a97c705a874..440d6ce2fe47 100755 --- a/.build/run-ci.sh +++ b/.build/run-ci.sh @@ -151,18 +151,21 @@ fi sed -e "/targets:/s|:.*$|: \"$TARGETS\"|" \ -e "/repositoryBranch:/s|:.*$|: \"$REPO_BRANCH\"|" \ - -e "/repositoryUrl:/s|:.*$|: \"$REPO_URL\"|" ${CASSANDRA_DIR}/.jenkins/k8s/jenkins-deployment.yaml > ${CASSANDRA_DIR}/.jenkins/k8s/jenkins-deployment.yaml + -e "/repositoryUrl:/s|:.*$|: \"$REPO_URL\"|" ${CASSANDRA_DIR}/.jenkins/k8s/jenkins-deployment.yaml > ${CASSANDRA_DIR}/build/jenkins-deployment.yaml # get the job name from the DSL Job file JOB_NAME=$(grep -o "pipelineJob('\([^']*\)')" .jenkins/job/DslJob.jenkins | sed "s/pipelineJob('//;s/')//") + +echo "JOB_NAME = $JOB_NAME" + # Add Helm Jenkins Operator repository echo "Adding Helm repository for Jenkins Operator..." helm repo add --namespace ${KUBE_NS} jenkins https://raw.githubusercontent.com/jenkinsci/kubernetes-operator/master/chart # Install Jenkins Operator using Helm echo "Installing Jenkins Operator..." -helm upgrade --namespace ${KUBE_NS} --install jenkins-operator jenkins/jenkins-operator --set jenkins.enabled=false --set jenkins.backup.enabled=false --version 0.8.0-beta.2 +#helm upgrade --namespace ${KUBE_NS} --install jenkins-operator jenkins/jenkins-operator --set jenkins.enabled=false --set jenkins.backup.enabled=false --version 0.8.0-beta.2 while ! ( kubectl --namespace ${KUBE_NS} get pods | grep jenkins-operator | grep " 1/1 " | grep -q " Running" ) ; do echo "Jenkins Operator installing. Waiting..." @@ -171,7 +174,7 @@ done echo "Jenkins Operator installed successfully!" -kubectl apply --namespace ${KUBE_NS} -f ${CASSANDRA_DIR}/.jenkins/k8s/jenkins-deployment.yaml +kubectl apply --namespace ${KUBE_NS} -f ${CASSANDRA_DIR}/build/jenkins-deployment.yaml while ! ( kubectl --namespace ${KUBE_NS} get pods | grep jenkins-jenkins | grep " 1/1 " | grep -q " Running" ) ; do echo "Jenkins installing. Waiting..." @@ -191,9 +194,9 @@ echo "port-forwarding running in background" TOKEN=$(kubectl get secret jenkins-operator-credentials-jenkins -o jsonpath="{.data.token}" | base64 --decode) # Trigger a new build and capture the response headers -response_headers=$(curl -i -X POST http://localhost:8080/job/$JOB_NAME/buildWithParameters -u jenkins-operator:$TOKEN --data-urlencode "TEST_STAGES_TO_RUN=$INCLUDE_TEST_STAGE" 2>&1) - +response_headers=$(curl -i -X POST http://localhost:8080/job/k8s-e2e/buildWithParameters -u jenkins-operator:$TOKEN --data-urlencode "TEST_STAGES_TO_RUN=$INCLUDE_TEST_STAGE" 2>&1) +echo "response_headers $response_headers" queue_url=$(echo "$response_headers" | grep -i "Location" | awk -F ": " '{print $2}' | tr -d '\r') queue_item_number=$(basename "$queue_url") @@ -251,6 +254,6 @@ ps -elf | grep port-forward | head -n1 | awk -F " " '{ print $4 }' | xargs kill if [ $TEAR_DOWN ]; then - kubectl delete --namespace ${KUBE_NS} -f ${CASSANDRA_DIR}/.jenkins/k8s/jenkins-deployment.yaml + kubectl delete --namespace ${KUBE_NS} -f ${CASSANDRA_DIR}/build/jenkins-deployment.yaml helm uninstall --namespace ${KUBE_NS} jenkins-operator fi From 3710ca5ea6e351776f6d9a25e7282b63b2b93926 Mon Sep 17 00:00:00 2001 From: Nbarola Date: Fri, 20 Oct 2023 17:02:06 +0530 Subject: [PATCH 426/426] add sleep after port-forward in run-ci.sh --- .build/run-ci.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.build/run-ci.sh b/.build/run-ci.sh index 440d6ce2fe47..8d7ab9460807 100755 --- a/.build/run-ci.sh +++ b/.build/run-ci.sh @@ -165,7 +165,7 @@ helm repo add --namespace ${KUBE_NS} jenkins https://raw.githubusercontent.com/j # Install Jenkins Operator using Helm echo "Installing Jenkins Operator..." -#helm upgrade --namespace ${KUBE_NS} --install jenkins-operator jenkins/jenkins-operator --set jenkins.enabled=false --set jenkins.backup.enabled=false --version 0.8.0-beta.2 +helm upgrade --namespace ${KUBE_NS} --install jenkins-operator jenkins/jenkins-operator --set jenkins.enabled=false --set jenkins.backup.enabled=false --version 0.8.0-beta.2 while ! ( kubectl --namespace ${KUBE_NS} get pods | grep jenkins-operator | grep " 1/1 " | grep -q " Running" ) ; do echo "Jenkins Operator installing. Waiting..." @@ -186,7 +186,8 @@ kubectl rollout status deployment/jenkins-operator -n ${KUBE_NS} # Port-forward the Jenkins service to access it locally jenkins_pod=$(kubectl get pods -n ${KUBE_NS} -l jenkins-cr=jenkins -o jsonpath='{.items[0].metadata.name}') -nohup kubectl port-forward svc/jenkins-operator-http-jenkins 8080:8080 & +nohup kubectl port-forward svc/jenkins-operator-http-jenkins 8080:8080 > /dev/null >2&1 & +sleep 5 echo "port-forwarding running in background" # echo "To forward the Jenkins service to another terminal, open a new terminal window and run the following command:" # echo "kubectl port-forward -n ${KUBE_NS} $jenkins_pod 8080:8080" @@ -194,7 +195,7 @@ echo "port-forwarding running in background" TOKEN=$(kubectl get secret jenkins-operator-credentials-jenkins -o jsonpath="{.data.token}" | base64 --decode) # Trigger a new build and capture the response headers -response_headers=$(curl -i -X POST http://localhost:8080/job/k8s-e2e/buildWithParameters -u jenkins-operator:$TOKEN --data-urlencode "TEST_STAGES_TO_RUN=$INCLUDE_TEST_STAGE" 2>&1) +response_headers=$(curl -i -X POST http://localhost:8080/job/$JOB_NAME/buildWithParameters -u jenkins-operator:$TOKEN --data-urlencode "TEST_STAGES_TO_RUN=$INCLUDE_TEST_STAGE" 2>&1) echo "response_headers $response_headers" queue_url=$(echo "$response_headers" | grep -i "Location" | awk -F ": " '{print $2}' | tr -d '\r')