1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-14 11:03:09 +02:00
sap-jenkins-library/test/groovy
Marcus Holl e61f16abfb Check if inside git repo via rev-parse --is-inside-work-tree
This approach works also in case we are in a subdirectory of the git repo,
e.g. in the closure of a dir statement.

The decission is delegate to git rather than using internal knowledge
about git file names. Well, the directory will be always named '.git',
but nevertheless ...

May endup in a false positive in case we did not clone a repo AND there
is another git repo somewhere upwards in the file system. Maybe some
other git repo is located upstairs containing e.g. the jenkins setup.
The advantage of working also for subdirectories outweights the disadvantage
for the false positive. It is not likely that we have to deal with another
git repo upstairs, since the pipeline script is expected to be located in
the payload git repo. A phantom repo upstairs looks like a pure academical
discussion.
2018-05-11 10:04:18 +02:00
..
com/sap/piper Check if inside git repo via rev-parse --is-inside-work-tree 2018-05-11 10:04:18 +02:00
util add JenkinsEnvironmentRule 2018-02-28 11:54:52 +01:00
ArtifactSetVersionTest.groovy Check if inside git repo via rev-parse --is-inside-work-tree 2018-05-11 10:04:18 +02:00
ChecksPublishResultsTest.groovy Update ChecksPublishResultsTest.groovy 2018-03-02 10:53:46 +01:00
DockerExecuteTest.groovy Improve Docker options configuration and forward from mavenExecute (#123) 2018-03-29 14:13:11 +02:00
DurationMeasureTest.groovy use new rules 2018-02-28 13:11:09 +01:00
InfluxWriteDataTest.groovy use new rules 2018-02-28 13:11:09 +01:00
MavenExecuteTest.groovy Improve Docker options configuration and forward from mavenExecute (#123) 2018-03-29 14:13:11 +02:00
MTABuildTest.groovy add file name and extension to mtaJarLocation 2018-04-26 16:17:54 +02:00
NeoDeployTest.groovy [refactoring] increase readability: warAction 2018-04-20 12:25:15 +02:00
PipelineExecuteTest.groovy use new rules 2018-02-28 13:11:09 +01:00
SetupCommonPipelineEnvironmentTest.groovy Update SetupCommonPipelineEnvironmentTest.groovy 2018-03-02 10:57:50 +01:00
TestsPublishResultsTest.groovy use perfReport step 2018-02-19 10:26:50 +01:00
ToolValidateTest.groovy add file name and extension to mtaJarLocation 2018-04-26 16:17:54 +02:00