Commit f721b2b6 authored by Raphael Defosseux's avatar Raphael Defosseux

Trying to sed

Signed-off-by: Raphael Defosseux's avatarRaphael Defosseux <raphael.defosseux@eurecom.fr>
parent 55d58630
Pipeline #10750 failed with stage
in 0 seconds
......@@ -91,6 +91,7 @@ pipeline {
sh "./bin/test2"
sh "./bin/test3"
echo "TERMINATE is ${TERMINATE_STATUS}"
sh "sed -e 's#TEMPLATE_JOB_NAME#${JOB_NAME}#' -e 's#TEMPLATE_BUILD_ID#${BUILD_ID}#' -e 's#TEMPLATE_GIT_URL#${GIT_URL}#' -e 's#TEMPLATE_GIT_BRANCH#${GIT_BRANCH}#' -e 's#TEMPLATE_GIT_COMMIT#${GIT_COMMIT}#' -e 's#TEMPLATE_JOB_TIMESTAMP#${JOB_TIMESTAMP}#' scripts/template_results.html > test_results.html"
}
} catch (Exception e) {
currentBuild.result = 'FAILURE'
......@@ -138,6 +139,9 @@ pipeline {
if(fileExists('cppcheck.xml')) {
archiveArtifacts artifacts: 'cppcheck.xml'
}
if(fileExists('test_results.html')) {
archiveArtifacts artifacts: 'test_results.html'
}
/*
mail bcc: '',
body: 'This is a test',
......
<!DOCTYPE html>
<html class="no-js" lang="en-US">
<head>
<title>Test Results for TEMPLATE_JOB_NAME job build #TEMPLATE_BUILD_ID</title>
<base href = "http://www.openairinterface.org/" />
</head>
<body>
<table style="border-collapse: collapse; border: none;">
<tr style="border-collapse: collapse; border: none;">
<td style="border-collapse: collapse; border: none;">
<a href="http://www.openairinterface.org/">
<img src="/wp-content/uploads/2016/03/cropped-oai_final_logo2.png" alt="" border="none" height=50 width=150>
</img>
</a>
</td>
<td style="border-collapse: collapse; border: none; vertical-align: center;">
<b><font size = "6">Job Summary -- Job: TEMPLATE_JOB_NAME -- Build-ID: TEMPLATE_BUILD_ID</font></b>
</td>
</tr>
</table>
<br>
<table border = "1">
<tr>
<td bgcolor = "lightcyan" >GIT Repository</td>
<td><a href="TEMPLATE_GIT_URL">TEMPLATE_GIT_URL</a></td>
</tr>
<tr>
<td bgcolor = "lightcyan" >Branch</td>
<td>TEMPLATE_GIT_BRANCH</td>
</tr>
<tr>
<td bgcolor = "lightcyan" >Commit ID</td>
<td>TEMPLATE_GIT_COMMIT</td>
</tr>
<tr>
<td bgcolor = "lightcyan" >Job Build Time</td>
<td>TEMPLATE_JOB_TIMESTAMP</td>
</tr>
</table>
</body>
</html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment