Comments (5)
@StefanBratanov Hi could you run gradle with --debug
argument and provide the corresponding output?
from gradle-git-versioning-plugin.
@StefanBratanov Hi could you run gradle with
--debug
argument and provide the corresponding output?
Thank you for the quick response. These are the logs from the 6.4.0 version. Let me know if you need ones from 6.3.6 version and I can run them
2023-02-16T16:18:10.178+0000 [LIFECYCLE] [org.gradle.api.Project] gather git situation from Circle CI environment variables: CIRCLE_BRANCH and CIRCLE_TAG
2023-02-16T16:18:10.179+0000 [DEBUG] [org.gradle.api.Project] CIRCLE_BRANCH:
2023-02-16T16:18:10.179+0000 [DEBUG] [org.gradle.api.Project] CIRCLE_TAG: 0.4.1
2023-02-16T16:18:10.179+0000 [DEBUG] [org.gradle.api.Project] override git branch with
2023-02-16T16:18:10.180+0000 [DEBUG] [org.gradle.api.Project] git situation:
2023-02-16T16:18:10.180+0000 [DEBUG] [org.gradle.api.Project] root directory: /home/circleci/jc-kzg-4844
2023-02-16T16:18:10.181+0000 [DEBUG] [org.gradle.api.Project] head commit: 072e50a7a2988d2b6a26f898a9db49cc15a6ddd1
2023-02-16T16:18:10.200+0000 [DEBUG] [org.gradle.api.Project] head commit timestamp: 2023-02-16T16:12:55Z
2023-02-16T16:18:10.200+0000 [DEBUG] [org.gradle.api.Project] head branch:
2023-02-16T16:18:10.210+0000 [DEBUG] [org.gradle.api.Project] head tags: [0.4.1]
2023-02-16T16:18:10.217+0000 [DEBUG] [org.gradle.api.Project] head description: 0.4.1-0-g072e50a
2023-02-16T16:18:10.222+0000 [LIFECYCLE] [org.gradle.api.Project] matching ref: COMMIT - 072e50a7a2988d2b6a26f898a9db49cc15a6ddd1
2023-02-16T16:18:10.222+0000 [LIFECYCLE] [org.gradle.api.Project] ref configuration: COMMIT - pattern: null
2023-02-16T16:18:10.222+0000 [LIFECYCLE] [org.gradle.api.Project] version: UNKNOWN
2023-02-16T16:18:10.321+0000 [LIFECYCLE] [org.gradle.api.Project]
2023-02-16T16:18:10.324+0000 [INFO] [org.gradle.api.Project] set version to UNKNOWN
2023-02-16T16:18:10.324+0000 [LIFECYCLE] [org.gradle.api.Project] project version: UNKNOWN
from gradle-git-versioning-plugin.
I think I got the problem. In version 6.3.6 I implicitly checked CIRCLE_BRANCH for been not null and not empty. In version 6.4.0 I only check for not null. This leads the extension to assuming circleCI has checked out a branch with the name "" (empty string).
I'll fix it an release a new version.
from gradle-git-versioning-plugin.
Feel free to try version
6.4.1
and sorry for regression
Thank you very much for the very quick turnaround and the fix! I will try the new version tomorrow. By the way, great plugin. It simplified a bunch of our versioning logic. 🙂
from gradle-git-versioning-plugin.
Feel free to try version 6.4.1
and sorry for regression
from gradle-git-versioning-plugin.
Related Issues (20)
- How to configure previous tag + -SNAPSHOT using GitHub Actions? HOT 5
- Tag refs ignored, pattern not recognised HOT 3
- How to use within a multi-module Gradle project? HOT 6
- Latest release named 9.4.1 HOT 1
- Fix compatibility with Gradle `8.1` and Configuration Cache HOT 15
- Placeholder default value and describe.tag do not appear compatible
- Shortcut for next version bumped by major/minor/patch HOT 2
- org.eclipse.jgit.errors.MissingObjectException: Missing unknown <commit hash here> HOT 4
- release new version with updated version of dependency org.eclipse.jgit:org.eclipse.jgi HOT 3
- Clarify docs on ordered selection HOT 2
- [6.1.0] `./gradlew version` fails with "invalid provided ref nkiesel/main/StringBuilder - needs to start with refs/" HOT 16
- JVM compatibility error in buildSrc HOT 6
- ${describe.tag} behaviour inconsistent with $(git describe) HOT 5
- error message: Object [full hash of commit] is not a commit. HOT 10
- Plugin does not detect merged tags HOT 8
- Does it work with Java 8? HOT 6
- How to define the <VERSION> pattern. HOT 9
- describe.tag.version.major couses java.lang.NullPointerException when none tag fit to pattern HOT 5
- Improve compatibility with Gradle Configuration Cache HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gradle-git-versioning-plugin.