Hello
I have some question with Build_number
when i use the pipleline to push the package to myget and get the build_number for versioin No.but it always stop on 59
No mater What i do. It's always show 59 and myget's package not change
the picture show how I get the build_number
so I want to ask anyone have same problem or have the solution
Thank you
Hello @Sean8218
As you can see in this thread clone depth does what? Why do I care about this setting? on Philip Hodder's response, Pipelines have a shallow clone configuration by default and that is probably the reason you are facing this issue. Your method for counting builds needs to have a full clone to work.
In that same thread, you will see that a feature request was created to allow this configuration per pipeline:
You will find a workaround that will allow you to fetch all the commits In the feature request above. Keep in mind that depending on the size of your repository this may slow down your build.
After all this, I still keep myself thinking about why you need this extra variable to give you the build number. Do you think the pipelines default build number could be useful to you?
It is available in this variable: BITBUCKET_BUILD_NUMBER. If you are not using this variable because you need to adjust the build number to match your needs, please check this article:
I hope this information helps you to move forward. =]
Thank you so much
our project on master is over than 50 nodes
After we use depth: full
It's really solve the problem
Thanks @Daniel Santos It's really help me a lot
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You are welcome @Sean8218
I'm glad things are working as expected now =]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.