Merge branch 'master' of https://github.com/metersphere/metersphere
This commit is contained in:
commit
55c26387dd
|
@ -1,6 +1,6 @@
|
||||||
[submodule "backend/src/main/java/io/metersphere/xpack"]
|
[submodule "backend/src/main/java/io/metersphere/xpack"]
|
||||||
path = backend/src/main/java/io/metersphere/xpack
|
path = backend/src/main/java/io/metersphere/xpack
|
||||||
url = https://github.com/metersphere/xpack-backend.git
|
url = git@github.com:metersphere/xpack-backend.git
|
||||||
[submodule "frontend/src/business/components/xpack"]
|
[submodule "frontend/src/business/components/xpack"]
|
||||||
path = frontend/src/business/components/xpack
|
path = frontend/src/business/components/xpack
|
||||||
url = https://github.com/metersphere/xpack-frontend.git
|
url = git@github.com:metersphere/xpack-frontend.git
|
||||||
|
|
|
@ -0,0 +1,28 @@
|
||||||
|
pipeline {
|
||||||
|
agent {
|
||||||
|
node {
|
||||||
|
label 'master'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
options { quietPeriod(2400) }
|
||||||
|
parameters {
|
||||||
|
string(name: 'IMAGE_NAME', defaultValue: 'metersphere', description: '构建后的 Docker 镜像名称')
|
||||||
|
string(name: 'IMAGE_FREFIX', defaultValue: 'registry.cn-qingdao.aliyuncs.com/metersphere', description: '构建后的 Docker 镜像带仓库名的前缀')
|
||||||
|
}
|
||||||
|
stages {
|
||||||
|
stage('Build/Test') {
|
||||||
|
steps {
|
||||||
|
configFileProvider([configFile(fileId: 'metersphere-maven', targetLocation: 'settings.xml')]) {
|
||||||
|
sh "mvn clean package --settings ./settings.xml"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Docker build & push') {
|
||||||
|
steps {
|
||||||
|
sh "docker build --build-arg MS_VERSION=\${TAG_NAME:-\$BRANCH_NAME}-b\${BUILD_NUMBER} -t ${IMAGE_NAME}:\${TAG_NAME:-\$BRANCH_NAME} ."
|
||||||
|
sh "docker tag ${IMAGE_NAME}:\${TAG_NAME:-\$BRANCH_NAME} ${IMAGE_FREFIX}/${IMAGE_NAME}:\${TAG_NAME:-\$BRANCH_NAME}"
|
||||||
|
sh "docker push ${IMAGE_FREFIX}/${IMAGE_NAME}:\${TAG_NAME:-\$BRANCH_NAME}"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -1 +1 @@
|
||||||
Subproject commit 61397c16728a63493507679f7e0940d9099f337f
|
Subproject commit 7e32340f93c59e1b26332632ebae2eb83fbb6059
|
|
@ -3,7 +3,6 @@ import MsProject from "@/business/components/settings/project/MsProject";
|
||||||
export default {
|
export default {
|
||||||
path: "/api",
|
path: "/api",
|
||||||
name: "api",
|
name: "api",
|
||||||
redirect: "/api/home",
|
|
||||||
components: {
|
components: {
|
||||||
content: () => import('@/business/components/api/ApiTest')
|
content: () => import('@/business/components/api/ApiTest')
|
||||||
},
|
},
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
<el-menu-item index="/track" v-permission="['test_manager','test_user','test_viewer']">
|
<el-menu-item index="/track" v-permission="['test_manager','test_user','test_viewer']">
|
||||||
{{ $t('test_track.test_track') }}
|
{{ $t('test_track.test_track') }}
|
||||||
</el-menu-item>
|
</el-menu-item>
|
||||||
<el-menu-item index="/api" v-permission="['test_manager','test_user','test_viewer']">
|
<el-menu-item index="/api" @click="active()" v-permission="['test_manager','test_user','test_viewer']">
|
||||||
{{ $t('commons.api') }}
|
{{ $t('commons.api') }}
|
||||||
</el-menu-item>
|
</el-menu-item>
|
||||||
<el-menu-item index="/performance" onselectstart="return false"
|
<el-menu-item index="/performance" onselectstart="return false"
|
||||||
|
@ -47,7 +47,18 @@
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleSelect(index) {
|
handleSelect(index) {
|
||||||
|
console.log(index)
|
||||||
this.activeIndex = index
|
this.activeIndex = index
|
||||||
|
|
||||||
|
},
|
||||||
|
active() {
|
||||||
|
if (this.activeIndex === '/api') {
|
||||||
|
if (this.$store.state.switch.value == 'new') {
|
||||||
|
window.location.href = "/#/api/home";
|
||||||
|
} else if (this.$store.state.switch.value == 'old') {
|
||||||
|
window.location.href = "/#/api/home_obsolete";
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit d39dafaf84b9c7a56cb51f2caf67dd7dfde5938c
|
Subproject commit 010ad7a5f072a5e9d368c756a2473bbd20781433
|
Loading…
Reference in New Issue