diff --git a/src/Umbraco.Tests.Integration/Umbraco.Tests.Integration.csproj b/src/Umbraco.Tests.Integration/Umbraco.Tests.Integration.csproj
index 84e0eebd18..4300c7650a 100644
--- a/src/Umbraco.Tests.Integration/Umbraco.Tests.Integration.csproj
+++ b/src/Umbraco.Tests.Integration/Umbraco.Tests.Integration.csproj
@@ -14,6 +14,7 @@
+
diff --git a/src/Umbraco.Tests.Integration/create_slicing_filter_condition.sh b/src/Umbraco.Tests.Integration/create_slicing_filter_condition.sh
new file mode 100644
index 0000000000..6b98271147
--- /dev/null
+++ b/src/Umbraco.Tests.Integration/create_slicing_filter_condition.sh
@@ -0,0 +1,25 @@
+#!/bin/bash
+
+filterProperty="Name"
+
+tests=$1
+testCount=${#tests[@]}
+totalAgents=$SYSTEM_TOTALJOBSINPHASE
+agentNumber=$SYSTEM_JOBPOSITIONINPHASE
+
+if [ $totalAgents -eq 0 ]; then totalAgents=1; fi
+if [ -z "$agentNumber" ]; then agentNumber=1; fi
+
+echo "Total agents: $totalAgents"
+echo "Agent number: $agentNumber"
+echo "Total tests: $testCount"
+
+echo "Target tests:"
+for ((i=$agentNumber; i <= $testCount;i=$((i+$totalAgents)))); do
+targetTestName=${tests[$i -1]}
+echo "$targetTestName"
+filter+="|${filterProperty}=${targetTestName}"
+done
+filter=${filter#"|"}
+
+echo "##vso[task.setvariable variable=targetTestsFilter]$filter"