You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by mc...@apache.org on 2020/06/07 09:18:46 UTC
[cassandra-builds] branch master updated: Copy, compress and archive,
the dtest ccm logfiles
This is an automated email from the ASF dual-hosted git repository.
mck pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cassandra-builds.git
The following commit(s) were added to refs/heads/master by this push:
new 22757c1 Copy, compress and archive, the dtest ccm logfiles
22757c1 is described below
commit 22757c1a56cffe4d147dc04868764a4a9fc1de2a
Author: Mick Semb Wever <mc...@apache.org>
AuthorDate: Fri Jun 5 15:03:59 2020 +0200
Copy, compress and archive, the dtest ccm logfiles
---
docker/jenkins/jenkinscommand.sh | 8 ++++++++
jenkins-dsl/cassandra_job_dsl_seed.groovy | 4 ++--
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/docker/jenkins/jenkinscommand.sh b/docker/jenkins/jenkinscommand.sh
index e342ed4..1a4b233 100644
--- a/docker/jenkins/jenkinscommand.sh
+++ b/docker/jenkins/jenkinscommand.sh
@@ -13,11 +13,19 @@ BRANCH=$2
DTEST_REPO=$3
DTEST_BRANCH=$4
EOF
+
echo "jenkinscommand.sh: running: git clone --branch $BUILDSBRANCH $BUILDSREPO; sh ./cassandra-builds/docker/jenkins/dtest.sh $TARGET"
ID=$(docker run --env-file env.list -dt $DOCKER_IMAGE dumb-init bash -ilc "git clone --branch $BUILDSBRANCH $BUILDSREPO; sh ./cassandra-builds/docker/jenkins/dtest.sh $TARGET")
# use docker attach instead of docker wait to get output
docker attach --no-stdin $ID
+
echo "$ID done, copying files"
+# pytest results
docker cp $ID:/home/cassandra/cassandra/cassandra-dtest/nosetests.xml .
+# pytest logs
docker cp $ID:/home/cassandra/cassandra/test_stdout.txt .
+# ccm logs. depends on $TMP_DIR and ccm cluster name. see cassandra-dtest-pytest.sh
+docker exec $ID /bin/bash -c "tar -cJf /ccm_logs.tar.xz /home/cassandra/cassandra/cassandra-dtest/tmp/*/test/*/logs/*"
+docker cp $ID:/ccm_logs.tar.xz .
+
docker rm $ID
diff --git a/jenkins-dsl/cassandra_job_dsl_seed.groovy b/jenkins-dsl/cassandra_job_dsl_seed.groovy
index 728e10f..4c6fe65 100644
--- a/jenkins-dsl/cassandra_job_dsl_seed.groovy
+++ b/jenkins-dsl/cassandra_job_dsl_seed.groovy
@@ -243,7 +243,7 @@ job('Cassandra-template-dtest') {
}
publishers {
archiveArtifacts {
- pattern('**/test_stdout.txt,**/nosetests.xml')
+ pattern('**/test_stdout.txt,**/nosetests.xml,**/ccm_logs.tar.xz')
allowEmpty()
fingerprint()
}
@@ -649,7 +649,7 @@ dtestTargets.each {
}
publishers {
archiveArtifacts {
- pattern('**/test_stdout.txt,**/nosetests.xml')
+ pattern('**/test_stdout.txt,**/nosetests.xml,**/ccm_logs.tar.xz')
allowEmpty()
fingerprint()
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org