Created
June 17, 2016 15:02
-
-
Save cbdelavenne/e5fee49813b043906e45eb55660b1b6b to your computer and use it in GitHub Desktop.
swagger-codegen-cli.jar build script
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
#!/bin/bash | |
SWAGGER_REPO="$HOME/workspace/git/swagger-codegen" | |
cd ${SWAGGER_REPO} | |
echo "Working directory: `pwd`" | |
echo "Executing mvn clean ..." | |
mvn -q clean | |
if [ $? -eq 0 ]; then | |
echo "mvn clean successful!" | |
echo "Executing mvn package ..." | |
mvn -q package | |
if [ $? -eq 0 ]; then | |
echo "mvn package successful!" | |
else | |
echo "mvn package failed!" | |
fi | |
else | |
echo "mvn clean failed!" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment