0

I am new to Jenkins and wants to create a user who can subsequently create Job and pipelines.

I also wants this job/pipeline to be triggered as per schedule which should also be created using CLI or RESTFul APIs.

I tried this URL

Creating user in Jenkins via API

But it didn't help.

Ashish
  • 341
  • 2
  • 7
  • 17

1 Answers1

1

To create a user you can simply go to Manage Jenkins and then Manage Users.

You have access to Create User on this page.

I recommend you to add the Matrix Authorization Strategy Plugin to your Jenkins server.

You can find more information at this link: https://www.jenkins.io/doc/book/managing/security/#authorization

Edit:

If you want to do it programmatically, you can do it with the Script Console of JENKINS.

When your script is ready, you can even launch the script remotely via a web-request.

example of script from SO

example from jenkins.io

YannCha
  • 231
  • 1
  • 4
  • Thanks for your answer. I want to achieve all programatically either Groovy or Java code. Can it be possible? – Ashish Aug 02 '20 at 01:48