ansible: Use EFI with recently deployed SLES nodes
[lttng-ci.git] / scripts / lttng-tools / gerrit-depends-on.sh
index 33fd9d48ddc0e6ecd6e7b6683ac2d29fdf9e5130..5b55c82672f2edc8838914f919a1e676aa8bc12f 100755 (executable)
@@ -28,7 +28,7 @@ gerrit_query="&o=CURRENT_REVISION&o=DOWNLOAD_COMMANDS"
 gerrit_json_query=".[0].revisions[.[0].current_revision].ref"
 gerrit_json_query_status=".[0].status"
 
-possible_depends_on="lttng-ust|lttng-modules|userspace-rcu"
+possible_depends_on="lttng-ust|lttng-modules|userspace-rcu|babeltrace"
 re="Depends-on: (${possible_depends_on}): ([^'$'\n'']*)"
 property_file="${WORKSPACE}/gerrit_custom_dependencies.properties"
 
@@ -59,14 +59,14 @@ git rev-list --format=%B --max-count=1 HEAD | while read -r line; do
     fi
 
     if [ "$project" = "lttng-modules" ]; then
+        if [ "$(id -u)" != "0" ]; then
+            continue
+        fi
         if [ -d "$WORKSPACE/src/lttng-modules" ]; then
             # Remove the regular modules sources to replace them with those
-           # from the gerrit change
+            # from the gerrit change
             rm -rf "$WORKSPACE/src/lttng-modules"
-        else
-            # This job does not require modules sources
-            continue
-       fi
+        fi
     fi
 
     # Export the GERRIT_DEP_... into the property file for further jenkins usage
This page took 0.022129 seconds and 4 git commands to generate.