Skip to content

Commit

Permalink
http_io (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdarwin authored Nov 15, 2024
1 parent 7020099 commit 3c59487
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 8 deletions.
48 changes: 40 additions & 8 deletions jenkinsfiles/antora_libraries_1
Original file line number Diff line number Diff line change
Expand Up @@ -207,19 +207,26 @@ pipeline {
git clone https://github.com/boostorg/boost -b ${BOOST_BRANCH}
fi
cd boost
# not 'exporting' this, just for the following section.
BOOST_ROOT=$(pwd)
git checkout ${BOOST_BRANCH}
git pull
git submodule update --init
FILECACHE_PATH=$(pwd)
cd libs
if [ ! -d buffers ]; then
git clone https://github.com/cppalliance/buffers -b ${BOOST_BRANCH}
else
cd buffers
git checkout -b ${BOOST_BRANCH} || true
git pull || true
cd ..

# Formatted such as "cppalliance/buffers cppalliance/http_proto"
if [ -z "${EXTRA_BOOST_LIBRARIES}" ]; then
EXTRA_BOOST_LIBRARIES="cppalliance/buffers cppalliance/http_proto"
fi
for EXTRA_LIB in ${EXTRA_BOOST_LIBRARIES}; do
EXTRA_LIB_REPO=`basename $EXTRA_LIB`
if [ ! -d "$BOOST_ROOT/libs/${EXTRA_LIB_REPO}" ]; then
pushd $BOOST_ROOT/libs
git clone https://github.com/${EXTRA_LIB} -b $BOOST_BRANCH --depth 1
popd
fi
done

cd ..
cd $savedworkspacedir
ln -s ${FILECACHE_PATH} boost-root || true
Expand Down Expand Up @@ -357,4 +364,29 @@ pipeline {
}
}
}

post {
always {
echo 'This will always run'
}
success {
echo 'This will run only if successful'
// no email on success
// mail bcc: '', body: "<b>Example</b><br>Project: ${env.JOB_NAME} <br>Build Number: ${env.BUILD_NUMBER} <br> URL of the build: ${env.BUILD_URL}", cc: '', charset: 'UTF-8', from: '', mimeType: 'text/html', replyTo: '', subject: "SUCCESS CI: Project name -> ${env.JOB_NAME}", to: "[email protected]";
}
failure {
echo 'This will run only if failure'
mail bcc: '', body: "<b>Example</b><br>Project: ${env.JOB_NAME} <br>Build Number: ${env.BUILD_NUMBER} <br> URL of the build: ${env.BUILD_URL}", cc: '', charset: 'UTF-8', from: '', mimeType: 'text/html', replyTo: '', subject: "ERROR CI: Project name -> ${env.JOB_NAME}", to: "[email protected]";
}
unstable {
echo 'This will run only if the run was marked as unstable'
mail bcc: '', body: "<b>Example</b><br>Project: ${env.JOB_NAME} <br>Build Number: ${env.BUILD_NUMBER} <br> URL of the build: ${env.BUILD_URL}", cc: '', charset: 'UTF-8', from: '', mimeType: 'text/html', replyTo: '', subject: "UNSTABLE STATUS CI: Project name -> ${env.JOB_NAME}", to: "[email protected]";
}
changed {
echo 'This will run only if the state of the Pipeline has changed'
echo 'For example, if the Pipeline was previously failing but is now successful'
mail bcc: '', body: "<b>Example</b><br>Project: ${env.JOB_NAME} <br>Build Number: ${env.BUILD_NUMBER} <br> URL of the build: ${env.BUILD_URL}", cc: '', charset: 'UTF-8', from: '', mimeType: 'text/html', replyTo: '', subject: "CHANGED STATUS CI: Project name -> ${env.JOB_NAME}", to: "[email protected]";
}
}

}
24 changes: 24 additions & 0 deletions jenkinsfiles/lcov_1
Original file line number Diff line number Diff line change
Expand Up @@ -303,4 +303,28 @@ pipeline {
}
}
}

post {
always {
echo 'This will always run'
}
success {
echo 'This will run only if successful'
// no email on success
// mail bcc: '', body: "<b>Example</b><br>Project: ${env.JOB_NAME} <br>Build Number: ${env.BUILD_NUMBER} <br> URL of the build: ${env.BUILD_URL}", cc: '', charset: 'UTF-8', from: '', mimeType: 'text/html', replyTo: '', subject: "SUCCESS CI: Project name -> ${env.JOB_NAME}", to: "[email protected]";
}
failure {
echo 'This will run only if failure'
mail bcc: '', body: "<b>Example</b><br>Project: ${env.JOB_NAME} <br>Build Number: ${env.BUILD_NUMBER} <br> URL of the build: ${env.BUILD_URL}", cc: '', charset: 'UTF-8', from: '', mimeType: 'text/html', replyTo: '', subject: "ERROR CI: Project name -> ${env.JOB_NAME}", to: "[email protected]";
}
unstable {
echo 'This will run only if the run was marked as unstable'
mail bcc: '', body: "<b>Example</b><br>Project: ${env.JOB_NAME} <br>Build Number: ${env.BUILD_NUMBER} <br> URL of the build: ${env.BUILD_URL}", cc: '', charset: 'UTF-8', from: '', mimeType: 'text/html', replyTo: '', subject: "UNSTABLE STATUS CI: Project name -> ${env.JOB_NAME}", to: "[email protected]";
}
changed {
echo 'This will run only if the state of the Pipeline has changed'
echo 'For example, if the Pipeline was previously failing but is now successful'
mail bcc: '', body: "<b>Example</b><br>Project: ${env.JOB_NAME} <br>Build Number: ${env.BUILD_NUMBER} <br> URL of the build: ${env.BUILD_URL}", cc: '', charset: 'UTF-8', from: '', mimeType: 'text/html', replyTo: '', subject: "CHANGED STATUS CI: Project name -> ${env.JOB_NAME}", to: "[email protected]";
}
}
}
13 changes: 13 additions & 0 deletions scripts/cppalliance_http_io_prebuild.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

set -xe
echo "Using sudo"
echo "export PRTEST=prtest2" >> jenkinsjobinfo.sh
# Added to container
# sudo apt-get update
# sudo apt-get install -y openssl libssl-dev

# How to make this more durable for future clang?
# Or, URL has already been updated.
echo "export CXX=/usr/bin/clang++-18" >> jenkinsjobinfo.sh
echo "export CC=/usr/bin/clang-18" >> jenkinsjobinfo.sh

0 comments on commit 3c59487

Please sign in to comment.