@@ -4,7 +4,7 @@ def baseTests(String image) {
44 Map base_tests = [failFast : false ];
55
66 base_tests[' Unit Tests CTest' ] = {
7- withDockerContainer(args : ' -u root' , image : image) {
7+ withDockerContainer(args : ' -u root -t ' , image : image) {
88 stage(' Setup CTest' ) {
99 echo ' Nothing to be done.' ;
1010 }
@@ -43,7 +43,7 @@ def baseTests(String image) {
4343 flow_tests. each { current_test ->
4444 base_tests[" Flow Test - ${ current_test} " ] = {
4545 node {
46- withDockerContainer(args : ' -u root' , image : image) {
46+ withDockerContainer(args : ' -u root -t ' , image : image) {
4747 stage(" Setup ${ current_test} " ) {
4848 sh label : ' Configure git' , script : " git config --system --add safe.directory '*'" ;
4949 checkout scm;
@@ -78,7 +78,7 @@ def getParallelTests(String image) {
7878 def ret = [
7979 ' Docs Tester' : {
8080 node {
81- withDockerContainer(args : ' -u root' , image : image) {
81+ withDockerContainer(args : ' -u root -t ' , image : image) {
8282 stage(' Setup Docs Test' ) {
8383 echo " Setting up Docs Tester environment in ${ image} " ;
8484 sh label : ' Configure git' , script : " git config --system --add safe.directory '*'" ;
@@ -101,7 +101,7 @@ def getParallelTests(String image) {
101101
102102 ' Build without GUI' : {
103103 node {
104- withDockerContainer(args : ' -u root' , image : image) {
104+ withDockerContainer(args : ' -u root -t ' , image : image) {
105105 stage(' Setup no-GUI Build' ) {
106106 echo " Build without GUI" ;
107107 sh label : ' Configure git' , script : " git config --system --add safe.directory '*'" ;
@@ -118,7 +118,7 @@ def getParallelTests(String image) {
118118
119119 ' Build without Test' : {
120120 node {
121- withDockerContainer(args : ' -u root' , image : image) {
121+ withDockerContainer(args : ' -u root -t ' , image : image) {
122122 stage(' Setup no-test Build' ) {
123123 echo " Build without Tests" ;
124124 sh label : ' Configure git' , script : " git config --system --add safe.directory '*'" ;
@@ -172,7 +172,7 @@ def getParallelTests(String image) {
172172
173173 ' Unit Tests Ninja' : {
174174 node {
175- withDockerContainer(args : ' -u root' , image : image) {
175+ withDockerContainer(args : ' -u root -t ' , image : image) {
176176 stage(' Setup Ninja Tests' ) {
177177 sh label : ' Configure git' , script : " git config --system --add safe.directory '*'" ;
178178 checkout scm;
@@ -195,7 +195,7 @@ def getParallelTests(String image) {
195195
196196 ' Compile with C++20' : {
197197 node {
198- withDockerContainer(args : ' -u root' , image : image) {
198+ withDockerContainer(args : ' -u root -t ' , image : image) {
199199 stage(' Setup C++20 Compile' ) {
200200 sh label : ' Configure git' , script : " git config --system --add safe.directory '*'" ;
201201 checkout scm;
@@ -217,7 +217,7 @@ def bazelTest = {
217217 checkout scm;
218218 sh label : ' Setup Docker Image' , script : ' docker build -f docker/Dockerfile.bazel -t openroad/bazel-ci .' ;
219219 }
220- withDockerContainer(args : ' -u root -v /var/run/docker.sock:/var/run/docker.sock' , image : ' openroad/bazel-ci:latest' ) {
220+ withDockerContainer(args : ' -u root -t - v /var/run/docker.sock:/var/run/docker.sock' , image : ' openroad/bazel-ci:latest' ) {
221221 stage(' bazelisk test ...' ) {
222222 withCredentials([string(credentialsId : ' bazel-auth-token-b64' , variable : ' BAZEL_AUTH_TOKEN_B64' )]) {
223223 timeout(time : 120 , unit : ' MINUTES' ) {
0 commit comments