Reason is 

1) there's hardcoded port number in this conditional block '8080'. only always valid on CI env.
2) IT test is flickering on CI environment. this is part of effort of fixing that problem.
    Because It looks like CI try to run IT test right after ZeppelinServer started but before it actually initialized and ready to server REST api.