Affordable solution for Jenkins CI and build slaves in the cloud?

2017-08-09 Thread Eddie Sutton
I no longer want to deal with backup issues of our CI system. I have an ESXi server running on a Mac Mini hosting a Jenkins server and multiple build machines on a Synology NAS datastore targeting Android, iOS, Linux, macOS, and Linux. Any success stories or recommendations? Thanks in advance,

Re: curl upload with filename in variable

2017-08-09 Thread Curtis Kline
The file exists in the current working directory. This is a three-stage project with the agent declared at the global level. It's not running in a Docker container, simply on a Linux node. As a test, I included a step right before the one I mentioned: ls -l ${env.filename} The

Re: curl upload with filename in variable

2017-08-09 Thread Slide
Does the file exist in what would be considered the current working directory? Perhaps an ls before the curl to verify? On Wed, Aug 9, 2017 at 2:13 PM Curtis Kline wrote: > In my declarative pipeline Jenkinsfile, I have the following shell script > line: > > sh """ > curl

Re: Parameterized build driven by Jenkinsfile

2017-08-09 Thread R. Tyler Croy
(replies inline) On Wed, 02 Aug 2017, Craig Barr wrote: > In Jenkins you can select "This project is parameterized" and add > parameters. My question is simple: > Can this parameter metadata be populated by an alternative > version-controlled source? > > For example, can I define parameter

curl upload with filename in variable

2017-08-09 Thread Curtis Kline
In my declarative pipeline Jenkinsfile, I have the following shell script line: sh """ curl -F "status=2" -F "notify=1" -F "notes=${params.ReleaseNotes}" -F "ipa=@${env.filename}" -H "X-HockeyAppToken: 1234" https://rink.hockeyapp.net/api/2/apps/upload """ This does not work, because curl is

Jenkins 2.60.2 - testlink plugin: iterative build steps - addCustomFieldEnvironmentVariableName failed

2017-08-09 Thread W Jiang
Windows 10/Jenkins 2.60.2/Testlink 1.9 Testlink is able to found test cases from testlink with a few custom fields. Create build step - iterative build steps. The custom Fields from testlink would be created as environment variables during iterative steps. but it was always gave error: Wonder

Re: Parameterized build driven by Jenkinsfile

2017-08-09 Thread Jacob Larsen
Try this: properties([ parameters([ string(name: 'bld', defaultValue: 'full', description: ''), string(name: 'branch', defaultValue: 'dev', description: '') ]) ]) /Jacob On 2017-08-09 03:54, Craig Barr wrote: Thanks Jacob and Alex! Which version of Jenkins does this work for you on?

Jenkins EC2 multiple spot instances

2017-08-09 Thread York Sun
I need some help on Jenkins EC2 spot with multiple instances. I try to setup the cloud with C4x8, M4x10 and other types, hoping to catch the less expensive spot price. Sometimes c4x8 is cheaper and sometimes m4x10 is cheaper. However, I never see my m4x10 instance starts. It always waits for

Re: Dynamic closures called in parallel

2017-08-09 Thread 'Björn Pedersen' via Jenkins Users
Hi, your problem is actually addressed in the example. The closure is evalutated only during the parallel call. There $name is constant. Put a def xname = name inside your loop and use xname in the closures. (in the example it is the def index=i line). Björn Am Mittwoch, 9. August

Re: Dynamic closures called in parallel

2017-08-09 Thread Mirek S
Huh... Only now I noticed that my issue is mentioned in the pipeline parallel example. You can ignore this topic :) //the dummy parameter is for preventing mutation of the parameter before the execution of the closure.//we have to assign it outside the closure or it will run the job multiple

Dynamic closures called in parallel

2017-08-09 Thread Mirek S
Hi! I'm using the following Pipeline script: testruns = [:] for (name in ["one", "two", "three"]) { print("Adding ${name} to testruns") testruns[name] = { print("Staring phase ${name}"); sleep 10; print("Finished phase ${name}")} } pipeline { agent { label 'master' } stages {

Re: How to group and sort tests and run in parallel without Parallel Test Executor Plugin

2017-08-09 Thread Viacheslav Dubrovskyi
Hi Michael, We have list of tests which I would like run in parallel. The Parallel Test Executor Plugin doesn't work in our case, because we don't use junit and the list of tests (behatList) is result of script work. I can't run all tests on one node because it will take about 16 hours. So

Change context used in github status

2017-08-09 Thread Viacheslav Dubrovskyi
Hi All, I use 2 multibranch jobs from one repository and github-branch-source-plugin used for set build status in pull request. 2 jobs because we need to split it to regular and regression jobs. All jobs have PRs. And PR from every jobs set the same status in github PR. How can I change

Re: Help with NotSerializableException in pipeline

2017-08-09 Thread Viacheslav Dubrovskyi
Hi > Also is the suitesStat properly defined when declared? Yes. Also I check size of map in function. 07.08.2017 15:41, jer...@bodycad.com пишет: Maybe not relevent, but I would declare the function above/before the main stage. Maybe this won't change anything. Also is the suitesStat

Re: Help with NotSerializableException in pipeline

2017-08-09 Thread Viacheslav Dubrovskyi
Hi All, Thank you for answers. Finally I found correct way. Only map.sort was necessary move under @NonCPS function. My work pipeline looks: def behatList =['AutoSuiteSet_0', 'AutoSuiteSet_1', 'AutoSuiteSet_2', 'AutoSuiteSet_3', 'AutoSuiteSet_4', 'AutoSuiteSet_5'] def

Parsing POM take a long time after rename Jenkins slave name

2017-08-09 Thread tiendungitd
In jenkins, when I go to manage node, and rename a slave node like server8.1 to server 8.2, still the same server, then I try to build, the job build take a lot of time at parsing POM step, around 6-8mins, even I already build this job before with slave name server 8.1, it's mean this server slave

The format of key of containerEnvVar within Jenkins Kubernetes Plugin

2017-08-09 Thread WANG, YAN-HONG
Hello, I am Hong. I saw "*containerEnvVar*" was supported by Jenkins *Kubernetes* Plugin 0.9. But, it seems not support some key value with *dot*? Example in *containerTemplate*: *containerEnvVar*( key: “*data.source.url*”, value: “somewhere” ) I tried to use *backslash *to escape *dot*, but