Allow a build to be triggered only by a Pipeline

2018-12-17 Thread Mark Bidewell
Is there a way to allow users to only build a job as part of an upstream / downstream dependency while disallowing direct execution? Thanks! -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving

Re: Windows Agent As a Service

2018-10-15 Thread Mark Bidewell
aite > > On Mon, Oct 15, 2018 at 2:18 PM Mark Bidewell > wrote: > >> With Java Web Start deprecated and slated for removal, what is the >> canonical way to create a Windows Service agent? >> >> Thanks! >> >> -- >> You received this message bec

Windows Agent As a Service

2018-10-15 Thread Mark Bidewell
With Java Web Start deprecated and slated for removal, what is the canonical way to create a Windows Service agent? Thanks! -- 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,

Migrating to Configuration as Code

2018-09-18 Thread Mark Bidewell
Will there be a pathway to migrate from normal Jenkins configuration to Configuration as Code, or will server configuration need to be rewritten from scratch? -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and

Rewriting of Config.xml

2018-03-10 Thread Mark Bidewell
I recently upgraded my companies Jenkins Server from 2.73.3 to 2.89.4. I also removed some plugins (which I thought did not affect configuration). Upon restarting, My view configuration was largely deleted as well as my globally defined variables. Restoring config.xml from backup and

Jenkins Agent Dies on Build Failure

2018-01-25 Thread Mark Bidewell
I have a Windows 7 build slave where I am running the java agent using java -jar slave.jar ... There is an Ant build that runs on that slave doing selenium testing. If that Ant build step fails the slave agent immediately dies. If I launch the agent GUI using the Launch button, the agent

Re: Loading scripts from Workflow resources

2017-01-10 Thread Mark Bidewell
are checked out? On Tuesday, January 10, 2017 at 10:06:07 AM UTC-5, Ramanathan Muthaiah wrote: > > > > On Tuesday, January 10, 2017 at 7:08:01 PM UTC+5:30, Mark Bidewell wrote: >> >> I am looking at the external libraries capabilities of Jenkins Workflow. >> Ou

Loading scripts from Workflow resources

2017-01-10 Thread Mark Bidewell
I am looking at the external libraries capabilities of Jenkins Workflow. Our workflow uses python scripts for portions of the build process. Can this scripts be stored as resources and a path to them retrieved via workflow? Right now the scripts are in a directory on the server not under

Re: What is "slave Java"

2016-11-18 Thread Mark Bidewell
In short, Jenkins after a certain point Uses Java 1.7+. It appears you are using the Maven project type. This project type injects Jenkins behaviors into the Maven build. These behaviors must run with Java 1.7+. The error you are getting is to to Jenkins attempting to use its behaviors with

Re: Email ext to send html body in Pipeline

2016-10-11 Thread Mark Bidewell
Support for templates was added in 2.50 if that helps. On Monday, October 10, 2016 at 1:21:28 AM UTC-4, Sam K wrote: > > This works for most part. Except, I have a html formatted file which I > would like to send as the body. Is it possible? Thanks > > emailext attachmentsPattern: '*.log,

Re: How to limited user to certain jobs

2016-10-05 Thread Mark Bidewell
The Role Strategy plugin might be more what you are looking for for Access Control https://wiki.jenkins-ci.org/display/JENKINS/Role+Strategy+Plugin On Wednesday, October 5, 2016 at 5:27:43 AM UTC-4, stanle...@servicemax.com wrote: > > Hello, all > > I am trying to limited some user to access

Pipeline currentBuild object documention

2016-09-29 Thread Mark Bidewell
Is there any documentation on what build properties are exposed by the currentBuild object? Thanks -- 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

Re: Using the git command with credentials form a pipeline

2016-09-17 Thread Mark Bidewell
I don't know if this helps or not but to use cmd line git in pipeline, I use the SSH Agent plugin along with SSH key authentication. On Friday, September 16, 2016 at 4:34:17 PM UTC-4, Nathan Hüsken wrote: > > Hi, > > I am trying to use git from a pipeline. For this I want to invoke git >

Re: Adding “Perform Maven Release” option from Jenkinsfile

2016-09-17 Thread Mark Bidewell
I'm not using a Jenkinsfile, but the solution I arrived at was to have a boolean "Release" build parameter. When checked, this parameter would skip the normal CI SNAPSHOT build and initiate a release. My stages when Source Checkout -> SNAPSHOT Build -> Stage Release -> Release Build The

MissingMethodException when Calling Global Libary Functions

2016-07-14 Thread Mark Bidewell
I have created a Jira for this but in case anyone else has seen this, I figured I would ask here. I have global functions for certain tasks created using the directions here: https://github.com/jenkinsci/workflow-cps-global-lib-plugin/blob/master/README.md They have been working correctly, but

Re: Restartable Pipeline stages

2016-06-15 Thread Mark Bidewell
Just did. https://issues.jenkins-ci.org/browse/JENKINS-35989 On Tuesday, June 14, 2016 at 11:42:49 PM UTC-4, Rikesh Dhokia wrote: > > I too am looking for functionality like this. @Mark, did you create a > relevant JIRA issue for this? > > > > On Tuesday, 3 May 2016

Re: Deploy Mule application

2016-06-08 Thread Mark Bidewell
What my company wound up doing was creating an internal application that used the MMC REST API to deploy the artifact. For jenkins deployments we made our own maven plugin which is called in its own job. On Tuesday, June 7, 2016 at 9:16:22 PM UTC-4, GBANE FETIGUE wrote: > > > Hi FOLKS , > >

