Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

quickstarters/pushToRemoteStage should support existing local git repo #265

Closed
clemensutschig opened this issue Apr 25, 2020 · 0 comments · Fixed by #284
Closed

quickstarters/pushToRemoteStage should support existing local git repo #265

clemensutschig opened this issue Apr 25, 2020 · 0 comments · Fixed by #284
Assignees
Labels
enhancement New feature or request

Comments

@clemensutschig
Copy link
Member

clemensutschig commented Apr 25, 2020

https://github.com/opendevstack/ods-jenkins-shared-library/blob/master/src/org/ods/quickstarter/PushToRemoteStage.groovy

assumes that the remote repo (created by the provision app) is always leading, as our quickstarters only supply template files that are copied locally into it, and committed (as apposed to being a fork with an existing commit history)

For our new concept of "ODS development quickstarters" we need the stage to support a filled / forked local git repo. So instead of always cloning remote as first step, the stage should check initially if the targetDir is a git repo or not.

In case it is (and that's new) - it should just do a commit and then push to origin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

2 participants