Skip to content

Instantly share code, notes, and snippets.

@cbdelavenne
Created June 17, 2016 15:02
Show Gist options
  • Save cbdelavenne/e5fee49813b043906e45eb55660b1b6b to your computer and use it in GitHub Desktop.
Save cbdelavenne/e5fee49813b043906e45eb55660b1b6b to your computer and use it in GitHub Desktop.
swagger-codegen-cli.jar build script
#!/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