Skip to content
Ryan Valizan edited this page Aug 29, 2020 · 5 revisions

Commonly Asked Questions

Here you will find commonly asked questions as well as insightful information to the project.


How to use script

bash ~/wp-git-sync.sh \
  -b sgLive \
  -d sgStage \
  -g $(DevOpsHost)wordpress-ssh-git-ci \
  -p /home/username/public_html/wp-git-sync \
  -t $(DevOpsToken) \
  -u $(DevOpsTokenUser)

Azure Pipeline

YAML Example:
note: This example uses Azure Key store variables

steps:
- task: SSH@0
  displayName: pushChanges
  inputs:
    sshEndpoint: 'agent-to-siteground'
    commands: 'bash ~/wp-git-sync.sh \
    -b sgLive \
    -d sgStage \
    -g $(DevOpsHost)wordpress-ssh-git-ci \
    -p /home/username/public_html/wp-git-sync \
    -t $(DevOpsToken) \
    -u $(DevOpsTokenUser)'

Classic Editor Example:

PipelineScreen

Console Log:

WordPress-SSH-Git-CI


Exit Error Message Numbers

Currently, not all of these numbers are being used; however, they were at one time or are planned to be used in the future.

## ERROR CODES EXPLAINED
### ERROR 2 = Missing required parameter option.
### ERROR 3 = Stopping for human intervention.
### ERROR 4 = Repository needs synced before it can pull changes.

Clone this wiki locally