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
4c1e8ee0
Commit
4c1e8ee0
authored
Jan 04, 2018
by
daidekun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixbugs
parent
4f296aef
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
59 additions
and
0 deletions
+59
-0
debugPipeline.groovy
vars/debugPipeline.groovy
+50
-0
debug.groovy
vars/stage/debug.groovy
+9
-0
No files found.
vars/debugPipeline.groovy
0 → 100644
View file @
4c1e8ee0
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
vars/stage/debug.groovy
0 → 100644
View file @
4c1e8ee0
#
!
/usr/
bin
/
groovy
def
call
(
body
)
{
def
config
=
[:]
body
.
resolveStrategy
=
Closure
.
DELEGATE_FIRST
body
.
delegate
=
config
body
()
// evaluate the body block, and collect configuration into the object
echo
"I am a debug module groovy"
+
config
.
message
}
\ 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