Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 1.47 KB

Jenkins-Config.md

File metadata and controls

25 lines (16 loc) · 1.47 KB

Setup ssh credentials

Goto "Manage Jenkins" -> Manage Credentials

example as below for new user, you will not have anything setup yet. image

click Jenkins --> Global Credentials under (system) --> Add Credentials --> "Kind" choose SSH Username with private key

image

Under username, give the server's username (which you would want to connect with) ex - ec2-user for aws instance and paste the ssh private key of that server.

If you have any Passphrase, enter it down, then on ID field you can give a name for identification.

image

Creating Secret Text

useful case scenario is passing a passowrds as a varibale secretly in jenkins pipeline.

click Jenkins --> Global Credentials under (system) --> Add Credentials --> "Kind" choose Secret text

image

under secret type in the password and ID for your identification

example - Docker password as Secret text which can be used a varibale secretly in jenkins pipeline. image