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.
for an example see here: https://github.com/tomzo/gocd-yaml-config-plugin#example
tasks: # ordered list of tasks to execute
- exec: # indicates type of task
command: make
arguments:
- "VERBOSE=true"
You can specify your curl command here instead of the "make" call. The curl call is specific to your artifactory and the repository type you use -- so it's difficult for me to give you a neaningfull example.
Regards,
Helge
!!|10:43:38.980 [go] Task: cmd /c ""C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe" "tfs\path\to\project.proj" "/t:Release\""
[go] Job Started: 2020-08-10 19:53:21 AEST
[go] Start to prepare xx-prj/77/6-DeploySIT1/1/deploy on test.internal [/var/lib/go-agent]
[go] Cleaning working directory "/var/lib/go-agent/pipelines/ xx-prj" since stage is configured to clean working directory
[go] Skipping material update since stage is configured not to fetch materials
[go] Start to build xx-prj /77/6-DeploySIT1/1/deploy on test.internal [/var/lib/go-agent]
[go] Task: /usr/bin/curl -L -k -v -u <username>:<password> -X GET "https://artifactory.com/service/rest/v1/search/assets/download?group=/xx-prj/master/${GO_PIPELINE_LABEL}&name=xx-prj/master/${GO_PIPELINE_LABEL}/${GO_REVISION_MYGIT}.zip" -o "${GO_REVISION_MYGIT}.zip" && unzip -o "${GO_REVISION_MYGIT}.zip" -d .'took: 0.2s
Error happened while attempting to : /usr/bin/curl -L -k -v -u <username>:<password> -X GET "https://artifactory.com/service/rest/v1/search/assets/download?group=/xx-prj/master/${GO_PIPELINE_LABEL}&name=xx-prj/master/${GO_PIPELINE_LABEL}/${GO_REVISION_MYGIT}.zip" -o "${GO_REVISION_MYGIT}.zip" && unzip -o "${GO_REVISION_MYGIT}.zip" -d .] can be executed on this agent.
[Debug Information] Environment variable PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
[go] Task status: failed, took: 0.2s
[go] Current job status: failed
[go] Start to create properties xx-prj/77/6-DeploySIT1/1/deploy on test.internal [/var/lib/go-agent]
[go] Start to upload xx-prj/77/6-DeploySIT1/1/deploy on test.internal [/var/lib/go-agent]
[go] Job completed xx-prj/77/6-DeploySIT1/1/deploy on test.internal [/var/lib/go-agent]
<exec command="cmd"> <arg>/c</arg> <arg>""#{msbuild}"</arg> <arg>"#{projectRootDirectory}\#{projectName}\#{projectName}.proj"</arg> <arg>/t:Release"</arg> <runif status="passed" /> </exec>
Hello,
In case it helps, I see Jason had responded earlier to something like this:
https://groups.google.com/d/msg/go-cd/fjOz211CIhY/dThcC3P2AQAJ
Cheers,
Aravind
PS: Thanks for helping people, Jason. :)