This is an automated email from the ASF dual-hosted git repository.
mck pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/cassandra-builds.git
The following commit(s) were added to refs/heads/trunk by this push:
new d126ede Update Cassandra build CI script for new website
d126ede is described below
commit d126edec3fea77e3c0123a2327f01f6ab5697b15
Author: Mick Semb Wever <[email protected]>
AuthorDate: Thu Aug 5 11:44:03 2021 +0200
Update Cassandra build CI script for new website
patch by Mick Semb Wever; reviewed by Anthony Grasso for CASSANDRA-16765
---
jenkins-dsl/cassandra_job_dsl_seed.groovy | 27 ++++++++++++++++++---------
1 file changed, 18 insertions(+), 9 deletions(-)
diff --git a/jenkins-dsl/cassandra_job_dsl_seed.groovy
b/jenkins-dsl/cassandra_job_dsl_seed.groovy
index 83e44f9..eaa3b1a 100644
--- a/jenkins-dsl/cassandra_job_dsl_seed.groovy
+++ b/jenkins-dsl/cassandra_job_dsl_seed.groovy
@@ -1321,6 +1321,9 @@ job('cassandra-website') {
numToKeep(10)
artifactNumToKeep(10)
}
+ throttleConcurrentBuilds {
+ maxTotal(1)
+ }
wrappers {
preBuildCleanup()
timeout {
@@ -1350,21 +1353,27 @@ job('cassandra-website') {
}
}
triggers {
+ upstream('Cassandra-3.11,Cassandra-4.0,Cassandra-trunk', 'UNSTABLE')
scm('H/5 * * * *')
}
steps {
buildDescription('', buildDescStr)
- // the chmod below is a hack for INFRA-20814
// for debugging it can be useful to add a `git show --stat HEAD`
before the push
shell("""
- git checkout asf-staging ;
- git reset --hard origin/trunk ;
- docker-compose build --build-arg UID=`id -u` --build-arg
GID=`id -g` cassandra-website ;
- chmod -R 777 src content ;
- docker-compose run cassandra-website ;
- git add content/ src/doc/ ;
- git commit -a -m "generate docs for `git rev-parse --short
HEAD`" ;
- git push -f origin asf-staging ;
+ git checkout asf-staging ;
+ git reset --hard origin/trunk ;
+
+ # HACK for INFRA-20814 ;
+ mkdir -p content/doc ;
+ chmod -R ag+rw site-* content ;
+
+ ./run.sh website-ui bundle -a BUILD_USER_ARG:`whoami` -a
UID_ARG:`id -u` -a GID_ARG:`id -g` ;
+ ./run.sh website container -a BUILD_USER_ARG:`whoami` -a
UID_ARG:`id -u` -a GID_ARG:`id -g` ;
+ ./run.sh website build -g ;
+
+ git add content ;
+ git commit -a -m "generate docs for `git rev-parse --short HEAD`" ;
+ git push -f origin asf-staging ;
""")
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]