From a3ed88b19ecc57098a92099d06853901d8ecdb99 Mon Sep 17 00:00:00 2001 From: Slawomir Jaranowski Date: Thu, 20 Jun 2024 23:20:54 +0200 Subject: [PATCH] Add git config in ITs setups --- .../it-dynamic-versioning-scm-tag-1-commit-0-tags/setup.groovy | 3 +++ .../setup.groovy | 3 +++ .../it-dynamic-versioning-scm-tag-latest-commit/setup.groovy | 3 +++ .../setup.groovy | 3 +++ .../setup.groovy | 3 +++ .../it-dynamic-versioning-scm-tag-property-name/setup.groovy | 3 +++ 6 files changed, 18 insertions(+) diff --git a/versions-maven-plugin/src/it/it-dynamic-versioning-scm-tag-1-commit-0-tags/setup.groovy b/versions-maven-plugin/src/it/it-dynamic-versioning-scm-tag-1-commit-0-tags/setup.groovy index ff1dc463bc..4053e7dd39 100644 --- a/versions-maven-plugin/src/it/it-dynamic-versioning-scm-tag-1-commit-0-tags/setup.groovy +++ b/versions-maven-plugin/src/it/it-dynamic-versioning-scm-tag-1-commit-0-tags/setup.groovy @@ -9,5 +9,8 @@ def testFile = new File(basedir, 'test.txt') testFile << 'content' exec('git init') +exec('git config user.email "you@example.com"') +exec('git config user.name "Your Name"') + exec('git add test.txt') exec('git commit -m initial-commit') diff --git a/versions-maven-plugin/src/it/it-dynamic-versioning-scm-tag-4-commits-1-vtag/setup.groovy b/versions-maven-plugin/src/it/it-dynamic-versioning-scm-tag-4-commits-1-vtag/setup.groovy index 82056497bd..d529d2ab13 100644 --- a/versions-maven-plugin/src/it/it-dynamic-versioning-scm-tag-4-commits-1-vtag/setup.groovy +++ b/versions-maven-plugin/src/it/it-dynamic-versioning-scm-tag-4-commits-1-vtag/setup.groovy @@ -9,6 +9,9 @@ def testFile = new File(basedir, 'test.txt') testFile << 'content' exec('git init') +exec('git config user.email "you@example.com"') +exec('git config user.name "Your Name"') + exec('git add test.txt') exec('git commit -m initial-commit') exec('git tag 1.1.1') diff --git a/versions-maven-plugin/src/it/it-dynamic-versioning-scm-tag-latest-commit/setup.groovy b/versions-maven-plugin/src/it/it-dynamic-versioning-scm-tag-latest-commit/setup.groovy index 7fc5dfd3c5..a8873ec840 100644 --- a/versions-maven-plugin/src/it/it-dynamic-versioning-scm-tag-latest-commit/setup.groovy +++ b/versions-maven-plugin/src/it/it-dynamic-versioning-scm-tag-latest-commit/setup.groovy @@ -9,6 +9,9 @@ def testFile = new File(basedir, 'test.txt') testFile << 'content' exec('git init') +exec('git config user.email "you@example.com"') +exec('git config user.name "Your Name"') + exec('git add test.txt') exec('git commit -m initial-commit') exec('git tag v1.1.1') diff --git a/versions-maven-plugin/src/it/it-dynamic-versioning-scm-tag-param-append-snapshot/setup.groovy b/versions-maven-plugin/src/it/it-dynamic-versioning-scm-tag-param-append-snapshot/setup.groovy index ff1dc463bc..4053e7dd39 100644 --- a/versions-maven-plugin/src/it/it-dynamic-versioning-scm-tag-param-append-snapshot/setup.groovy +++ b/versions-maven-plugin/src/it/it-dynamic-versioning-scm-tag-param-append-snapshot/setup.groovy @@ -9,5 +9,8 @@ def testFile = new File(basedir, 'test.txt') testFile << 'content' exec('git init') +exec('git config user.email "you@example.com"') +exec('git config user.name "Your Name"') + exec('git add test.txt') exec('git commit -m initial-commit') diff --git a/versions-maven-plugin/src/it/it-dynamic-versioning-scm-tag-param-use-versions/setup.groovy b/versions-maven-plugin/src/it/it-dynamic-versioning-scm-tag-param-use-versions/setup.groovy index ff1dc463bc..4053e7dd39 100644 --- a/versions-maven-plugin/src/it/it-dynamic-versioning-scm-tag-param-use-versions/setup.groovy +++ b/versions-maven-plugin/src/it/it-dynamic-versioning-scm-tag-param-use-versions/setup.groovy @@ -9,5 +9,8 @@ def testFile = new File(basedir, 'test.txt') testFile << 'content' exec('git init') +exec('git config user.email "you@example.com"') +exec('git config user.name "Your Name"') + exec('git add test.txt') exec('git commit -m initial-commit') diff --git a/versions-maven-plugin/src/it/it-dynamic-versioning-scm-tag-property-name/setup.groovy b/versions-maven-plugin/src/it/it-dynamic-versioning-scm-tag-property-name/setup.groovy index ff1dc463bc..4053e7dd39 100644 --- a/versions-maven-plugin/src/it/it-dynamic-versioning-scm-tag-property-name/setup.groovy +++ b/versions-maven-plugin/src/it/it-dynamic-versioning-scm-tag-property-name/setup.groovy @@ -9,5 +9,8 @@ def testFile = new File(basedir, 'test.txt') testFile << 'content' exec('git init') +exec('git config user.email "you@example.com"') +exec('git config user.name "Your Name"') + exec('git add test.txt') exec('git commit -m initial-commit')