Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

Jenkins ssh credentials in pipeline

withCredentials([sshUserPrivateKey(credentialsId: "yourkeyid", keyFileVariable: 'keyfile')]) {
       stage('scp-f/b') {
        sh "scp -i ${keyfile} do sth here"
       }
   }
Comment

PREVIOUS NEXT
Code Example
Shell :: set up ssh for github 
Shell :: command to uninstall windows store 
Shell :: linux switch user 
Shell :: bash do while one line 
Shell :: git go back to commit 
Shell :: github actions install postgres 
Shell :: vim delete to end of file 
Shell :: ssh into directory 
Shell :: how to chanbge port number on centos8 
Shell :: grep line after match 
Shell :: update time in linux 
Shell :: linux unique lines 
Shell :: powershell copy file to remote server 
Shell :: git make directory 
Shell :: makefile 
Shell :: makefile parameter 
Shell :: GIT: create repo 
Shell :: store env file in firebase functions 
Shell :: cutefish desktop enviroment install 
Shell :: git rebase branch 
Shell :: docker compose volumes 
Shell :: bash script assign array to variable 
Shell :: export docker image 
Shell :: create react and rails app 
Shell :: Bash echo to standard output from function 
Shell :: sshfs syntax with ssh key 
Shell :: cor installation 
Shell :: update all packages in cmd 
Shell :: how to install bash script on mac terminal 
Shell :: sed disable disallow root login 
ADD CONTENT
Topic
Content
Source link
Name
2+6 =