Coder Social home page Coder Social logo

Comments (5)

qoomon avatar qoomon commented on June 14, 2024 1

@StefanBratanov Hi could you run gradle with --debug argument and provide the corresponding output?

from gradle-git-versioning-plugin.

StefanBratanov avatar StefanBratanov commented on June 14, 2024 1

@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.

qoomon avatar qoomon commented on June 14, 2024 1

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.

StefanBratanov avatar StefanBratanov commented on June 14, 2024 1

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.

qoomon avatar qoomon commented on June 14, 2024

Feel free to try version 6.4.1 and sorry for regression

from gradle-git-versioning-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.