Re: java.lang.NoSuchMethodError: No such DSL method 'pipeline' found among steps

2018-08-22 Thread 'Björn Pedersen' via Jenkins Users
Hi, > 2) Create it with Notepad++, choose UTF-8 encoding, save it and > commit/push to a Git branch; > And I guess that is where the byte-order mark slips in (thats something that happens mostly on Windows systems, and it's invisible in the file). Check

Re: Want to build Jenkins job every after 15 seconds

2018-08-22 Thread athavan
However, the build schedule cron in Jenkins can have a minimum value of 1 minute. As far as I know, it won't help for frequency less than a minute. On Thursday, August 23, 2018 at 12:15:55 AM UTC+5:30, Robert Rajendra wrote: > > Configure a build schedule in jenkins or set a cron under pol scm

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
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? On Wednesday, August 22, 2018 at 8:50:18 PM UTC-4, Jan Monterrubio wrote: > > The variables come from: >

Re: Jenkins K8s plugin - PodTemplate fails to create a Nodejs container

2018-08-22 Thread Jan Monterrubio
Does the container work on its own? Looks like you have this part in the container: "RUN apk add --no-cache --virtual .gyp \ python \ make \ g++ \ git \ && npm install --quit && npm cache clean --force \ && apk del .gyp" Which runs npm install On Wed, Aug 22, 2018 at 6:08 AM gil wrote: >

Re: Reg scanning for all branches in Multi branch pipeline

2018-08-22 Thread Jan Monterrubio
Could you use one of those PruneStaleBranches traits? https://github.com/jenkinsci/git-plugin/blob/dd2b84217cc967bf908c7f2c02beea27973cd884/src/main/java/hudson/plugins/git/extensions/impl/PruneStaleBranch.java > Or can we add any rule like scan only branches which has Jenkinsfile How would

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

2018-08-22 Thread Jan Monterrubio
The variables come from: https://wiki.jenkins.io/display/JENKINS/Building+a+software+project#Buildingasoftwareproject-belowJenkinsSetEnvironmentVariables , I believe what you have is BUILD_NUMBER. They're probably passed into the plugin. Would you be able to get the file located at

Re: java.lang.NoSuchMethodError: No such DSL method 'pipeline' found among steps

2018-08-22 Thread Jan Monterrubio
Do you have the jobdsl plugin installed? On Wed, Aug 22, 2018 at 13:45 Pablo Gandulfo wrote: > Hi Mr. Mark Waite, > > Maybe there is another issue related to this problem, related to countries > using latin encoding as standard (I'm from Brazil). > > I didn't use any special byte-order mark.

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: java.lang.NoSuchMethodError: No such DSL method 'pipeline' found among steps

2018-08-22 Thread Pablo Gandulfo
Hi Mr. Mark Waite, Maybe there is another issue related to this problem, related to countries using latin encoding as standard (I'm from Brazil). I didn't use any special byte-order mark. These are the steps needed to reproduce the error: 1) Choose a very simple jenkinsfile: pipeline {

Re: Want to build Jenkins job every after 15 seconds

2018-08-22 Thread Robert Rajendra
Configure a build schedule in jenkins or set a cron under pol scm to run the job On Wed, 22 Aug 2018, 5:22 pm , wrote: > You may run two Jenkins job with the same code .Say, a master and slave > job. Configure the "quiet period" as 15 seconds for both the jobs and Set > the Master job to build

Reg scanning for all branches in Multi branch pipeline

2018-08-22 Thread Satish Lvr
Hi, Greetings ! We are currently using Bitbucket + Jenkins. In our Bitbucket repo, we have around ~450 branches due to some old reasons. When we raise any Pull request, Jenkins automatically scanning all 450 branches which is taking time to finish build for Pull Request. This is happening for

Disable Scan Organization Button For Non-admin users

2018-08-22 Thread apeleg
Is it possible to disable the button? Occasionally a developer will press the button and as a result we will hit limits on our github api quota. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop

How to execute oracle sqlplus in jenkins pipeline??

2018-08-22 Thread 김용호
Hello, I really new to jenkins and I have a problem about sql query execution in jenkins pipeline. I want to execute sql query with oracle sqlplus in pipeline code and query string is in a test.sql file(parameter). I'm not using SQLPlus plugin and only use pipeline. How can I do this? And

Re: Want to build Jenkins job every after 15 seconds

2018-08-22 Thread athavan
You may run two Jenkins job with the same code .Say, a master and slave job. Configure the "quiet period" as 15 seconds for both the jobs and Set the Master job to build after slave and Slave job to build after Master using the Build Trigger setings. Now start the Master job. Both the jobs

Re: Jenkins K8s plugin - PodTemplate fails to create a Nodejs container

2018-08-22 Thread gil
Anyone? On Sunday, 12 August 2018 11:28:54 UTC+3, gil wrote: > > Trying to tun a podTemaplate with the following containerTemplate, we get > the following error: > > npm ERR! path /home/jenkins/package.json > npm ERR! code ENOENT > npm ERR! errno -2 > npm ERR! syscall open > npm ERR! enoent

Re: Getting cause for branch indexing in multibranch pipeline

2018-08-22 Thread Sverre Moe
import jenkins.branch.BranchIndexingCause final def jenkinsInstance = jenkins.model.Jenkins.getInstance() final def jenkinsProject = jenkinsInstance.getItemByFullName( jenkinsProjectName) if (jenkinsProject != null) { final def job = jenkinsProject.getAllJobs().first()