Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jenkins-learning-project
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
Nasir Hussain
jenkins-learning-project
Commits
263c2601
Unverified
Commit
263c2601
authored
Feb 03, 2021
by
nasirhm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🔧
👷
Seedjob
Signed-off-by:
nasirhm
<
nasirhussainm14@gmail.com
>
parent
70073ec2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
mySeedJob.groovy
mySeedJob.groovy
+2
-2
No files found.
mySeedJob.groovy
View file @
263c2601
...
@@ -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 {
...
...
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