You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I gave our contributor quickstarter some more thought.. and in order to prevent changes to the jenkins file and other pieces (sonar) that one would have to change back before an upstream contribution, we could infer project id and component id directly from the origin remote url instead of hard coding them into the jenkins file..
the git url pattern is every time similar (because we create it in the prov app):
http(s)://bitbucketHost/scm/projectId/projectId-componentId.git
Describe the solution you'd like
See above
Describe alternatives you've considered
An unmecessary change commit before upstream push.. Error prone
The text was updated successfully, but these errors were encountered:
clemensutschig
changed the title
Why dont we infer Project and component from the git url of the repo?
Why dont we infer Project id and component from the git url of the repo instead of coding them into the jenkinsfile?
Apr 25, 2020
We should still allow setting the project/component explicitly I think. But we could default to values extracted from the origin URL as you suggest, that would be a nice improvement 👍
Is your feature request related to a problem? Please describe.
I gave our contributor quickstarter some more thought.. and in order to prevent changes to the jenkins file and other pieces (sonar) that one would have to change back before an upstream contribution, we could infer project id and component id directly from the
origin remote url
instead of hard coding them into the jenkins file..the git url pattern is every time similar (because we create it in the prov app):
http(s)://bitbucketHost/scm/
projectId
/projectId-componentId
.gitDescribe the solution you'd like
See above
Describe alternatives you've considered
An unmecessary change commit before upstream push.. Error prone
Context:
today: https://github.com/opendevstack/ods-jenkins-shared-library/blob/master/src/org/ods/component/Context.groovy#L252-L260
The text was updated successfully, but these errors were encountered: