Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
test_Shared_library_for_projects
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
Khawaja Ibrahim Mohiuddin
test_Shared_library_for_projects
Commits
9f634d44
Commit
9f634d44
authored
Feb 18, 2020
by
kmohiuddin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modified file.yaml file path
parent
7a13b6c7
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
24 deletions
+29
-24
create.properties
create.properties
+2
-0
delete.properties
delete.properties
+2
-0
file.yaml
file.yaml
+3
-3
update.properties
update.properties
+2
-0
test.groovy
vars/test.groovy
+20
-21
No files found.
create.properties
0 → 100644
View file @
9f634d44
hello
=
world
my_name
=
ibrahim
\ No newline at end of file
delete.properties
0 → 100644
View file @
9f634d44
hello
=
world
my_name
=
ibrahim
\ No newline at end of file
file.yaml
View file @
9f634d44
pipeline
:
config_file_path
:
/home/kmohiuddin/.jenkins/workspace/performance_test@libs/performance_test/text.properties
filePaths
:
-
file1
-
file2
-
file3
-
/home/kmohiuddin/.jenkins/workspace/performance_test@libs/performance_test/create.properties
-
/home/kmohiuddin/.jenkins/workspace/performance_test@libs/performance_test/update.properties
-
/home/kmohiuddin/.jenkins/workspace/performance_test@libs/performance_test/delete.properties
update.properties
0 → 100644
View file @
9f634d44
hello
=
world
my_name
=
ibrahim
\ No newline at end of file
vars/test.groovy
View file @
9f634d44
...
...
@@ -16,32 +16,31 @@ def call(String filepath) {
config
=
readYaml
file:
filepath
config
.
pipeline
.
filePaths
.
each
{
println
it
}
perfProps
=
readProperties
file:
"${config.pipeline.config_file_path}"
List
paramCode
=
[]
config
.
pipeline
.
filePaths
.
each
{
perfProps
=
readProperties
file:
it
paramCode
.
add
(
[
$class
:
'ParameterSeparatorDefinition'
,
name:
'FOO_HEADER'
,
sectionHeader:
'Foo Parameters'
,
separatorStyle:
separatorStyle
,
sectionHeaderStyle:
sectionHeaderStyle
]
)
perfProps
.
each
{
param
,
paramValue
->
paramCode
.
add
(
string
(
defaultValue:
"${paramValue}"
,
name:
param
,
description:
"Reading from file: ${config.pipeline.config_file_path}"
,
trim:
true
))
}
properties
([
parameters
(
paramCode
)
])
paramCode
.
add
(
[
$class
:
'ParameterSeparatorDefinition'
,
name:
'FOO_HEADER'
,
sectionHeader:
'Foo Parameters'
,
separatorStyle:
separatorStyle
,
sectionHeaderStyle:
sectionHeaderStyle
]
)
perfProps
.
each
{
param
,
paramValue
->
paramCode
.
add
(
string
(
defaultValue:
"${paramValue}"
,
name:
param
,
description:
"Reading from file: ${config.pipeline.config_file_path}"
,
trim:
true
))
}
properties
([
parameters
(
paramCode
)
])
}
}
\ 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