Skip to content

Instantly share code, notes, and snippets.

@fmunozn fmunozn/apiPublisher.groovy Secret
Last active Nov 27, 2018

Embed
What would you like to do?
Kong publisher for CI
def kongManager = new com.fts.api.kong.KongManager(this, templateParams.kongProtocol, templateParams.kongHost, templateParams.kongAdminHost, templateParams.kongPort)
stage('PUBLISH KONG')
container(name:'apiary-kong', shell: '/bin/bash') {
try{
kongManager.register(true, 'ci', 'test-endpoint', '', '/test', 'http://my-test-url.com/test)
}catch(error){
print("This error is because kong is not accessible or the endpoint was not registered")
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.