[JIRA] (JENKINS-54127) Add new option to pipeline - sshagent

2018-11-14 Thread andrew.ba...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Andrew Bayer updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-54127  
 
 
  Add new option to pipeline - sshagent   
 

  
 
 
 
 

 
Change By: 
 Andrew Bayer  
 
 
Component/s: 
 pipeline-model-definition-plugin  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-54127) Add new option to pipeline - sshagent

2018-11-07 Thread andrew.ba...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Andrew Bayer updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-54127  
 
 
  Add new option to pipeline - sshagent   
 

  
 
 
 
 

 
Change By: 
 Andrew Bayer  
 
 
Component/s: 
 pipeline-model-definition-plugin  
 
 
Component/s: 
 pipeline  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-54127) Add new option to pipeline - sshagent

2018-10-18 Thread kamil.grabow...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Kamil Grabowski updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-54127  
 
 
  Add new option to pipeline - sshagent   
 

  
 
 
 
 

 
Change By: 
 Kamil Grabowski  
 
 
Component/s: 
 ssh-agent-plugin  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-54127) Add new option to pipeline - sshagent

2018-10-17 Thread kamil.grabow...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Kamil Grabowski created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-54127  
 
 
  Add new option to pipeline - sshagent   
 

  
 
 
 
 

 
Issue Type: 
  Improvement  
 
 
Assignee: 
 Unassigned  
 
 
Components: 
 pipeline  
 
 
Created: 
 2018-10-17 11:38  
 
 
Priority: 
  Minor  
 
 
Reporter: 
 Kamil Grabowski  
 

  
 
 
 
 

 
 Would be nice to be able to define sshagent as an option for stage or global pipeline. Here are examples:   

 

// Global option
pipeline {
  options {
sshagent('credential-id')
  }
  stages {
stage('ssh-deploy') {
  steps {
sh 'ssh user@host command'
  }
}
} 

   

 

// option for single stage
pipeline {
  stages {
stage('ssh-deploy') {
  options {
sshagent('credential-id')
  }
  steps {
sh 'ssh user@host command'
  }
}
  }
} 

 

 

// option for single stage + docker
pipeline {
 stages {
   stage('ssh-deploy') {
 agent {
   docker { image 'ubuntu:16.04' }
 }
 options {
   sshagent('credential-id')
 }
 steps {
   sh 'ssh user@host command'
 }
}
  }
}