Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
global-jenkinsfile
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
global-jenkinsfile
Commits
80a5b77a
Commit
80a5b77a
authored
Apr 03, 2018
by
wentao.suo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fff
parent
ff28c4f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
20 deletions
+2
-20
StageBucket.groovy
src/org/qg/docker_new/StageBucket.groovy
+2
-20
No files found.
src/org/qg/docker_new/StageBucket.groovy
View file @
80a5b77a
...
@@ -174,7 +174,7 @@ def build_java(namespace, systemName, contextDir) {
...
@@ -174,7 +174,7 @@ def build_java(namespace, systemName, contextDir) {
def
copy_files
(
buildType
,
target
,
contextDir
){
def
copy_files
(
buildType
,
target
,
contextDir
){
switch
(
buildType
){
switch
(
buildType
){
case
"java"
case
"java"
:
copy_files_java
(
target
,
contextDir
)
copy_files_java
(
target
,
contextDir
)
break
break
default
default
...
@@ -231,7 +231,7 @@ def dockerbuild_and_push(timeNow, buildNumber, branchName, harborGroup, systemNa
...
@@ -231,7 +231,7 @@ def dockerbuild_and_push(timeNow, buildNumber, branchName, harborGroup, systemNa
k8sSystemName
=
systemName
.
replaceAll
(
"_"
,
"-"
)
k8sSystemName
=
systemName
.
replaceAll
(
"_"
,
"-"
)
safeBranchName
=
branchName
.
replaceAll
(
regex
,
"_"
)
safeBranchName
=
branchName
.
replaceAll
(
regex
,
"_"
)
defaultSystemName
=
"project"
defaultSystemName
=
"project"
timeStemp
=
new
Date
().
format
(
"yyyyMMddHHmmss"
)
timeStemp
=
new
Date
().
format
(
"yyyyMMddHHmmss"
)
imageTag
=
"192.168.4.36/${harborGroup}/${k8sSystemName}:${safeBranchName}-${timeStemp}"
imageTag
=
"192.168.4.36/${harborGroup}/${k8sSystemName}:${safeBranchName}-${timeStemp}"
...
@@ -250,24 +250,6 @@ def dockerbuild_and_push(timeNow, buildNumber, branchName, harborGroup, systemNa
...
@@ -250,24 +250,6 @@ def dockerbuild_and_push(timeNow, buildNumber, branchName, harborGroup, systemNa
_utils
().
beautyEcho
(
"镜像地址:${imageTag}"
,
"info"
)
_utils
().
beautyEcho
(
"镜像地址:${imageTag}"
,
"info"
)
return
imageTag
return
imageTag
}
}
/*def deploy(namespace, systemName, imageTag, tier, isDeploy) {
def deploy_job_info
if (isDeploy=="true") {
_utils().beautyEcho("[旧集群][deploy]将镜像更新到到Namespace:" + namespace, "info")
deploy_job_info = build job: '3.deployer.Updater', parameters: [
string(name: 'namespace', value:"${namespace}"),
string(name:'name', value: "${systemName}"),
string(name:'image', value: "${imageTag}"),
string(name:'tier', value: "${tier}")]
log = Jenkins.getInstance().getItemByFullName('3.deployer.Updater').getBuildByNumber(deploy_job_info.getNumber()).logFile.text
return log
}else{
_utils().beautyEcho("namespace:[${namespace}]不存在,不执行deploy", "info")
}
}*/
def
deployV2
(
namespace
,
systemName
,
imageTag
,
tier
,
isDeploy
)
{
def
deployV2
(
namespace
,
systemName
,
imageTag
,
tier
,
isDeploy
)
{
def
deploy_job_info
def
deploy_job_info
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment