Skip to content

Commit d1b23bf

Browse files
CSubmergeddaverigby
authored andcommitted
JenkinsLogSearch: Add copyright and usage message
Change-Id: I78a7ae19bd03c206708c3f22ef03163f6bc79de0 Reviewed-on: http://review.couchbase.org/104339 Tested-by: Chris Farman <[email protected]> Reviewed-by: Dave Rigby <[email protected]>
1 parent 154d35e commit d1b23bf

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

scripts/jenkins_console_log_search.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
11
#!/usr/bin/env python3
22

33
"""
4+
Copyright 2018 Couchbase, Inc
5+
6+
Licensed under the Apache License, Version 2.0 (the "License");
7+
you may not use this file except in compliance with the License.
8+
You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing, software
13+
distributed under the License is distributed on an "AS IS" BASIS,
14+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
See the License for the specific language governing permissions and
16+
limitations under the License.
17+
418
This short script uses curl requests to search the last 100 builds of
519
a jenkins job to find recurring errors, written in Python3.
620
It results in printing a list of links to builds that match the search
@@ -9,6 +23,8 @@
923
couchbase-cli.
1024
This is currently limited to searching for log patterns contained within
1125
one line of the logs, as the search checks line-by-line.
26+
27+
Usage: python jenkins_console_log_search.py -j <job-name> -s <RegEx Search term>
1228
"""
1329

1430
import argparse

0 commit comments

Comments
 (0)