bmoers / sn-cicd-example-v3

Example implementation of https://github.com/bmoers/sn-cicd V3
10 stars 24 forks source link

Pull request not triggering #5

Closed Anjali1425 closed 5 years ago

Anjali1425 commented 5 years ago

Thanks for creating the server and making it opensource :) I am Trying to build the application, but the pull request is not triggering. The logs says "master is not enabled, Skip export." Could you please point out what could be the reason for this. Thanks!! tempsnip

bmoers commented 5 years ago

Looks like the master host name is missing.

This can be either configured in the REST request from ServiceNow to the CICD server (requires to add this to the request : { master : { name: 'https://dev99999.service-now.com' })

Or add the source -> master mapping in the .env file

# master source definition CICD_GIT_MASTER_SOURCE_[INSTANCENAME] (instance short name)
# this reads: if source is 'development.service-now.com', use 'prod.service-now.com' as the master
CICD_GIT_MASTER_SOURCE_DEVELOPMENT=prod.service-now.com

e.g. if the dev hostname is dev11111.service-now.com and the production (master) env is https://dev99999.service-now.com, add following : CICD_GIT_MASTER_SOURCE_DEV11111=dev99999.service-now.com

The 'master' environment is used to create the git repo during the first run or update the master branch in any further runs.