Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-70370

SSH STEPS Plugin remote host using parameters

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • ssh-steps-plugin
    • None

      def remote = [:] remote.name = 'test' remote.host = 'test.domain.com' remote.user = 'root' remote.password = 'password' remote.allowAnyHosts = true stage('Remote SSH') { writeFile file: 'abc.sh', text: 'ls -lrt' sshScript remote: remote, script: "abc.sh" }

      Is there any way to use the parameters for the remote host, name, user, and password? 

       

            nrayapati Naresh Rayapati
            p_s Palmari
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: