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
428ac23c
Commit
428ac23c
authored
Jan 04, 2018
by
daidekun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更换目录
parent
32efbbbf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
0 deletions
+50
-0
debugPipeline.groovy
workflows/debugPipeline.groovy
+50
-0
No files found.
workflows/debugPipeline.groovy
0 → 100644
View file @
428ac23c
import
org.qg.docker.*
def
call
(
body
)
{
def
config
=
[:]
def
env
=
body
.
env
def
branchName
=
env
.
BRANCH_NAME
def
gitRepo
=
env
.
GIT_REPO
def
namespace
=
env
.
NAMESPACE
def
isDeploy
=
env
.
IS_DEPLOY
def
buildNumber
=
env
.
BUILD_NUMBER
t
=
gitRepo
.
split
(
"/"
)
def
gitGroup
=
t
[
0
]
def
originSystemName
=
t
[
1
]
def
systemName
=
originSystemName
.
toLowerCase
()
def
harborGroup
=
"library"
def
workspace
=
"/home/quant_group/jenkins_home/workspace/${env.JOB_NAME}"
def
imageTag
def
contextDir
def
_stage
=
new
org
.
qg
.
docker
.
StageBucket
()
def
_utils
=
new
org
.
qg
.
docker
.
Utils
()
body
.
resolveStrategy
=
Closure
.
DELEGATE_FIRST
body
.
delegate
=
config
body
()
node
{
try
{
dir
(
systemName
)
{
timestamps
{
stage
(
'Debug'
)
{
debug
{
message
=
"ddk"
}
}
}
}
}
catch
(
err
)
{
if
(
imageTag
)
{
_stage
.
clean_images
(
imageTag
)
}
currentBuild
.
result
=
'FAILED'
throw
err
}
}
}
\ No newline at end of file
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