"Added a missed class for missing class telemetry"

2020-07-17 Thread red 888
Im trying to run the test harness and im seeing a ton of these warnings This says resolved but Im seeing it on "org.jenkins-ci.main:jenkins-war:2.235" https://issues.jenkins-ci.org/browse/JENKINS-60725 # build.gradle apply plugin: 'groovy' ext { jobDslVersion = '1.77' } sourceSets {

Re: Jenkins job dsl- any way to dry run before affecting changes?

2019-12-30 Thread red 888
Hey, thanks for the suggestions! I know about the testing framework and while I may wind up using it out of necessity I think dry-run is more valuable than a unit test here. Let me ask you this, could I have a unit test that I could run locally but that that jenkins could also run first before

Jenkins job dsl- any way to dry run before affecting changes?

2019-12-29 Thread red 888
I opened an SO post (that no one seems to be interested in) https://stackoverflow.com/questions/59314501/jenkins-job-dsl-some-way-to-do-a-dry-run I use the jenkins job dsl to create my multibranch pipeline jobs. It works great with one glaring issue- safely confirming changes _before_ applying

The Pipeline Maven Plugin is not replacing the config in global settings.xml from jenkins credentials

2019-09-27 Thread red 888
I also opened an SO post for this issue: https://stackoverflow.com/questions/58139761/pipeline-maven-plugin-not-replacing-servers-in-global-settings-xml-from-jenkin I wonder if the plugin is broken or not working correctly for multibranch pipelines? I can create a maven config file and in the

how do I modify one option in scm.getUserRemoteConfigs without having to manually set all the options?

