First of all we need to add the secret to the Jenkins Credentials management system. To do so, navigate through the menus to section
Jenkins > Credentials > System > Global credentials (unrestricted) > Add credentials
Then select the kind of secret that you need and specify its value.