Script Security and Jenkinsfile

2016-05-09 Thread Mark Bidewell
I am trying to write a Jenkinsfile for a project. The script security plugin is becoming a real pain. It seems the only way to add methods and operations is to run the job repeatedly failing each time and manually approve each failure. Needless to say this is a time-consuming process for

Restartable Pipeline stages

2016-05-02 Thread Mark Bidewell
Is there a way to implement a restartable stage that could be manually restarted? Often in Pipeline examples I see something like: - "Deploy" -> "Deploy Again" ->"Deploy Yet Again" It seems like this could be combined into a single step that could be reexecuted. Is this possible? --

Re: Are jelly templates supported in email-ext with pipeline

2016-04-21 Thread Mark Bidewell
Is support planed for a future release? On Saturday, April 16, 2016 at 2:16:35 PM UTC-4, slide wrote: > > No, this is not currently supported. Token macro, which is the basis for > the SCRIPT token doesn't currently support the type of object that pipeline > uses. > > On Tue, Feb 9, 2016 at

Releasing Gitflow Projects with Jenkins

2016-03-28 Thread Mark Bidewell
I know this has been brought up at least once before several years ago, but with time and the advent of Pipeline, I am wondering if best practices have changed. I am looking at automating releasing of Gitflow projects. Most of our projects have been stored in Subversion and we use the Maven

Best Practices with LTS Updates

2016-03-14 Thread Mark Bidewell
I am managing the Jenkins Server for my company. Recently, we moved from 1.609.3 to 1.625.3. I noticed however that the Required Core Dependencies for Pipe line skipped 1.625.x and went from 1.609.1 to 1.642.1. What are the best practices for selecting LTS versions to update? Would an

Is there any way for an Administrator to view a job as Non-Admin

2016-02-16 Thread Mark Bidewell
Is there any way for an Administrator to view a job as Non-Admin? This would be helpful when testing roles and permissions. Thanks -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails

Quiet Period and Build Now

2016-02-01 Thread Mark Bidewell
Is there a way to assign a quiet period in Jenkins such that it only affects automatic builds and build triggers, but "Build Now" requests still happen without delay? -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this

Workflows and SCM Polling

2015-12-21 Thread Mark Bidewell
I am considering Workflows to automate build and release. Can a workflow be called in a CI polling manner? There is a "Poll SCM" build trigger but nowhere to input SCM details. What I would like to do is the following: 1) On SCM change execute a CI build. 2) Between stages prompt for

Re: Forking a process in Workflow

2015-12-03 Thread Mark Bidewell
In case anyone sees this, I will post my workaround. 1) use writeFile to write the command-line to a file 2) create a script that reads the file, and does a fork-exec using the file contents as a command-line. On Monday, November 30, 2015 at 8:34:48 PM UTC-5, Mark Bidewell wrote: > > I am

Re: Provide LTS 1.609.4 with security updates from 1.625.2 ?

2015-11-30 Thread Mark Bidewell
We are in a similar position and another option (while exploring migration away from the Maven type) is that, while Maven itself must run JDK 7+, it can fork to a lower JDK. This forking is handled by Jenkins automatically and coiuld serve as a stopgap. On Tuesday, November 24, 2015 at

Forking a process in Workflow

2015-11-30 Thread Mark Bidewell
I am using Workflow to automate the Maven Release Plugin. Since Maven is not directly supported via workflow, I use the sh step to call Maven. One of the parameters this plugin takes is the password to use for checkins, however if passwords contain special characters, the "sh" step will fail

Workflow and executor use

2015-11-18 Thread Mark Bidewell
When running my workflows, an executor stays allocated for the duration of the workflow. As I consider the possibility of complex flows that include pauses for things like QA approval, it seems likely that I will run out of executors. Are there ways in workflow to release the executor while

Future of the Maven Project Type

2015-11-17 Thread Mark Bidewell
In my current position, I inherited a Jenkins server that makes heavy use of the Maven Project Type and M2 Release Plugin. As Jenkins is moving forward, I am now understanding why many people do not like that project type due to the shims needed to support Java 6 builds. What is the future of

Re: Future of the Maven Project Type

2015-11-17 Thread Mark Bidewell
s a solution but for now it doesn't cover all > integrations with plugins (contributions are welcome) and thus it may be > blocker depending of the current usage you have of it > Arnaud > > On Tue, Nov 17, 2015 at 1:43 PM, Mark Bidewell <mbid...@gmail.com > > wrote: > >

Re: Future of the Maven Project Type

2015-11-17 Thread Mark Bidewell
t one from now as >>> you may have a large part of maven job types features but you'll need some >>> manual configuration. >>> Using the workflow is a solution but for now it doesn't cover all >>> integrations with plugins (contributions are welcome) and thus it may b

Re: Jenkins pre-build check of pom.xml

2015-11-17 Thread Mark Bidewell
We do something similar to validate the connections section of a pom. We use an ant script to do the validation. On Tuesday, November 17, 2015 at 12:22:20 PM UTC-5, Andreas G. wrote: > > Hi guys, > > completely new to Jenkins and need help with a super simple thing. > > In my setup I would

Using Jenkins to Vet New Build Environment

2015-05-08 Thread Mark Bidewell
I am thinking about how to begin moving some projects on old JDKs to supported JDKs. I was wondering if there was a to run a build with normal settings, but then run a report-only (no artifact retention) build with a newer build environment to capture any compile or behavioral changes.