Hello Helge Thanks for your email and help. We don't want to use the GoCD inbuilt artefact management hence we are using Artifactory for artefacts management. Makefile is part of the artefact and in the second stage we want to download the artefact and run the make command to do next steps i.e. make deploy Regarding your no.5 point about curl command, is there example to specify in pipeline yaml file.
Regards Prakash On Thursday, 6 August 2020 at 15:27:22 UTC+10 [email protected] wrote: > Hello Prakash, > > I think you should describe your setup and relation of the files you are > talking about a little more in detail: > > 1. What is this artifact on the Artifactory? > 2. Where is this make file located? In the artifact or in the source > code repository? > 3. If it's in the source code repository and you don't want to check > this out from the repository-- Why do you expect it to work in GoCD? > 4. Why do you store the artifact in the Artifactory in the first stage > and then want to get it from there in the second stage and not use the > GoCD > artifact management features? > 5. You can put the curl command as a regular "Custom Task" (which is > basically as OS command line call) in the yaml. > > Regards, > Helge > > > Am Donnerstag, 6. August 2020 03:35:31 UTC+2 schrieb Prakash Tirumalareddy: >> >> Thanks for your email Jason. >> When we try this option, there is NO files to execute the command. My >> make file is not there so that stage can't do anything. >> What I am after is, the stage should be download the artefact from >> Artifactory and then run the make command. >> >> Regards >> Prakash >> >> >> On Thursday, 6 August 2020 at 07:07:47 UTC+10 [email protected] >> wrote: >> >>> Hello Prakash, >>> >>> You wrote in your initial post: >>> >>> I know there is a stage configuration which says not to checkout the >>>> material. But when we enable this option then there is no way in that >>>> stage >>>> to do required task. >>> >>> >>> Why can GoCD not do the required task if materials are not fetched from >>> git? >>> >>> I think once you know the answer to this question you should be well on >>> your way to solving the issue. >>> >>> Hope this helps, >>> Jason >>> >>> >>> On Wednesday, 5 August 2020 06:14:13 UTC-4, Prakash Tirumalareddy wrote: >>>> >>>> Hello Helge >>>> >>>> Thanks for your kind reply. >>>> Either of the option is not solving the git-checkout at every stage. >>>> Is there way we can achieve to run stage by executing download the >>>> artefacts from Artifactory. (Can we put curl command in the pipeline.yaml >>>> itself? if so can you please give me some example?) >>>> Thanks again!!! >>>> >>>> Regards >>>> Prakash >>>> >>>> >>>> On Wednesday, 5 August 2020 at 18:40:11 UTC+10 [email protected] >>>> wrote: >>>> >>>>> Hello Prakash, >>>>> >>>>> there are 2 ways to achieve this: >>>>> 1. You can store the created artifact from the previous stage as a >>>>> resulting artifact ( >>>>> https://docs.gocd.org/20.4.0/configuration/managing_artifacts_and_reports.html) >>>>> >>>>> and then fetch the artifact in the next stage with the "Fetch Artifact" >>>>> task for further use. >>>>> 2. Upload the artifact to the Artifactory in the previous stage and >>>>> retrieve the artifact in next stage using a simple curl task. >>>>> I would prefer the first option because all the artifact handling is >>>>> done by GoCD internally. >>>>> >>>>> Regards, >>>>> Helge >>>>> >>>>> >>>>> Am Mittwoch, 5. August 2020 09:41:40 UTC+2 schrieb Prakash >>>>> Tirumalareddy: >>>>>> >>>>>> Hello Everyone >>>>>> >>>>>> Is there anyway we can configure a particular stage not to do >>>>>> git-checkout and instead download the artefacts from external repository >>>>>> (such jfrog artifactory) which was built and pushed in previous stage? >>>>>> >>>>>> Currently what have seen that at every stage it does the git-checkout >>>>>> for the commit hash. >>>>>> I know there is a stage configuration which says not to checkout the >>>>>> material. But when we enable this option then there is no way in that >>>>>> stage >>>>>> to do required task. >>>>>> >>>>>> Your help will be greatly appreciated. >>>>>> >>>>>> Regards >>>>>> Prakash >>>>>> >>>>>> -- You received this message because you are subscribed to the Google Groups "go-cd" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/5db2ff72-521b-46e3-ba4a-f387542f1d62n%40googlegroups.com.
