Commit 4656298f authored by daidekun's avatar daidekun

stage

parent 3082cc82
......@@ -30,17 +30,17 @@ def call(body) {
node {
try {
stage('Clean') {
echo "Stage[1] Clean"
echo "===============Stage[1] Clean==============="
_stage.clean_dir()
}
stage('Checkout') {
echo "Stage[2] Checkout"
echo "===============Stage[2] Checkout==============="
_stage.checkout(branchName, gitRepo)
}
stage('Prepare') {
echo "Stage[3] prepare"
echo "===============Stage[3] prepare==============="
echo "buildType is: ${config.buildType}"
contextDir = _utils.contextDir(workspace)
switch (config.buildType) {
......@@ -63,7 +63,7 @@ def call(body) {
}
stage('Build') {
echo "Stage[4] Build"
echo "===============Stage[4] Build==============="
switch (config.buildType) {
case "java":
_stage.build_java(namespace, systemName, contextDir)
......@@ -92,10 +92,12 @@ def call(body) {
}
stage('Deploy') {
echo "===============Stage[6] Docker Build And Push==============="
_stage.deploy(namespace, systemName, imageTag, config.tier, isDeploy)
}
stage("Clean") {
echo "===============Stage[7] Clean==============="
_stage.clean_images(imageTag)
}
} catch (err) {
......
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