Commit d57dd58a by Jason Song

Merge pull request #155 from yiming187/jenkins_update

Update jenkins build
parents bf6ff487 ab6baf9c
...@@ -24,5 +24,3 @@ target ...@@ -24,5 +24,3 @@ target
# git # git
*.orig *.orig
application-dev.properties
\ No newline at end of file
...@@ -2,5 +2,6 @@ ...@@ -2,5 +2,6 @@
SERVICE_NAME=apollo-adminservice SERVICE_NAME=apollo-adminservice
cd `dirname $0`/.. cd `dirname $0`/..
./$SERVICE_NAME".jar" stop if [[ -f $SERVICE_NAME".jar" ]]; then
./$SERVICE_NAME".jar" stop
fi
# DataSource
spring.datasource.url =
spring.datasource.username =
spring.datasource.password =
# DataSource
spring.datasource.url = ${spring_datasource_url}
spring.datasource.username = ${spring_datasource_username}
spring.datasource.password = ${spring_datasource_password}
...@@ -20,4 +20,28 @@ ...@@ -20,4 +20,28 @@
<artifactId>cat-client</artifactId> <artifactId>cat-client</artifactId>
</dependency> </dependency>
</dependencies> </dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-resources</id>
<phase>validate</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${basedir}/target</outputDirectory>
<resources>
<resource>
<directory>src/main/scripts</directory>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project> </project>
...@@ -28,10 +28,10 @@ APP_NAME=$1 ...@@ -28,10 +28,10 @@ APP_NAME=$1
APP_DIR=$APP_BASE_DIR/$APP_NAME APP_DIR=$APP_BASE_DIR/$APP_NAME
APP_RELEASE_DIR=$APP_BASE_DIR/apollo-$APP_NAME.releases/`date "+%Y-%m-%d.%H.%M.%S"` APP_RELEASE_DIR=$APP_BASE_DIR/apollo-$APP_NAME.releases/`date "+%Y-%m-%d.%H.%M.%S"`
APP_STARTUP_SCRIPT=$APP_DIR/bin/startup.sh APP_STARTUP_SCRIPT=$APP_DIR/bin/startup.sh
APP_SHUTDOWN_SCRIPTS=$APP_DIR/bin/shutdown.sh APP_SHUTDOWN_SCRIPT=$APP_DIR/bin/shutdown.sh
if [ -e $APP_STARTUP_SCRIPT ];then if [ -e $APP_STARTUP_SCRIPT ];then
$APP_SHUTDOWN_SCRIPTS $APP_SHUTDOWN_SCRIPT
fi fi
mkdir -p $APP_RELEASE_DIR mkdir -p $APP_RELEASE_DIR
......
...@@ -2,4 +2,6 @@ ...@@ -2,4 +2,6 @@
SERVICE_NAME=apollo-configservice SERVICE_NAME=apollo-configservice
cd `dirname $0`/.. cd `dirname $0`/..
./$SERVICE_NAME".jar" stop if [[ -f $SERVICE_NAME".jar" ]]; then
\ No newline at end of file ./$SERVICE_NAME".jar" stop
fi
\ No newline at end of file
...@@ -2,4 +2,6 @@ ...@@ -2,4 +2,6 @@
SERVICE_NAME=apollo-portal SERVICE_NAME=apollo-portal
cd `dirname $0`/.. cd `dirname $0`/..
./$SERVICE_NAME".jar" stop if [[ -f $SERVICE_NAME".jar" ]]; then
\ No newline at end of file ./$SERVICE_NAME".jar" stop
fi
\ No newline at end of file
...@@ -292,6 +292,11 @@ ...@@ -292,6 +292,11 @@
<artifactId>maven-release-plugin</artifactId> <artifactId>maven-release-plugin</artifactId>
<version>2.5.3</version> <version>2.5.3</version>
</plugin> </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.6</version>
</plugin>
</plugins> </plugins>
</pluginManagement> </pluginManagement>
<plugins> <plugins>
...@@ -369,9 +374,9 @@ ...@@ -369,9 +374,9 @@
</build> </build>
</profile> </profile>
<profile> <profile>
<id>local</id> <id>dev</id>
<properties> <properties>
<package.environment>local</package.environment> <package.environment>dev</package.environment>
</properties> </properties>
<activation> <activation>
<activeByDefault>true</activeByDefault> <activeByDefault>true</activeByDefault>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment