Merge pull request #11937 from jtattermusch/kokoro_report_index
Generate kokoro_index.html before starting kokoro buildpull/11940/head
commit
88c5b585df
39 changed files with 96 additions and 20 deletions
@ -0,0 +1,35 @@ |
||||
#!/usr/bin/env bash |
||||
# Copyright 2017 gRPC authors. |
||||
# |
||||
# Licensed 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. |
||||
# |
||||
# Generates index.html that will contain links to various test results on kokoro. |
||||
set -e |
||||
|
||||
# change to grpc repo root |
||||
cd $(dirname $0)/../../.. |
||||
|
||||
# Kororo URLs are in the form "grpc/job/macos/job/master/job/grpc_build_artifacts" |
||||
KOKORO_JOB_PATH=$(echo "${KOKORO_JOB_NAME}" | sed "s|/|/job/|g") |
||||
|
||||
mkdir -p reports |
||||
|
||||
echo '<html><head></head><body>' > reports/kokoro_index.html |
||||
echo '<h1>'${KOKORO_JOB_NAME}', build '#${KOKORO_BUILD_NUMBER}'</h1>' >> reports/kokoro_index.html |
||||
echo '<h2><a href="https://kokoro.corp.google.com/job/'${KOKORO_JOB_PATH}'/'${KOKORO_BUILD_NUMBER}'/">Kokoro build dashboard (internal only)</a></h2>' >> reports/kokoro_index.html |
||||
echo '<h2><a href="https://sponge.corp.google.com/invocation?id='${KOKORO_BUILD_ID}'&searchFor=">Test result dashboard (internal only)</a></h2>' >> reports/kokoro_index.html |
||||
echo '<h2><a href="test_report.html">HTML test report (Not available yet)</a></h2>' >> reports/kokoro_index.html |
||||
echo '<h2><a href="test_log.txt">Test log (Not available yet)</a></h2>' >> reports/kokoro_index.html |
||||
echo '</body></html>' >> reports/kokoro_index.html |
||||
|
||||
echo 'Created reports/kokoro_index.html report index' |
@ -0,0 +1,21 @@ |
||||
@rem Copyright 2017 gRPC authors. |
||||
@rem |
||||
@rem Licensed under the Apache License, Version 2.0 (the "License"); |
||||
@rem you may not use this file except in compliance with the License. |
||||
@rem You may obtain a copy of the License at |
||||
@rem |
||||
@rem http://www.apache.org/licenses/LICENSE-2.0 |
||||
@rem |
||||
@rem Unless required by applicable law or agreed to in writing, software |
||||
@rem distributed under the License is distributed on an "AS IS" BASIS, |
||||
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
@rem See the License for the specific language governing permissions and |
||||
@rem limitations under the License. |
||||
|
||||
@rem make sure msys binaries are preferred over cygwin binaries |
||||
@rem set path to python 2.7 |
||||
set PATH=C:\tools\msys64\usr\bin;C:\Python27;%PATH% |
||||
|
||||
bash tools/internal_ci/helper_scripts/gen_report_index.sh |
||||
|
||||
git submodule update --init |
Loading…
Reference in new issue