Commit 3082cc82 authored by daidekun's avatar daidekun

stage

parent 1afe94ee
...@@ -30,14 +30,17 @@ def call(body) { ...@@ -30,14 +30,17 @@ def call(body) {
node { node {
try { try {
stage('Clean') { stage('Clean') {
echo "Stage[1] Clean"
_stage.clean_dir() _stage.clean_dir()
} }
stage('Checkout') { stage('Checkout') {
echo "Stage[2] Checkout"
_stage.checkout(branchName, gitRepo) _stage.checkout(branchName, gitRepo)
} }
stage('prepare') { stage('Prepare') {
echo "Stage[3] prepare"
echo "buildType is: ${config.buildType}" echo "buildType is: ${config.buildType}"
contextDir = _utils.contextDir(workspace) contextDir = _utils.contextDir(workspace)
switch (config.buildType) { switch (config.buildType) {
...@@ -60,6 +63,7 @@ def call(body) { ...@@ -60,6 +63,7 @@ def call(body) {
} }
stage('Build') { stage('Build') {
echo "Stage[4] Build"
switch (config.buildType) { switch (config.buildType) {
case "java": case "java":
_stage.build_java(namespace, systemName, contextDir) _stage.build_java(namespace, systemName, contextDir)
...@@ -80,6 +84,7 @@ def call(body) { ...@@ -80,6 +84,7 @@ def call(body) {
} }
stage('Docker Build And Push') { stage('Docker Build And Push') {
echo "Stage[5] Docker Build And Push"
if (config.buildType == "java") { if (config.buildType == "java") {
_stage.copy_files_java(systemName, contextDir) _stage.copy_files_java(systemName, contextDir)
} }
......
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