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

Please add support for jenkins pipeline plugin to publish-over-ssh

    Details

    • Similar Issues:

      Description

      Please add support for the Jenkins Workflow plugin. Thanks!

        Attachments

          Issue Links

            Activity

            Hide
            tapsa Tapio Reijonen added a comment -

            Very quickly tested this 1.19 and seams to work OK in pipeline and freestyle jobs. Thanks!

            Show
            tapsa Tapio Reijonen added a comment - Very quickly tested this 1.19 and seams to work OK in pipeline and freestyle jobs. Thanks!
            Hide
            phreakadelle Stephan Watermeyer added a comment - - edited

            Alex Earl: First test was also successful here. Still have two entries in the DropDown List:

            Further: Would it be possible to get the _configNamevalue _from a variable? Currently i need to hardcode this value in my pipeline...

            sshPublisher(publishers: [sshPublisherDe sc(configName: 'swpsci06', transfers: [sshTransfer(execCommand: '', execTimeout: 120000, sourceFiles: '')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false)])

            I would like to do something like. The variable "ReleaseNumber" is getting populate from my paramterized build.

            #!/usr/bin/env groovy
            
            def call(Map params = [:]) {
            	def serverHostname = "swpsws26"
            	
            	 pipeline {
            		agent any
            		
            		stages {
            			stage('Download') {
            				steps {
            					sshPublisher(publishers: [sshPublisherDesc(configName: $serverHostname, transfers: [sshTransfer(execCommand: '''
            						echo "INFO: Downloading $filename from $ReleaseNumber"
            						echo "INFO: $serverHostname"
            					''', execTimeout: 120000, sourceFiles: '')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false)])
            				}
            			}
            		}
            	}
            }
            
            
            Show
            phreakadelle Stephan Watermeyer added a comment - - edited Alex Earl : First test was also successful here. Still have two entries in the DropDown List: Further: Would it be possible to get the _configNamevalue _from a variable? Currently i need to hardcode this value in my pipeline... sshPublisher(publishers: [sshPublisherDe sc(configName: 'swpsci06' , transfers: [sshTransfer(execCommand: '', execTimeout: 120000, sourceFiles: ' ')], usePromotionTimestamp: false , useWorkspaceInPromotion: false , verbose: false )]) I would like to do something like. The variable "ReleaseNumber" is getting populate from my paramterized build. #!/usr/bin/env groovy def call(Map params = [:]) { def serverHostname = "swpsws26" pipeline { agent any stages { stage( 'Download' ) { steps { sshPublisher(publishers: [sshPublisherDesc(configName: $serverHostname, transfers: [sshTransfer(execCommand: ''' echo "INFO: Downloading $filename from $ReleaseNumber" echo "INFO: $serverHostname" ''', execTimeout: 120000, sourceFiles: ' ')], usePromotionTimestamp: false , useWorkspaceInPromotion: false , verbose: false )]) } } } } }
            Hide
            gemorroj Gemor Roj added a comment - - edited

            after 1.19 settings are not saving (1.18 works fine).

            • Remove prefix
            • Remote directory

            this is important regression

            Show
            gemorroj Gemor Roj added a comment - - edited after 1.19 settings are not saving ( 1.18 works fine). Remove prefix Remote directory this is important regression
            Hide
            ssbarnea Sorin Sbarnea added a comment -

            As of latest version of the plugin and Jenkins (LTS) 2.89.4 this plugin does not expose any pipeline functionality.

            /pipeline-syntax/ - does not contain any ssh function listed (ticket screenshot is outdated because now the dropdown contains function names)

            /pipeline-syntax/html – does not contain any "ssh" occurence

            Jenkins log does not report any errors or warnings related to ssh plugin, and it was restarted after installation.

            Show
            ssbarnea Sorin Sbarnea added a comment - As of latest version of the plugin and Jenkins (LTS) 2.89.4 this plugin does not expose any pipeline functionality. /pipeline-syntax/ - does not contain any ssh function listed (ticket screenshot is outdated because now the dropdown contains function names) /pipeline-syntax/html – does not contain any "ssh" occurence Jenkins log does not report any errors or warnings related to ssh plugin, and it was restarted after installation.
            Hide
            slide_o_mix Alex Earl added a comment -

            Gemor Roj Please open a new issue.

            Sorin Sbarnea I am not able to reproduce your issue. I've attached my screenshot of running under 2.89.4 and using the pipeline syntax to generate snippets.

            Show
            slide_o_mix Alex Earl added a comment - Gemor Roj Please open a new issue. Sorin Sbarnea I am not able to reproduce your issue. I've attached my screenshot of running under 2.89.4 and using the pipeline syntax to generate snippets.

              People

              • Assignee:
                slide_o_mix Alex Earl
                Reporter:
                fishnix E Camden Fisher
              • Votes:
                38 Vote for this issue
                Watchers:
                49 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: