Skip to content

JPetStore for WiseBuild and Rancher

License

Apache-2.0, Unknown licenses found

Licenses found

Apache-2.0
LICENSE
Unknown
license.txt
Notifications You must be signed in to change notification settings

alanpeng/JPetStoreDemo

Repository files navigation

MyBatis JPetStore

JPetStore 6 is a full web application built on top of MyBatis 3, Spring 4 and Stripes.

Essentials

Other versions that you may want to know about

Build Project

  • with maven: mvn clean install
  • with gradle: gradle clean build

Running with Tomcat

Running JPetStore sample under Tomcat (using maven).

  • Clone this repository
  • Open command prompt/shell and change to cloned directory
  • Issue following command to run project using Tomcat

mvn clean tomcat:run

Run with Gradle

gradle jettyRun

Run RobotFramework Test Case

pybot -d target -x target/xunit.xml -v SERVER:<IP:PORT> src/test

WiseCloud配置注意事项:

WiseCloud 构建命令写法如下(实际中请将192.168.9.10换成正确的maven私服地址,对于WiseCloud,它就是artifactory容器所在的宿主机IP,需暴露32778端口):

gradle clean build -PMavenRepoServerIP=192.168.9.10 -PMavenRepoServerPort=32778

构建环境选择:

dgroup/java8-gradle

归档文件写法:

./docker/*.war

Dockerfile路径:

docker/Dockerfile

镜像标签格式示例:

192.168.9.11/wisebuild-demo/jpetstore:${BUILD_NUMBER}

代码扫描 对于SonarQube7版本的参数

-Dsonar.java.binaries=build

如果是选maven编译器,这里的路径是target/classes 如果是gradle编译器,路径则是build

测试环境选择:

rocketcity/robotframework-docker

构建命令写法(这里的192.168.9.10:9092请更换为实际部署JPetStoreDemo的访问入口):

pybot -d target -x target/xunit.xml -v SERVER:192.168.9.10:9292 src/test

About

JPetStore for WiseBuild and Rancher

Resources

License

Apache-2.0, Unknown licenses found

Licenses found

Apache-2.0
LICENSE
Unknown
license.txt

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published