Skip to content

When using Jenkins Pipeline - version is calculated on pipeline repo  #1690

@itaimalek

Description

@itaimalek

I'm using Pipeline as code on Jenkins- every build triggers a checkout from my pipelines repo to retrieve the job pipeline script.
the pipeline flow is :

  1. do git checkout of my actual code repo to a separate sub-directory
  2. cd do it and run dotnet gitversion

Expected:
get a calculated version of my actual code repo

Actual:
I get the version of my pipeline repo

steps I did to try to workaround:

  1. get the pipeline repo to a sub dir as well - did'nt work.
  2. paste the pipeline code directly in the UI - did the trick and I got my code version correct.

This is a major lost of jenkins functionality (handle jobs as code) - any solution will help :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions