Skip to content

Commit

Permalink
contrib/ci.inria.fr: send non-master non-stable sonar-scanner outputs…
Browse files Browse the repository at this point in the history
… to a pseudo 'tmp' branch

Only master and stable branch are sent to the corresponding branches on the sonarqube server.
Other branches are sent to 'tmp' instead.

Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr>
  • Loading branch information
bgoglin committed May 17, 2018
1 parent fd01b71 commit 1e6bcfc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions contrib/ci.inria.fr/job-3-sonarscanner.sh
Expand Up @@ -26,10 +26,8 @@ export hwloc_branch
# check that this is either master or vX.Y
if test x$hwloc_branch != xmaster; then
if test x$(echo "x${hwloc_branch}x" | sed -r -e 's/xv[0-9]+\.[0-9]+x//') != x; then
echo "This job only runs on master and stable branches"
exit 0
# TODO add an option for force a run?
# TODO or rename vX.Y* to vX.Y and anything else to master?
echo "Sending non-master and non-stable branch output to `tmp` branch on sonarqube server."
hwloc_branch=tmp
fi
fi

Expand Down

0 comments on commit 1e6bcfc

Please sign in to comment.