1 Star 0 Fork 47

gitehub/epoch

forked from Epoch/epoch 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
JenkinsDocker 794 Bytes
一键复制 编辑 原始数据 按行查看 历史
雨陌花开 提交于 2019-09-01 21:28 . 211111
pipeline {
tools {
maven 'maven'
}
agent any
stages {
stage('Build And Test ') {
steps{
timestamps{
sh "mvn clean package"
sh """
zip -q -r epoch.zip "target/epochOpen.war"
"""
}
}
}
stage('Sonar') {
steps{
timestamps {
sh "mvn sonar:sonar -Dsonar.projectKey=epoch -Dsonar.host.url=http://119.3.250.100:9000 -Dsonar.login=4343b554d97149e48f7788b6cdb3d46824f889af"
}
}
}
stage('Docker Push') {
steps{
sh '''
REPOSITORY=epoch:test
cat > Dockerfile << EOF
FROM centos
RUN rm -rf /opt
COPY target/*.war /opt/epoch.war
EOF
docker build -t $REPOSITORY .
docker push $REPOSITORY
docker container run -d --name epochopen -p 88:8080 2222:22 $REPOSITORY
'''
}
}
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/gitehub/epoch.git
git@gitee.com:gitehub/epoch.git
gitehub
epoch
epoch
master

搜索帮助