[JIRA] (JENKINS-37116) Add support for Jenkins Pipeline to the shiningpanda-plugin

2017-03-13 Thread sorin.sbar...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Sorin Sbarnea commented on  JENKINS-37116  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Add support for Jenkins Pipeline to the shiningpanda-plugin   
 

  
 
 
 
 

 
 While trying to find a better way to use virtualenvs inside (bigger) pipelines, I found encountered this https://codegists.com/code/jenkins-pipeline-dsl/ and https://codegists.com/snippet/groovy/build-jobgroovy_joebew42_groovy which seems to use two interesting syntaxes. Still I was not able to identify which plugins do expose these new commands.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
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-37116) Add support for Jenkins Pipeline to the shiningpanda-plugin

2017-03-09 Thread omer.van.kloe...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Omer van Kloeten commented on  JENKINS-37116  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Add support for Jenkins Pipeline to the shiningpanda-plugin   
 

  
 
 
 
 

 
 +1 to this. Would love to be able to run "native" pipeline commands to build inside venv.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
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-37116) Add support for Jenkins Pipeline to the shiningpanda-plugin

2016-10-07 Thread byrondover+jenkins...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Byron Dover commented on  JENKINS-37116  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Add support for Jenkins Pipeline to the shiningpanda-plugin   
 

  
 
 
 
 

 
 Thank you, matthew snyder!  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
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-37116) Add support for Jenkins Pipeline to the shiningpanda-plugin

2016-08-10 Thread matthew.sny...@allegiantair.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 matthew snyder commented on  JENKINS-37116  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Add support for Jenkins Pipeline to the shiningpanda-plugin   
 

  
 
 
 
 

 
 +1 for getting this working. In the mean time, using the workflowlibs plugin https://github.com/jenkinsci/workflow-cps-global-lib-plugin I have working virtual environments. I'm using vex here to run commands https://pypi.python.org/pypi/vex , as activating the virtualenv doesn't stay active across sh invocations in pipeline scripts. It's a bit hackish, I just got it going, but maybe this will be useful for someone else. 

 

% cat workflowLibs/src/com/testing/jenkins/python_utils.groovy
package com.testing.jenkins;

def create_virtualenv(){
withEnv(["PATH+VEX=~/.local/bin"]){
sh 'pwd > pwd.current'
env.WORKSPACE = readFile('pwd.current').trim()

sh "virtualenv ${env.WORKSPACE}/.virtualenv"
}
}

def create_virtualenv_py3(){
withEnv(["PATH+VEX=~/.local/bin"]){
sh 'pwd > pwd.current'
env.WORKSPACE = readFile('pwd.current').trim()

sh "virtualenv --python=python3 ${env.WORKSPACE}/.virtualenv"
}
}

def run_cmd(pycmd){
withEnv(["PATH+VEX=~/.local/bin"]){
sh "vex --path=${env.WORKSPACE}/.virtualenv ${pycmd}"
}
}

 

 In the pipeline script:  def vex = new com.testing.jenkins.python_utils() vex.create_virtualenv_py3() vex.run_cmd("python --version") vex.run_cmd("pip install -r requirements.txt") vex.run_cmd("some_script.py")  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 


[JIRA] (JENKINS-37116) Add support for Jenkins Pipeline to the shiningpanda-plugin

2016-08-02 Thread david.pars...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 David Pärsson updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-37116  
 
 
  Add support for Jenkins Pipeline to the shiningpanda-plugin   
 

  
 
 
 
 

 
Change By: 
 David Pärsson  
 
 
Summary: 
 Jenkins pipeline Add  support  for Jenkins Pipeline to the shiningpanda-plugin  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
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.