Created
May 4, 2019 20:20
-
-
Save Palayoub/9c41c3263f585991a254b8d0aa82fec2 to your computer and use it in GitHub Desktop.
Pseudo code. 1.
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
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