Hello Helge

We tried using the curl command:

6-DeploySIT1: 
    fetch_materials: no
    clean_workspace: yes
    approval: manual
    environment_variables:
        app_environment: nonprod
        verify_repo: verify-repo
    jobs:
        deploy:
        tasks: 
        - exec:
            command: /usr/bin/curl -L -k -v -u <username>:<password> -X GET 
"https://artifactory.xys.com/service/rest/v1/search/assets/download?group=/<artefact_name>/master/${GO_PIPELINE_LABEL}&name=<artefact_name>/master/${GO_PIPELINE_LABEL}/${GO_REVISION_MYGIT}.zip"
 
-o "${GO_REVISION_MYGIT}.zip" && unzip -o "${GO_REVISION_MYGIT}.zip" -d .'
        - exec: 
            arguments:
            - deploy
            command: make

Error is:
Check your command whether it can be executed on your agent.

Regards
Prakash

On Saturday, 8 August 2020 at 00:06:00 UTC+10 [email protected] wrote:

> Hello Prakash,
>
> 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
>

-- 
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/2e092e80-0ee1-407c-83e0-cf8d100c7b4fn%40googlegroups.com.

Reply via email to