This file contains hidden or 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
| # First verify the version of Java being used is not SunJSK. | |
| java -version | |
| # Get the latest Sun Java SDK from Oracle http://www.oracle.com/technetwork/java/javase/downloads/jdk-7u1-download-513651.html | |
| wget http://download.oracle.com/otn-pub/java/jdk/7u51-b13/jdk-7u51-linux-x64.rpm | |
| # Rename the file downloaded, just to be nice | |
| mv jdk-7u1-linux-i586.rpm\?e\=1320265424\&h\=916f87354faed15fe652d9f76d64c844 jdk-7u1-linux-i586.rpm | |
| # Install Java |
This file contains hidden or 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
| echo "######Getting Dev Version From Pom##########" > /dev/null 2>&1 | |
| SNAPSHOT="-SNAPSHOT"; | |
| DEV_VERSION=$(mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dq -Dexpression=project.version | grep -v '\['); | |
| export RELEASE_VERSION="$(echo $DEV_VERSION | sed "s@$SNAPSHOT@@").$BUILD_NUMBER"; | |
This file contains hidden or 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
| echo "###############################" > /dev/null 2>&1 | |
| echo "# Bump Snapshot Version #" > /dev/null 2>&1 | |
| echo "###############################" > /dev/null 2>&1 | |
| #remove minor version (from 1.6.0.25 --> 1.6.0) | |
| SNAPSHOT_VERSION=$(echo $RELEASE_VERSION |grep -oP ".*\." |rev |cut -c 2- | rev) | |
| #increment - http://stackoverflow.com/questions/8653126/how-to-increment-version-number-in-a-shell-script |
This file contains hidden or 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
| mvn versions:set -DnewVersion=${RELEASE_VERSION} -DgenerateBackupPoms=false |
This file contains hidden or 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
| http://www.cambus.net/parsing-json-from-command-line-using-python/ | |
| curl -v --user sonar:sonar "http://sonar.sonar.com:9000/api/resources?resource=[project:sonar:key]&metrics=coverage" | python -c 'import sys, json; print json.load(sys.stdin)[0]["msr"][0]["frmt_val"]' |
This file contains hidden or 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
| http://server.jenkins.com/job/[JOB NAME]/lastBuild/testReport/api/json?pretty=true |
This file contains hidden or 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
| curl -o file-name.jar -u user:pass -L "http://maven.server.com:8081/nexus/service/local/artifact/maven/redirect?r=[Repository id e.g. snapshot]&g=[GROUP-ID]&a=[ARTIFACT-ID]&v=[Version e.g. LATEST]&p=[pkg e.g. jar/war/ear/...]" | |
| r - parameter is the maven repository - e.g. snapshot/release/3rd party | |
| g - parameter is the maven groupid -e.g. com.exelate.datalinx or com.exelate.bdi | |
| a - parameter is the maven artifactid(name of the project) - e.g. datalinx-backend or data-processor | |
| v - parameter - version number e.g. LATEST or 1.0.0 or 1.0.0-SNAPSHOT |
This file contains hidden or 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
| curl -o exelate-android-sdk.apklib -u public:exelate -L "http://maven.exelate.com:8081/nexus/service/local/artifact/maven/redirect?r=exelate-mobile&g=com.exelate&a=exelate-android-sdk&v=LATEST&e=apklib" |
This file contains hidden or 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
| <repositories> | |
| <repository> | |
| <id>exelate.repository</id> | |
| <name>exelate-mobile</name> | |
| <url>http://maven.exelate.com:8081/nexus/content/groups/public/</url> | |
| </repository> | |
| </repositories> | |
| <dependency> |
This file contains hidden or 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
| TAG= "<percentageFloat>10.654656</percentageFloat>" | |
| #expected = 10.654656 | |
| temp=$(echo $TAG |sed 's/[/]//g') | |
| res=$(echo $temp |sed 's/[<percentageFloat>]//g') |
OlderNewer