Below snippet worked for me
curl -X POST 'http://jenkins_server:8080/credentials/store/system/domain/_/createCredentials' \ --user *userid:token* --data-urlencode 'json={ "": "0", "credentials": { "scope": "GLOBAL", "id": "user name", "username": "jenkinsUserID", "password": "passwordToken", "description": "Short decription of user", "$class": "com.cloudbees.plugins.credentials.impl.UsernamePasswordCredentialsImpl" Thank you Rajender -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/0b878208-ac7e-407f-9979-a829d9b238b7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
