Unverified Commit 263c2601 authored by nasirhm's avatar nasirhm

🔧 👷 Seedjob

Signed-off-by: 's avatarnasirhm <nasirhussainm14@gmail.com>
parent 70073ec2
...@@ -6,14 +6,14 @@ ...@@ -6,14 +6,14 @@
//def ENV_folderDisplayName = build.environment.get("FOLDER_DISPLAY_NAME") //def ENV_folderDisplayName = build.environment.get("FOLDER_DISPLAY_NAME")
//def ENV_folderDescription = build.environment.get("FOLDER_DESCRIPTION") //def ENV_folderDescription = build.environment.get("FOLDER_DESCRIPTION")
function createFolder(def folderName, def folderDisplayName, def folderDescription){ function createFolder(String folderName, String folderDisplayName, String folderDescription){
jobDsl scriptText: """folder(\'${folderName}\') { jobDsl scriptText: """folder(\'${folderName}\') {
displayName(\'${folderDisplayName}\') displayName(\'${folderDisplayName}\')
description(\'${folderDescription}\') description(\'${folderDescription}\')
} }
""" """
} }
function createPipelineJob(def jobName, def gitUrl, def gitBranch, def jenkinsFilePath) { function createPipelineJob(String jobName, String gitUrl, String gitBranch, String jenkinsFilePath) {
jobDsl scriptText: """ jobDsl scriptText: """
pipelineJob(My-Project/\'${jobName}\'){ pipelineJob(My-Project/\'${jobName}\'){
definition { definition {
......
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