Commit 1d5cdf63 authored by kmohiuddin's avatar kmohiuddin

Initial commit

parents
# Default ignored files
/workspace.xml
\ No newline at end of file
<component name="ProjectCodeStyleConfiguration">
<state>
<option name="PREFERRED_PROJECT_CODE_STYLE" value="Default" />
</state>
</component>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" default="true" project-jdk-name="11" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/test_proj.iml" filepath="$PROJECT_DIR$/test_proj.iml" />
</modules>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>
\ No newline at end of file
pipeline:
config_file_path: text.properties
import groovyjarjarantlr.collections.List
List params
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="groovy-2.5.8" level="application" />
</component>
</module>
\ No newline at end of file
hello=world
my_name=ibrahim
def call(String filepath) {
node {
config = readYaml file: filepath
perfProps = readProperties file: "${config.pipeline.config_file_path}"
List paramCode = []
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment