gocd-ftp-server-plugin
GoCD Plugin that downloads the source codes/files from FTP Server from a configured directory path when the pipeline triggers
Requirements
Should work with GoCD >= 17.4.0.
When you can use this plugin
- When your deployment environment does not support repository access
- When you want to package code along with GoCD deployment to protect your source code IP
How this plugin works
- Step 1: Setup FTP server and copy the source code into the home directory( this step can have dedicated server or build docker image with FTP Server setup along with source code)
- Step 2: Configure GoCD server pipeline with FTP server details and directory path
Setup Guide
Installation
Manually
Dockerized GoCD automatic plugin install
- Find release URL
- Set environment variable like the below; replacing
${VERSION}
GOCD_PLUGIN_INSTALL_gocd-ftp-server-plugin=https://github.com/sekhar-rangam/gocd-ftp-server-plugin/releases/download/v${VERSION}/gocd-ftp-server-plugin-${VERSION}.jar
Usage
Via pipelines-as-code
Refer the GoCD API Documentation for creating a pipeline via api
In the below yaml format update SCM value with Pluggable SCMs Id created in GoCD ADMIN tab
materials:
FTP_SCM_Server:
scm: 3154186a-4f0b-40a2-81db-c302108f5417
Via UI wizards
Available from GoCD 19.8.0
onwards.