Re: Powershell Yarn Execution

2018-03-08 Thread Joe Cavanaugh
> [Pipeline] } > [Pipeline] // node > [Pipeline] End of Pipeline > ERROR: script returned exit code 1 > Finished: FAILURE On Thursday, March 8, 2018 at 11:17:10 AM UTC-6, Joe Cavanaugh wrote: > > Yep - the middle section of the first post is when I ran directly as the >

Re: Powershell Yarn Execution

2018-03-08 Thread Joe Cavanaugh
:31:45 AM UTC-6, slide wrote: > > Have you tried running the same command in powershell directly to see if > the behavior is just powershell itself? > > On Thu, Mar 8, 2018 at 8:20 AM Joe Cavanaugh <joe.d.cava...@gmail.com > > wrote: > >> bat 'yarn install' works f

Re: Powershell Yarn Execution

2018-03-08 Thread Joe Cavanaugh
bat 'yarn install' works fine. It seems that the powershell key word does not work correctly in declarative pipelines consistently. On Thursday, March 8, 2018 at 9:02:38 AM UTC-6, Joe Cavanaugh wrote: > > I didn't post the error message : > > ERROR: script returned exit code

Re: Powershell Yarn Execution

2018-03-08 Thread Joe Cavanaugh
I didn't post the error message : ERROR: script returned exit code 1 Finished: FAILURE On Wednesday, March 7, 2018 at 4:51:41 PM UTC-6, Joe Cavanaugh wrote: > > stage('Build') { > steps { > powershell ''' > Write-Output "S

Powershell Yarn Execution

2018-03-07 Thread Joe Cavanaugh
stage('Build') { steps { powershell ''' Write-Output "Starting Yarn Install" try { \$ErrorActionPreference = 'Stop' yarn install } catch { Write-Output "Install failed : \$PSItem"

Re: Can I load a declarative Jenkinsfile via a shared library?

2018-01-11 Thread Joe Cavanaugh
You have to have the declarative pipeline 1.2 or higher to do this. I am having issues putting the "powershell" keyword in the library... otherwise it seems to work. On Thursday, January 11, 2018 at 1:41:50 AM UTC-6, Idan Adar wrote: > > Indeed possible. See blog post: >

Re: Jenkins Infinite Loop w/ Powershell evoked from Groovy

2018-01-10 Thread Joe Cavanaugh
Anyone else encountering this issue? -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on

Re: Jenkins Infinite Loop w/ Powershell evoked from Groovy

2017-12-29 Thread Joe Cavanaugh
I can now confirm the standard bat 'echo Hello World' works fine - it is just the powershell keyword that is an issue. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an

Re: Jenkins Infinite Loop w/ Powershell evoked from Groovy

2017-12-29 Thread Joe Cavanaugh
Forgot to mention - the version of Jenkins is 2.98 with all the latest and greatest plugin versions (I just updated yesterday 12/28/2017). It is a windows master build machine running powershell 3.0 and I haven't tested on a powershell 5.1 machine yet. -- You received this message because

Jenkins Infinite Loop w/ Powershell evoked from Groovy

2017-12-29 Thread Joe Cavanaugh
Set up : 1) Create a Pipeline script in a groovy file such as in the blog post https://jenkins.io/blog/2017/10/02/pipeline-templates-with-shared-libraries/ . I called mine dotNetApiPipeline.groovy and saved it to /vars. > def call(body) { > // evaluate the body block, and collect

Re: Declarative pipeline support for tools: CMake, custom tools

2017-10-18 Thread Joe Cavanaugh
Note - To make what Colin did work, you must be using declarative pipeline 1.2 or higher which has its own list of dependencies. I didn't realize this right away. On Monday, October 16, 2017 at 12:03:26 PM UTC-5, Colin Bennett wrote: > > The workaround of use the 'tool' function in the

Re: Can we install SonarQube and Jenkins on same machine(VM) ?

2017-10-02 Thread Joe Cavanaugh
Agree with Devin above, and would highly suggest against setting up the Master Jenkins server and Sonarqube together - I ran into scaling problems rather quickly (like within 6 months as people got wind of the Jenkins and Sonar servers). Migrating Jenkins is pretty easy though, so for the

Re: Trying to use the shared library feature, unsuccessfully.

2017-09-29 Thread Joe Cavanaugh
I don't know if I fully understand your question... but here is something I did to solve getting scripts for execution in RepoA from repo's B,C,D... I now know the specific directories to execute the scripts from and the files that needed to be updated for Puppet. If you find a better way or

Re: Setup Declarative Script currentBuild.ChangeSets

2017-07-26 Thread Joe Cavanaugh
I've used a modified version of the scripts found on https://support.cloudbees.com/hc/en-us/articles/217630098-How-to-access-Changelogs-in-a-Pipeline-Job- to great success by putting them as @NonCPS on the bottom of my declarative pipeline. Just recently I have moved the script to a global

Re: Pipeline conversion of MSTest to JUnit using XUnit

2017-05-19 Thread Joe Cavanaugh
step([ $class: 'XUnitBuilder', testTimeMargin: '3000', thresholdMode: 1, thresholds: [ [$class: 'FailedThreshold', failureNewThreshold: '', failureThreshold: '0', unstableNewThreshold: '', unstableThreshold: ''], [$class: 'SkippedThreshold', failureNewThreshold: '', failureThreshold: '',