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
1f04aa6b
Commit
1f04aa6b
authored
Apr 03, 2018
by
wentao.suo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fff
parent
6c1ec60f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
9 deletions
+8
-9
StageBucket.groovy
src/org/qg/docker_new/StageBucket.groovy
+7
-0
Utils.groovy
src/org/qg/docker_new/Utils.groovy
+0
-8
qgDockerPiplineWithDocer.groovy
vars/qgDockerPiplineWithDocer.groovy
+1
-1
No files found.
src/org/qg/docker_new/StageBucket.groovy
View file @
1f04aa6b
...
@@ -14,6 +14,13 @@ def debug() {
...
@@ -14,6 +14,13 @@ def debug() {
_utils
().
beautyEcho
(
"debug"
,
"info"
)
_utils
().
beautyEcho
(
"debug"
,
"info"
)
}
}
def
contextMkdir
(
key
)
{
uuid
=
UUID
.
randomUUID
().
toString
()
contextDir
=
"/home/quant_group/pacakge/${key}"
sh
"mkdir -p ${contextDir}"
return
contextDir
}
def
before_prepare
()
{
def
before_prepare
()
{
sh
"cd /home/quant_group/qg-dockerfiles; git pull; cd -"
sh
"cd /home/quant_group/qg-dockerfiles; git pull; cd -"
sh
"cd /home/quant_group/config_repository; git pull origin master; cd -"
sh
"cd /home/quant_group/config_repository; git pull origin master; cd -"
...
...
src/org/qg/docker_new/Utils.groovy
View file @
1f04aa6b
// src/org/qg/docker/Utils.groovy
// src/org/qg/docker/Utils.groovy
package
org.qg.docker_new
;
package
org.qg.docker_new
;
def
root
=
"/home/quantgroup/"
def
contextMkdir
(
key
)
{
uuid
=
UUID
.
randomUUID
().
toString
()
contextDir
=
"/home/quant_group/pacakge/${key}"
sh
"mkdir -p ${contextDir}"
return
contextDir
}
def
beautyEcho
(
content
,
type
)
{
def
beautyEcho
(
content
,
type
)
{
red
=
"31"
red
=
"31"
...
...
vars/qgDockerPiplineWithDocer.groovy
View file @
1f04aa6b
...
@@ -40,7 +40,7 @@ def call(body) {
...
@@ -40,7 +40,7 @@ def call(body) {
echo
config
.
buildType
echo
config
.
buildType
stage
(
'prepare'
)
{
stage
(
'prepare'
)
{
_utils
.
beautyEcho
(
"Prepare"
,
"stage"
)
_utils
.
beautyEcho
(
"Prepare"
,
"stage"
)
contextDir
=
_
utils
.
contextMkdir
(
"${systemName}-${timeStemp}"
)
contextDir
=
_
stage
.
contextMkdir
(
"${systemName}-${timeStemp}"
)
_stage
.
before_prepare
()
_stage
.
before_prepare
()
}
}
...
...
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