Hi Team,
I have a small doubt.
Previously we were using Clearcase for version control and now it is being replaced by Git. Stash is used as the Git repository management. Earlier, one of my collegue wrote a script to extract the code required for our deployment from the clearcase VOB file and place it in the server path. (in which the deployment is about to happen)
Now, I want to get the final codes from the Stash repository and place them in the same path. Is there a way to extract these files, that are ready for deployement from the Stash repository (remote repo) directly?
Thank you in advance !!!
Warm Regards,
-Jewel
I often want to do this as well, i'm not sure a curl is the most robust way.
Since you don't want to put much script logic in your bamboo tasks (they should be version controlled in git) can the team create a task type which is 'run bash script from repository', which can use your default repository and check out a single file and run that file (and specify arguments)?
This would make our bamboo plans much cleaner and we wouldn't have to rely on wget / curl or anything like that being installed on the build slave.
Hmmm... not quite sure whether I got your problem correctly, but you easily can clone your repository from stash via git commandline.
So: write a script, which clones the desired repository to a temporary place and which copies the desired files from your clone to the destination directory ...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.