Я попытался с помощью приведенной ниже команды cURL создать папку.
curl -XPOST http://MyJenkinsURL/createItem?name=FolderName&mode=com.cloudbees.hudson.plugins.folder.Folder&from=&json={"name":"FolderName","mode":"com.cloudbees.hudson.plugins.folder.Folder","from":"","Submit":"OK"}&Submit=OK --user username:APIToken -H Content-Type:application/x-www-form-urlencoded
Но я столкнулся с упомянутой ниже проблемой.Пожалуйста, помогите:
[exec] <!--
[exec] You are authenticated as: anonymous
[exec] Groups that you are in:
[exec]
[exec] Permission you need to have (but didn't): hudson.model.Item.Create
[exec] ... which is implied by: hudson.security.Permission.GenericCreate
[exec] ... which is implied by: hudson.security.Permission.GenericWrite
[exec] ... which is implied by: hudson.model.Hudson.Administer
[exec] -->
Заранее спасибо.