@@ -1352,7 +1352,7 @@ If you know what you're doing and would like to suppress this warning, use one o
13521352 for ( const path of c . paths ) {
13531353 if ( ! Utils . isSubpath ( path , this . argv . cwd , this . argv . cwd ) ) continue ;
13541354
1355- paths += " " + Utils . expandText ( path , expanded ) . replace ( `${ expanded . CI_PROJECT_DIR } /` , "" ) ;
1355+ paths += " ./ " + Utils . expandText ( path , expanded ) . replace ( `${ expanded . CI_PROJECT_DIR } /` , "" ) ;
13561356 }
13571357
13581358 time = process . hrtime ( ) ;
@@ -1425,7 +1425,7 @@ If you know what you're doing and would like to suppress this warning, use one o
14251425 }
14261426 for ( const artifactPath of this . artifacts ?. paths ?? [ ] ) {
14271427 const expandedPath = Utils . expandText ( artifactPath , expanded ) . replace ( `${ expanded . CI_PROJECT_DIR } /` , "" ) ;
1428- cpCmd += `${ expandedPath } ` ;
1428+ cpCmd += `./ ${ expandedPath } ` ;
14291429 }
14301430 cpCmd += `${ artifactsPath } /${ safeJobName } /. || true\n` ;
14311431 const reportDotenv = Utils . expandText ( this . artifacts . reports ?. dotenv ?? null , expanded ) ;
@@ -1436,7 +1436,7 @@ If you know what you're doing and would like to suppress this warning, use one o
14361436 reportDotenvs . forEach ( ( reportDotenv ) => {
14371437 cpCmd += `mkdir -p ${ artifactsPath } /${ safeJobName } /.gitlab-ci-reports/dotenv\n` ;
14381438 cpCmd += `if [ -f ${ reportDotenv } ]; then\n` ;
1439- cpCmd += ` rsync -Ra ${ reportDotenv } ${ artifactsPath } /${ safeJobName } /.gitlab-ci-reports/dotenv/.\n` ;
1439+ cpCmd += ` rsync -Ra ./ ${ reportDotenv } ${ artifactsPath } /${ safeJobName } /.gitlab-ci-reports/dotenv/.\n` ;
14401440 cpCmd += "fi\n" ;
14411441 } ) ;
14421442 }
0 commit comments