Commit 69ab8cfd authored by zhangdd's avatar zhangdd

test

Signed-off-by: default avatarzhangdd <86431843@qq.com>
parent bada9c16
#!/usr/bin/env groovy
/* 使用声明式流水线 方式*/
pipeline{
/* Jenkins为流水线分配一个执行器和工作区*/
agent any
stages{
......@@ -9,6 +12,18 @@ pipeline{
}
}
stage('build'){
sh "/var/jenkins_home/tools/apache-maven-3.6.3/bin/mvn clean -U package -Dversion=${version} -Dmaven.test.skip=true -P${profiles}"
}
stage('test'){
echo 'testing ...'
}
stage('deploy'){
echo 'deploy...'
}
}
......
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