I am trying to upload a cookbook to chef-server via Jenkinsfile pipeline code. However, my code is not working.
Could somebody please share the Jenkins pipeline code to upload the cookbook to chef-server?
My set-up is as follows:
- Jenkins server running on Ubuntu 18.x
- using the hosted chef-server
- using cloud bitbucket as a code repo