2019-08-21 Thread red 888
in my jenkins pipeline i have this: checkout([$class: 'GitSCM', branches: [[name: "${env.BRANCH_NAME}"]], doGenerateSubmoduleConfigurations: false, extensions: [ [$class: 'SubmoduleOption', disableSubmodules: false,

Completely Host Jenkins build logs on external storage

2018-10-22 Thread red 888
Everything I see is for *backing up* build logs to S3 or other external storage locations. Is there a plug-in for actually hosting build logs on those locations? meaning that's just where Jenkins writes to and looks for build logs? I often replay jobs and like looking at the job history in

How do I send a raw TCP request from jenkins pipeline?

2018-08-30 Thread red 888
There is the excellent "httpRequest" I can use in a pipeline build step. But now I want to send a raw TCP request, I could not find a plugin for this. Is there a supported plugin feature for this? I want to avoid shelling out for this. This is an example of the raw TCP request I am making:

Re: How do I get the “parentNumber” in my jenkins pipeline?

2018-08-22 Thread red 888
Im not sure where that file is, but im more interested in _how_ they get that value. How can you get the build number of the job you rebuild from? It looks like they're using the build cause to get that build number? Does the build cause have the build number of the "parent" job I run rebuild

Re: How do I get the “parentNumber” in my jenkins pipeline?

2018-08-22 Thread red 888
the changelog: > > "Build-info exports an environment variable 'BUILDINFO_PROPFILE' with the > location of the generated build info properties file" > > 1. > > > > On Wed, Aug 22, 2018 at 5:36 PM red 888 > wrote: > >> Using the artif

How do I get the “parentNumber” in my jenkins pipeline?

2018-08-22 Thread red 888
Using the artifactory plugin. When I rebuild a jenkins job and deploy to jfrog, I see this in the build info json: [image: enter image description here] Super useful to me and I cant find how to get that in the jenkins pipeline anywhere- its the job

Re: Can I have a reusable “post” block for my jenkins pipelines?

2018-08-20 Thread red 888
() > } > > Am I getting that correctly? > > > On Fri, Aug 3, 2018 at 08:20 red 888 > > wrote: > >> wait there seems to be confusion about what i am asking for look at my SO >> post: >> https://stackoverflow.com/questions/51508234/can-i-have

Re: Can I have a reusable “post” block for my jenkins pipelines?

2018-08-03 Thread red 888
scrounge up a sample later today. > > On Thu, Aug 2, 2018 at 11:04 red 888 > > wrote: > >> how does that work though? My pipelines are already in shared libraries. >> I want a shared post block specifically. >> >> >> On Monday, July 30, 2018 at 7:

Re: GIT_SSH not working on one of my windows slaves

2018-05-14 Thread red 888
r as I know, ssh will need to be in the PATH. > > On Mon, May 14, 2018 at 9:59 AM red 888 <fakemai...@gmail.com > > wrote: > >> Thanks for all the help/suggestions! Will ssh need to be in the system >> path for GIT_SSH_COMMAND="ssh -vvv" to work? because ssh isn

Re: GIT_SSH not working on one of my windows slaves

2018-05-14 Thread red 888
b parameter or an > agent environment variable. Refer to > https://support.cloudbees.com/hc/en-us/articles/115000618372-How-to-trace-git-connections- > for > more information > > On Fri, May 11, 2018 at 1:20 PM red 888 <fakemai...@gmail.com > > wrote: > >>

Re: GIT_SSH not working on one of my windows slaves

2018-05-11 Thread red 888
Waite > > On Thu, May 10, 2018 at 12:38 PM red 888 <fakemai...@gmail.com > > wrote: > >> also, if this is helpful this is the global git config on both slaves: >> >> PS C:\Users\Administrator> git config --list >> core.symlinks=false >> core.a

Re: GIT_SSH not working on one of my windows slaves

2018-05-10 Thread red 888
Jenkins says "using GIT_SSH to set credential" What is it actually putting in GIT_SSH? On Thursday, May 10, 2018 at 2:38:14 PM UTC-4, red 888 wrote: > > also, if this is helpful this is the global git config on both slaves: > > PS C:\Users\Administrator> git conf

Re: GIT_SSH not working on one of my windows slaves

2018-05-10 Thread red 888
ry > paths which contain a space character. > > Mark Waite > > On Thu, May 10, 2018 at 12:17 PM red 888 <fakemai...@gmail.com > > wrote: > >> I can confirm the git ssh key works and has always worked so the creds >> themselves should not be an issue. >> >

Re: GIT_SSH not working on one of my windows slaves

2018-05-10 Thread red 888
same problem with > command line git authentication on Windows not really liking temporary > paths which contain a space character. > > Mark Waite > > On Thu, May 10, 2018 at 12:17 PM red 888 <fakemai...@gmail.com > > wrote: > >> I can confirm the git ssh key works

Re: GIT_SSH not working on one of my windows slaves

2018-05-10 Thread red 888
ch node and see if >> there are any differences? >> >> On Thu, May 10, 2018 at 10:42 AM red 888 <fakemai...@gmail.com >> > wrote: >> >>> Super frustrating because this is working on one of my windows slaves, >>> but not this one- and I cant fin

Re: GIT_SSH not working on one of my windows slaves

2018-05-10 Thread red 888
iables on each node and see if > there are any differences? > > On Thu, May 10, 2018 at 10:42 AM red 888 <fakemai...@gmail.com > > wrote: > >> Super frustrating because this is working on one of my windows slaves, >> but not this one- and I cant find any config di

GIT_SSH not working on one of my windows slaves

2018-05-10 Thread red 888
Super frustrating because this is working on one of my windows slaves, but not this one- and I cant find any config differences. On the working slave I see this: [Pipeline] checkout Cloning the remote Git repository Cloning repository g...@bitbucket.org:myteam/myapp.git > git init

How do I npm install inside a container slave?

2018-04-19 Thread red 888
Trying to install an npm module: stage('stage') { agent { docker { image "library/node:alpine" args "-u root" } } steps{ sh 'npm install aws-sam-local -g' sh 'sam --help' I get a permissions error: > + npm install

Re: How can i do a reset with GitSCM?

2018-04-18 Thread red 888
VE_THEIRS". Will either of those do what you want? > > Mark Waite > > On Tue, Apr 17, 2018 at 5:51 PM red 888 <fakemai...@gmail.com > > wrote: > >> I want to merge a branch into the current one but reset the current >> branch to the one I'm merging in: >>

How can i do a reset with GitSCM?

2018-04-17 Thread red 888
I want to merge a branch into the current one but reset the current branch to the one I'm merging in: checkout([$class: 'GitSCM', branches: [[name: "${env.BRANCH_NAME}"]], doGenerateSubmoduleConfigurations: false, extensions: [ [$class: 'PreBuildMerge', options: [

how can I pop an input box for a specific choice?

2018-04-17 Thread red 888
In jenkins I'd like to do this: parameters { choice( name: 'blah', choices: 'one\ntwo\ncustom', description: 'if you choose custom enter a custom number' ) } So they have three options on the drop down, but it would be nice if when they select the

Web Start is working but jenkins says “Ping response time is too long or timed out”

2018-03-29 Thread red 888
I can successfully start the connection from the slave with this command: java -jar agent.jar -jnlpUrl https://myserver:/computer/myslave/slave-agent.jnlp -secret sdfsdfsdf -workDir "c:\jenkins" It start, it runs, it logs 0 errors, I do netstat on the master and see the connection is

Re: Certificate problems when trying to deploy jenkins slave on Windows machine

2018-03-28 Thread red 888
I also have this issue. https://stackoverflow.com/questions/49544663/jenkins-windows-slave-thinks-my-cert-is-invalid On Friday, February 9, 2018 at 4:25:42 PM UTC-5, Mark Shapiro wrote: > > Were you able to find a resolution for this? I just started having this > problem recently. > > On

How do jenkins plugins expose users/groups to the matrix authorization plugin?

2018-02-28 Thread red 888
I think its safe to say the Google Login plugin is dead: https://github.com/jenkinsci/google-login-plugin Hasn't been updated in like a year and there are a bunch of old open pull requests. Id like to modify it for myself to be able to use groups in addition to just users under "Project-based

How do I use groups with the google login plugin?

2018-02-27 Thread red 888
I installed and setup the google login plugin: https://wiki.jenkins.io/display/JENKINS/Google+Login+Plugin This works and I can restrict access by domain. But this still isn't usable for me until I can restrict access by group. How can I accomplish this? Can I use "Project-based Matrix

Re: new File is adding C: to the path of a linux container

2018-02-15 Thread red 888
erated by jenkins during a build is created in the master. You > have to use the "readFile" to use it in the compute environment of the > slaves/agents > > On Thu, Feb 15, 2018 at 10:57 AM, red 888 <fakemai...@gmail.com > > wrote: > >> I have a windo

How can I unstash and clobber or only copy if changed?

2018-02-15 Thread red 888
Im running into a java.nio.file.AccessDeniedException error when trying to unstash to a folder with the same files/folders. Ideally I'd like unstash to overwrite files only if changed, but if unstash would just clobber every file/folder conflict that works too. I'd be nice to avoid rm * -rf

new File is adding C: to the path of a linux container

2018-02-15 Thread red 888
I have a windows master that executes a stage in a container on a linux slave. Groovy is appending a "C:" to the path inside the linux container- totally breaking it: stage('sdlfkjsldkf') { agent { docker { image "library/alpine" } } steps {

Fix gdsl intellij warnings

2018-02-14 Thread red 888
I have my pipeline code in a shared repo and it looks like this: def call(body) { def config = [:] body.resolveStrategy = Closure.DELEGATE_FIRST body.delegate = config body() pipeline { agent any options {... Intellij complains

Re: Dollar sign in credentials broken for declarative pipelines

2018-02-14 Thread red 888
eded around the expanded result to assure it is not > interpreted by the shell? > > Mark Waite > > > > On Tue, Feb 13, 2018 at 7:36 PM Slide <slide...@gmail.com > > wrote: > >> Can you file an issue in JIRA? >> >> On Tue, Feb 13, 2018 at

Dollar sign in credentials broken for declarative pipelines

2018-02-13 Thread red 888
This is my password: "ASD123$567" This doesn't work withCredentials([usernamePassword(credentialsId: 'creds', usernameVariable: 'myuser', passwordVariable: 'mypass')]) { sh "some command --username ${svnuser} --password ${mypass}" } What i see in the output is mypass is not obfuscated

Re: gcloud ssh pass key file as an environment var?

2018-02-02 Thread red 888
Sorry meant to ask on GCE forum, deleting this post -- 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

gcloud ssh pass key file as an environment var?

2018-02-01 Thread red 888
I tried setting GOOGLE_APPLICATION_CREDENTIALS to the path of my json key but it doesn't work: + gcloud auth activate-service-account ERROR: (gcloud.auth.activate-service-account) argument --key-file: Must be specified. Many other commands support this env. Is there an env that gcloud

sshagent still broken in containers

2018-01-29 Thread red 888
I know this used to be a bug but im running an updated version (1.15) sshagent (credentials: ['mykey']) { sh 'ssh-add -l' sh 'git clone g...@bitbucket.org:my/repo.git' } I even run ssh-add -l and can see its grabbing that key (already confirmed this key works outside of container)

How do I get access to environment variables in my post block?

2018-01-23 Thread red 888
At the top of my pipeline (not inside a specific stage) I define an env: environment { MYVA = 'sdkfjlsjflsjflsd'} Now I want to use it in a function call in my post block. I had to do this to get it to work: post { success { script { def MYVA = MYVA

Get what stage of a pipeline failed in post actions

2018-01-17 Thread red 888
In my pipeline's post{falure{}} block I want to report at which stage the pipeline failed. Is there an env or something that tracks this? -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails

Re: How do I purge/clobber stashed files?

2017-12-28 Thread red 888
s to write to a > stash of the same name would append to a single stash. > > Mark Waite > > On Wed, Dec 27, 2017 at 10:44 AM red 888 <fakemai...@gmail.com > > wrote: > >> Jenkins docs >> <https://jenkins.io/doc/pipeline/steps/workflow-basic-steps/#code-s

How do I purge/clobber stashed files?

2017-12-27 Thread red 888
Jenkins docs seem ambiguous about this: Stashed files are not otherwise available and are generally discarded at the end of the build. S "generally" means what?

Re: jenkins parallel streams with local files?

2017-12-27 Thread red 888
e "unstash" step > retrieves previously stored stashes. > > Mark Waite > > On Fri, Dec 22, 2017 at 5:16 PM red 888 <fakemai...@gmail.com > > wrote: > >> My parallel steps need access to a local file in the workspace of the >> job. But it seems they

jenkins parallel streams with local files?

2017-12-22 Thread red 888
My parallel steps need access to a local file in the workspace of the job. But it seems they can access it? I tried listing the workspace in each stream: powershell "ls ${workspace}" they are all empty! Each stream has its own workspace and the output of each stream ls

subfolders under vars for shared repo- or however this is support to be organized?

2017-12-07 Thread red 888
Im using the src folder and writing groovy classes. These are wrappers around java api. Its nice because I can use package name-spacing, but whats not nice is in order to use them in a declarative pipeline I have to do this in my steps: script { mySexyAssClass.aMethod('sdsdfsdf','sdfsdfds') }

Re: How can I inject environment variables into my groovy class?

2017-12-04 Thread red 888
> > sh “groovy MyScript.groovy” > > > > and then you’ve got all the environment variables setup and you’re in a > standard groovy environment without the pipeline restrictions and > idiosyncrasies. > > > > > > > > *From: *red 888 > *Sent: *03 Decembe

Re: How can I inject environment variables into my groovy class?

2017-12-02 Thread red 888
u’ve got a direct execution of a process commented out, > don’t do that either. The same way System.getEnv() doesn’t work, doing that > will not behave as expected either (Assuming the sandbox will let you) > > > > > > Regards, > > Daniel. > > > > *From: *

Re: How can I inject environment variables into my groovy class?

2017-11-29 Thread red 888
yntax inside your shared lib > class. > > Hopefully it helps. > > Michaël > > 2017-11-28 22:30 GMT+01:00 red 888 <fakemai...@gmail.com >: > >> My pipeline is using the environment directive to set an environment var >> and then calls a groovy class

How can I inject environment variables into my groovy class?

2017-11-28 Thread red 888
My pipeline is using the environment directive to set an environment var and then calls a groovy class: def call(int blah) { pipeline { agent any environment { MyVar = credentials('djsjflsjfljsf') } stages { stage('Stage ONE') {

Re: Why aren't these injected variables making it to my groovy class?

2017-11-21 Thread red 888
line script; Things are a lot more robust if you do those > sorts of things from an external script. > > > > The recommendation is to use pipeline script to orchestrate the job but > leave the actual heavy lifting to external processes and plugins. > > > > >

Re: Why aren't these injected variables making it to my groovy class?

2017-11-20 Thread red 888
lt-in variable env. > > Regards, > Daniel > > On 20 Nov 2017 2:14 am, "red 888" <fakemai...@gmail.com > > wrote: > > In my pipeline I'm injecting aws credentials: > > > withCredentials([[$class: 'AmazonWebServicesCredentialsBinding', > credentialsId

Why aren't these injected variables making it to my groovy class?

2017-11-19 Thread red 888
In my pipeline I'm injecting aws credentials: withCredentials([[$class: 'AmazonWebServicesCredentialsBinding', credentialsId: '89h9sfh8shf98shf98he9f8sf', accessKeyVariable: 'AWS_ACCESS_KEY_ID', secretKeyVariable: 'AWS_SECRET_ACCESS_KEY']]) { sh 'printenv' echo

How to detect a merge and perform a cleanup action with multibranch pipelines

2017-10-19 Thread red 888
This is what I have now: 1. Create a feature branch with jenkinsfile in it 2. Commit to your new feature branch and the pipeline kicks off 3. The pipeline deploys the app to a new VM/environment/container/whatever 4. The environment/VM persists after the deploy so you can touch/test it

Why does the jenkinsfile use a closure in this way?

2017-10-04 Thread red 888
Its a command pattern to write jenkins pipeline code like this: def call(body) { def config = [:] body.resolveStrategy = Closure.DELEGATE_FIRST body.delegate = config body() Im not sure how to word this simply, but this closure get implicitly imported and can be called by the

Re: In a shared library, what is the "vars/foo.txt" file USED for?

2017-10-04 Thread red 888
Interesting I check there and didn't see them. Does this mean my txt files aren't formatted correctly? I just put a sentence in one to test. On Monday, October 2, 2017 at 11:25:43 PM UTC-4, Robert Hales wrote: > > The .txt file shows up on the PipelineSyntax/Global Variables Reference > page.

Re: In a shared library, what is the "vars/foo.txt" file USED for?

2017-10-02 Thread red 888
Any word on this? I'm assuming no one is actually using this feature and its going to be deprecated because there is like zero documentation about where this is actually supposed to show up in jenkins. Is it under "Global Variables Reference" or "Step Reference"? I see my txt info no where and

How do I configure "Scan Multibranch Pipeline Triggers" in my jenkinsfile?

2017-09-19 Thread red 888
Right now I manually configure my multibranch pipeline jobs and set "Scan Multibranch Pipeline Triggers" to 3 minutes. How do I put this in my jenkinsfile? I can't find examples of this. Is Scan Multibranch Pipeline Triggers available in the "triggers{}" block? -- You received this message

build job "wait" not available for pipeline jobs

2017-09-18 Thread red 888
I'm calling a pipeline from another pipeline like this: steps { build job: '/mypipelines/mypipeline01/master', parameters: [string(name: 'passMeIn', value: "sdfsfsd")], wait: false } I have to do "wait: false" because otherwise I can't an error saying this is not supported. Is there a work

upstream() method pointing to all branches of a job

2017-09-16 Thread red 888
I've seen a few examples of ways to trigger a pipeline when an upstream job is updated: triggers { upstream(upstreamProjects: "/myjob/mybranch", threshold: hudson.model. Result.SUCCESS) } properties([ pipelineTriggers([ upstream( upstreamProjects: '/myjob/mybranch',

Re: All jobs run when shared library is updated

2017-09-16 Thread red 888
ifications, and assumed because Im polling that was not relevant? I guess that means it won't push out the deploy if the SCM (polling or pushed to) notices there is a change? On Friday, September 15, 2017 at 5:52:12 PM UTC-4, red 888 wrote: > > I have my whole pipeline block of code defined in

Have a job run for each branch of a shared library repo

2017-09-16 Thread red 888
Need to have a good dev workflow for developing share libraries my jobs depend on. Right now when a shared Lib is edited all jobs depending on it automatically run. I want to control and test this code somewhat like I do with regular apps with Jenkins. I don't want to have to manually point

Re: All jobs run when shared library is updated

2017-09-16 Thread red 888
nt to use. > > Mark Waite > > On Fri, Sep 15, 2017 at 3:52 PM red 888 <fakemailred...@gmail.com> wrote: > >> I have my whole pipeline block of code defined in a shared library and my >> jenkinsfiles for my apps just call this shared library. >> >>

All jobs run when shared library is updated

2017-09-15 Thread red 888
I have my whole pipeline block of code defined in a shared library and my jenkinsfiles for my apps just call this shared library. I noticed though that when I modify the shared library and push to the git repo ALL the jenkins jobs that depend on this library re-run. How can I prevent this from

Beanstalk deployment plugin for multi-region app? (AWSEB Deployment Plugin)

2017-09-14 Thread red 888
Looking at this plugin: https://wiki.jenkins.io/display/JENKINS/AWSEB+Deployment+Plugin How do I use this to deploy to multiple regions? I have a single EB app across several regions (I gave it the same env and application name in every region). Maybe I can call this as a step programatically

Re: jenkinsfile gdsl for intellij not working

2017-09-12 Thread red 888
OK so I created a brand new groovy project and added my files to it and now it seems be resolving jenkinsfile stuff, BUT it still doesn't like "pipeline" and is still saying it "cannot be applied to '(groovy.lang.Closure)' On Tuesday, September 12, 2017 at 8:51:33 PM UTC-4

jenkinsfile gdsl for intellij not working

2017-09-12 Thread red 888
followed the instructions and this article: https://st-g.de/2016/08/jenkins-pipeline-autocompletion-in-intellij But the dsl is not working. Made sure it was in src which I marked as a source root. I got the message to Activate Back in Intellij and clicked it but even after doing that for

XUnitPublisher display ALL tests including passed tests

2017-09-05 Thread red 888
This is how I'm using this plugin in my jenkinsfile to read MSTest trx files: > step([$class: 'WsCleanup']) step([$class : 'XUnitPublisher', > testTimeMargin: '3000', > thresholdMode: 1, > thresholds: [ > [$class: 'FailedThreshold', failureNewThreshold: '', >

Best way to get named parameter in a shared library function

2017-08-25 Thread red 888
I have this in my shared library in /vars/myLib.groovy: def call(Map args) { one = args.one two = args.two three = args.three somePlugin( someParam: one, otherParam: two, anotherParam: three ) } Then in my jenkinsfile I call it like this: myLib(

Re: Method names for getters/setters in pipeline shared libraries

2017-08-25 Thread red 888
quot; instead. > > On Fri, Aug 25, 2017 at 10:33 AM, red 888 <fakemai...@gmail.com > > wrote: > > Im not sure if this is a groovy thing or a jenkins shared library DSL > thing > > but I don't understand how this automatic getter setter stuff works. > > &g

Method names for getters/setters in pipeline shared libraries

2017-08-25 Thread red 888
Im not sure if this is a groovy thing or a jenkins shared library DSL thing but I don't understand how this automatic getter setter stuff works. I have this shared lib: /vars/myFunc.groovy I have this in it: def getDerp() { return something } def getHerp() { return something } Now in my

How to safe guard against broken jenkinsfiles causing pipelines to run indefinitely?

2017-08-25 Thread red 888
I have my repo getting polled every 5 mins. But I found that if the jenkinsfile is totally broken the pipeline will fail with "This stage has no steps". Then every 5 mins it will retry it and keep failing. How do I safe guard against this? Can I set a threshold somewhere so if this happens it

Re: Jenkins shared library for pipelines “No such property”

2017-08-25 Thread red 888
, Mark Waite wrote: > > Maybe you need a "return this" at the end of the groovy file (as in > https://github.com/docker/jenkins-pipeline-scripts/blob/master/src/com/docker/utilities/AWSSync.groovy > )? > > On Fri, Aug 25, 2017 at 9:08 AM red 888 <fakemai...@gmail.com &g

Jenkins shared library for pipelines “No such property”

2017-08-25 Thread red 888
Im trying to wrap my head around shared libraries (with descriptive not scripted pipelines) and I'm not sure how I should be doing this. Right now I have this in my jenkinsfile: def Storeinvar = powershell ( script: '$PSVersionTable.PSVersion.major', returnStdout: true) So I'm

Re: Why do some plugins/classes not show up in the Pipeline Syntax snippet generator?

2017-08-20 Thread red 888
So I'm dumb I can see the xunit plugin under the "step: General Build Step". Still confused why some plugins use this and some don't. For example cleanWs doesn't use step but wsCleanup does and they seem to do the exact same thing? On Sunday, August 20, 2017 at 1:00:00 PM UTC-4, red

Why do some plugins/classes not show up in the Pipeline Syntax snippet generator?

2017-08-20 Thread red 888
I noticed the xunit plugin and wscleanup don't appear in the Sample Step drop down of the snippet generator. This is how I use them in my jenkinsfile: step([$class: 'WsCleanup']) step([$class : 'XUnitPublisher', > testTimeMargin: '3000', > thresholdMode: 1, > thresholds: [ >

How do I organize stuff in blueocean- views? folders?

2017-08-18 Thread red 888
Right now my blueocean is just a big list of ALL my projects on the same page, how do I organize them? I'd like to have different tabs or something to break them up by team at least. I haven't seen any examples of how to do this. In old jenkins there are folders and views for this. -- You

Re: jenkins pipeline post actions not working

2017-08-17 Thread red 888
, if not already possibly filed/planned. > > Le 16 août 2017 19:54, "red 888" <fakemai...@gmail.com > a > écrit : > >> I setup a post action like in the examples: >> >> >> pipeline { >> agent any >> stages

Re: Does anyone know if the MSTest plugin supports pipelines and howto use it in a pipeline (jenkinsfile)?

2017-08-17 Thread red 888
Yes the xunit plugin is great! thats what I'm using now. As you say I still use an MS test runner exe which generates a trx and then point the xunit plugin to that report and it does everything else. On Wednesday, August 16, 2017 at 8:31:39 AM UTC-4, Daniel Butler wrote: > > The XUnit plugin

How do I get the name of the pipeline from inside the jenkinsfile

2017-08-17 Thread red 888
*env.JOB_NAME* Is the pipeline name suffixed with the branch name. So *env.JOB_NAME* will be _ How can I just get the pipeline name and store it in a var in the environment{} block at the top of my jenkinsfile to use through the file? I don't want to resort to scripted pipeline just the

Re: jenkins pipeline post actions not working

2017-08-16 Thread red 888
So if I look at it from old jenkins view I can actually see it under the "Stage View" as "Declarative: Post Actions". But how do I view the Declarative: Post Actions in Blue Ocean? On Wednesday, August 16, 2017 at 1:54:27 PM UTC-4, red 888 wrote: > > I setup a post a

jenkins pipeline post actions not working

2017-08-16 Thread red 888
I setup a post action like in the examples: pipeline { agent any stages { stage('Example1') { steps { bat 'return 1' } stage('Example2') { steps { echo 'Wont see this' }

What is the difference between step vs steps in jenkinsfile?

2017-08-16 Thread red 888
I'm trying to run xunit and I keep seeing examples with only "step" like this: step([$class : 'XUnitPublisher', testTimeMargin: '3000', thresholdMode: 1, thresholds: [ [$class: 'FailedThreshold', failureNewThreshold: '', failureThreshold: '', unstableNewThreshold: '',

Re: Does anyone know if the MSTest plugin supports pipelines and how to use it in a pipeline (jenkinsfile)?

2017-08-15 Thread red 888
source, it doesn't look like you can use mstest in > pipeline right now. It doesn't implement SimpleBuildStep, so it relies on > AbstractBuild, which is not what pipeline jobs use as a base class for a > build. > > On Tue, Aug 15, 2017 at 8:12 AM red 888 <fakemai...@gmail.com > &

Does anyone know if the MSTest plugin supports pipelines and how to use it in a pipeline (jenkinsfile)?

2017-08-15 Thread red 888
I have my test runner configured and its generating a trx file, now I want to use the MSTest plugin to read it: https://wiki.jenkins.io/display/JENKINS/MSTest+Plugin But I don't know how to refer to it in a pipeline (Jenkinsfile). Does this plugin support jenkinsfile? Is there a way to use

Re: Can't install Jenkins plugins with the cli

2016-10-30 Thread red 888
eased any day now). > > > On 30.10.2016, at 03:48, red 888 <fakemai...@gmail.com > > wrote: > > > > Running Server 2012 R2, Jenkins ver. 2.19.1 > > > > > > > > Installed Jenkins via the Windows MSI > > > > > > >

Can't install Jenkins plugins with the cli

2016-10-29 Thread red 888
Running Server 2012 R2, Jenkins ver. 2.19.1 Installed Jenkins via the Windows MSI I can't seem to install plugins with the cli: & 'C:\Program Files (x86)\Jenkins\jre\bin\java.exe' -jar 'C:\Program Files (x86)\Jenkins\war\WEB-INF\jenkins-cli.jar' -s 'http://localhost:8080/' install-plugin

Jenkins won't run Start-Job with Credential parameter

2016-09-11 Thread red 888
I pass in credentials to the script via the env injector (note this works for me with invoke-command) and try to run start-job but jenkins doesn't like it: $user = $ENV:user $pass = $ENV:pass write-output (cat env:username) write-output (cat env:user) write-output (cat env:pass) $pass =