Gocd deploy to remote ssh instances

52 views
Skip to first unread message

Mohammed Azfar

unread,
Oct 20, 2019, 10:28:29 PM10/20/19
to go-cd
Hi team,

Pl suggest the right approach to deploy artifacts in remote ssh instances using gocd
-
Mohammed Azfar

Mohammed Azfar

unread,
Oct 22, 2019, 2:53:43 PM10/22/19
to go-cd
Any help pl

Ashwanth Kumar

unread,
Oct 22, 2019, 8:15:47 PM10/22/19
to go...@googlegroups.com
Mohammed, GoCD natively doesn't do any deployments as such. You can use GoCD to orchestrate any kind of deployment. 

To SSH into a remote machine and deploy your artifacts, you can look into tools like Ansible, Fabric, Custom Bash Scripts etc. 

On Wed, Oct 23, 2019 at 12:23 AM Mohammed Azfar <mazfa...@gmail.com> wrote:
Any help pl

--
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 go-cd+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/166b9f6b-c7cd-45b3-a401-ab73458b156d%40googlegroups.com.


--

Ashwanth Kumar / ashwanthkumar.in

fabrizio chavarria

unread,
Oct 22, 2019, 8:43:16 PM10/22/19
to go-cd
I have done something similar but you need to invoke an ansible playbook or script and use it in your Pipeline Job tasks:
high level example : 

Job X:  

task 1: 
> git clone your branch  (your tools or playbooks) 
    
task 2: 
working_directory: "your_tools/playbooks/"
 > source python environment &&  ansible-playbook  --user  $user  -i $destination_server,  my_playbook.yml  -e  your_parameters ..   -v 

not sure if that helps




On Tuesday, October 22, 2019 at 6:15:47 PM UTC-6, Ashwanth Kumar wrote:
Mohammed, GoCD natively doesn't do any deployments as such. You can use GoCD to orchestrate any kind of deployment. 

To SSH into a remote machine and deploy your artifacts, you can look into tools like Ansible, Fabric, Custom Bash Scripts etc. 

On Wed, Oct 23, 2019 at 12:23 AM Mohammed Azfar <mazfa...@gmail.com> wrote:
Any help pl

--
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 go...@googlegroups.com.

Mohammed Azfar

unread,
Oct 24, 2019, 9:54:03 AM10/24/19
to go-cd
Thanks aswanth

Mohammed Azfar

unread,
Oct 24, 2019, 9:54:34 AM10/24/19
to go-cd
Thanks
Reply all
Reply to author
Forward
0 new messages