Skip to content

Commit 5c5ac2e

Browse files
committed
TS-44960 Fixed checked-out revison is not picked up
1 parent 368414f commit 5c5ac2e

10 files changed

Lines changed: 646 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ We use [semantic versioning](http://semver.org/):
77
# Next version
88
- _maven-plugin_: Added maven properties for `runImpacted` and `runAllTests` configuration parameters
99
- _maven-plugin_: The warning "Both baselineRevision and baselineCommit are set but only one of them is needed" was displayed incorrectly
10+
- [fix] _maven-plugin_: Coverage upload used "Now" instead of auto-resolved Git revision when no commit/revision was configured
1011

1112
# 36.2.0
1213
- _agent_: improved logging when multiple agents are attached

common-system-test/src/main/kotlin/com/teamscale/test/commons/Session.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ class Session(request: Request) {
2525

2626
private val reports = mutableMapOf<EReportFormat, MutableList<ExternalReport>>()
2727

28+
/** Returns the revision for which the session was opened. */
29+
fun getRevision() = revision
30+
2831
/**
2932
* Retrieves the commit information for the session. Combines the revision and commit data into a single string
3033
* representation separated by a comma.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip
18+
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar

system-tests/maven-external-upload-test/auto-resolve-revision-project/mvnw

Lines changed: 316 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)