[JIRA] (JENKINS-60185) Jenkins Cli get-job doesn't export jobs inside a folder

4 views
Skip to first unread message

lavanyaanbu@gmail.com (JIRA)

unread,
Nov 15, 2019, 9:37:02 AM11/15/19
to jenkinsc...@googlegroups.com
Lavanya Anbalagan created an issue
 
Jenkins / Bug JENKINS-60185
Jenkins Cli get-job doesn't export jobs inside a folder
Issue Type: Bug Bug
Assignee: Unassigned
Components: cli, job-exporter-plugin
Created: 2019-11-15 14:36
Environment: Jenkins Version: 2.190.2
Priority: Critical Critical
Reporter: Lavanya Anbalagan

Hi All, I am new to jenkins and using Jenkins ver. 2.190.2 which is installed in Azure Kubernetes version 1.14.6 . I am trying to export the jenkins jobs using the command line using a simple script by passing the job name.

 

Export_jobs()

{ mkdir JOB while read -r i do java -jar jenkins-cli.jar -s $URL -auth $username:$password get-job "$i" </dev/null > JOB/$i.xml done < list_jobs.txt }

Jenkins has a folder within that there are multiple jobs, the above export command only exports only the folder but not the jobs. Is there any other command i should use?

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

lavanyaanbu@gmail.com (JIRA)

unread,
Nov 15, 2019, 9:42:02 AM11/15/19
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages