X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=scripts%2Fcommon%2Fcoverity.sh;h=ac60db5b93c8cf36ee1c9c817aef46810fbde7cc;hb=ae3ca8a0e72315a894909240d775887ee2fc83c2;hp=52db8355f399afca3f323d35d968a650b9232d0a;hpb=2dad93550785131019ec8192167938b80a21d297;p=lttng-ci.git diff --git a/scripts/common/coverity.sh b/scripts/common/coverity.sh index 52db835..ac60db5 100755 --- a/scripts/common/coverity.sh +++ b/scripts/common/coverity.sh @@ -1,7 +1,7 @@ #!/bin/bash -exu # -# Copyright (C) 2015 - Michael Jeanson -# Jonathan Rajotte-Julien +# Copyright (C) 2019 Michael Jeanson +# Copyright (C) 2015 Jonathan Rajotte-Julien # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -112,6 +112,8 @@ if [ -d "$WORKSPACE/src/linux" ]; then export KERNELDIR="$WORKSPACE/src/linux" fi +# Enter the source directory +cd "$SRCDIR" # Verify upload is permitted # Added "--insecure" because Coverity can't be bothered to properly install SSL certificate chains @@ -153,8 +155,6 @@ fi TOOL_DIR=$(find "$TOOL_BASE" -type d -name 'cov-analysis*') export PATH=$TOOL_DIR/bin:$PATH -cd "$SRCDIR" - COVERITY_SCAN_VERSION=$(git describe --always | sed 's|-|.|g') # Build