Skip to content

Instantly share code, notes, and snippets.

@Palayoub
Created May 4, 2019 20:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Palayoub/9c41c3263f585991a254b8d0aa82fec2 to your computer and use it in GitHub Desktop.
Save Palayoub/9c41c3263f585991a254b8d0aa82fec2 to your computer and use it in GitHub Desktop.
Pseudo code. 1.
function createMainProject(request, response) {
newProject(data)
.then(res => {
return addMememberToProject(project, user);
})
.then(res => {
return createWebhook(projectName, res.projectId);
})
.then(res => {
return runJenkins(projectName, port)
})
.then(res => {
return runDocker(projectName)
})
.then(res => {
logger.info("every thing went smooth {} : ");
})
.catch(err => {
logger.error("error occured {} :", err);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment