-
-
Save fmunozn/3dbf14da8e57de9b446b93639ddc770f to your computer and use it in GitHub Desktop.
Kong publisher for CI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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