Re: How can i execute sql commands using jenkins

2017-01-23 Thread Sivakrishna Yarra
Thanks man.. I got it On Mon, Jan 23, 2017 at 8:39 PM, wrote: > If I remember well, the command return value is the fail/pass. So you may > want to craft your command to return non 0 and make the build fail when > something did not goes as planed. > > -- > You received this

[SOLVED] : Jenkins Pipeline build error: Failed to prepare configFileProvider step

2017-01-23 Thread Ramanathan Muthaiah
On Monday, January 9, 2017 at 9:38:24 AM UTC+5:30, Ramanathan Muthaiah wrote: > > Hello All, > > Need help with pipeline build error in this setup: > > Jenkins v2.36 with standard pipeline plugins + configFileProvider plugin > > Here is the content of Jenkinsfile, pipeline script: > >

Re: [pipeline][slave][publishHtml] reportFiles wildcard problems

2017-01-23 Thread jerome
I guess I misinterpreted the thing, the reportFiles are only the start page or something like that for the wrapper to use. So there's no way to collect only specified files, I have to copy them into their own folder then publish them. -- You received this message because you are subscribed to

Re: Trigger job upon pull request merg into master.

2017-01-23 Thread Isaac Eliassi
Hi, I can't make master a protected branch, since I am promoting the version as part of the triggered job. Thanks for the idea anyway. On Monday, January 23, 2017 at 6:20:58 PM UTC+2, Indra Gunawan (ingunawa) wrote: > > Github does not differentiate between a merge or a push. You should >

Re: Trigger job upon pull request merg into master.

2017-01-23 Thread Isaac Eliassi
Hi, Thanks for the advice, I am not using pipeline, but I will try to wrapper job and implement your idea. I will post here a reply whether it worked. On Sunday, January 22, 2017 at 6:54:55 PM UTC+2, Mark Waite wrote: > > Interesting use case. > > If you're using a pipeline job, and don't mind

[pipeline][slave][publishHtml] reportFiles wildcard problems

2017-01-23 Thread jerome
Hi, I was using a script to archive a single html file into my pipeline. Now I have a master and a slave (master is Linux, slave is Windows) and I try to archive the same single file but I run into troubles where the reportFiles is taken like a * no matter what: publishHtml [allowMissing:

Re: Jenkins Configure not working after updating plugins

2017-01-23 Thread Daniel Beck
> On 23.01.2017, at 21:29, Cary Tsai wrote: > > It is fixed temporarily for now. > It is due to I have "-Dhudson.security.csrf.requestfield=crumb" in my > JAVA_ARGS. > The reason I had this is because I got the 'No valid crumb..." error and I > followed the fix at >

Re: Unable to Perform Maven Release build with Github on Jenkins 2.7.X

2017-01-23 Thread Mahendra
Evne the pom has the SNAPSHOT version in it On Tuesday, January 24, 2017 at 1:20:59 AM UTC+5:30, Mahendra wrote: > > Dont know why this error is coming because snapshot build is successful > before triggering the release build. Not sure where it is looking for > snapshot > > On Tuesday, January

Re: Unable to Perform Maven Release build with Github on Jenkins 2.7.X

2017-01-23 Thread Mahendra
Dont know why this error is coming because snapshot build is successful before triggering the release build. Not sure where it is looking for snapshot On Tuesday, January 24, 2017 at 12:35:18 AM UTC+5:30, Indra Gunawan (ingunawa) wrote: > > Look at the error “*You don't have a SNAPSHOT project

Re: Jenkins Configure not working after updating plugins

2017-01-23 Thread Indra Gunawan (ingunawa)
HI Cary, You need to give more detailed description about this. Which plugins did you upgrade? The clue is in the Jenkins log. -Indra From: on behalf of Cary Tsai Reply-To: "jenkinsci-users@googlegroups.com"

Jenkins Configure not working after updating plugins

2017-01-23 Thread Cary Tsai
Jenkins version: 2.32.1 It was working before I updating plugins. Now I cannot add post-build actions, string parameter, nor any "Add ..." under Configure page. For example click "Add post-build action" and select "execute a set of scripts" but nothing happens. What went wrong? Thanks in advance

Unable to Perform Maven Release build with Github on Jenkins 2.7.X

2017-01-23 Thread Mahendra
Hi All, I am trying to perform release build on github via Jenkins 2.7.2 is below two ways. Facing the differnet ERROR each time Case1; I am using maven relelease plugin (m2 plugin). My githbu authentication is ssh based authentication. the snapshot build is successful without any issue.

Re: Unable to Perform Maven Release build with Github on Jenkins 2.7.X

2017-01-23 Thread Indra Gunawan (ingunawa)
Look at the error “You don't have a SNAPSHOT project in the reactor projects list. -> [Help 1]” Your pom does not have SNAPSHOT version so nothing for release plugin to convert to release version. From: on behalf of Mahendra

Re: Pipeline: wildcard for branch name

2017-01-23 Thread Victor Martinez
Test property doesn't exist so, according to the doc: - https://jenkins.io/doc/pipeline/steps/git/#git-git -- branch is a string therefore you need to quote it otherwise it seems it's recognised as a property You can also try with the* generic scm step*, explained also in the same page Cheers

Jenkins: master/slave & distributed builds

2017-01-23 Thread Sharan Basappa
Hi All, I understand that Jenkins has a way to distribute build process. I would like to know how is it different from having one master node in Jenkins and then using that to launch the regular unix based jobs using a grid engine (like Sungrid etc.). I assume I can achieve the same thing. In

Pipeline: wildcard for branch name

2017-01-23 Thread Sharan Basappa
Hi, I am trying to create pipeline script such that it only a certain branches following a naming style are built. However, pipeline bails out when I use the wildcard. The code snippet is below: stage 'build' node { git url: 'git@hd1:testing', branch: test* sh "pwd" sh "cat simple.csh" sh

Re: @script runs with a different branch

2017-01-23 Thread Dave LeBlanc
After more googling, it appears it's a known issue with slashes in the branch name: https://issues.jenkins-ci.org/browse/JENKINS-37263 I've used the workaround described in the bug post, and that appears to have solved it for now. On Wednesday, 18 January 2017 09:18:44 UTC-8, Dave LeBlanc

Re: Post job migration, the build is failing.

2017-01-23 Thread Victor Martinez
https://issues.jenkins-ci.org/browse/JENKINS-40151 might explain that issue and how to get fixed by upgrading that plugin Cheers On Monday, 23 January 2017 14:59:12 UTC, Siddhesh Bhandarkar wrote: > > Hi, > > I have a job in the following sequence > > Job 1 > Job2 --|> Job 3 -> Job 4

Docker Hub Notification plugin

2017-01-23 Thread Christian Del Pino
Hello, Anyone have experience with the Cloudbees Docker Hub plugin: https://wiki.jenkins-ci.org/display/JENKINS/CloudBees+Docker+Hub+Notification I have been trying to get this to work in my environment with no luck. I keep getting errors on the Docker Hub side, but with no explanation as to

Re: Trigger job upon pull request merg into master.

2017-01-23 Thread Indra Gunawan (ingunawa)
Github does not differentiate between a merge or a push. You should disallow direct push to master by making master a protected branch. This way only Pull Request is allowed to be merged to master. From: on behalf of Isaac Eliassi

Is there a plugin to execute bash script in docker container

2017-01-23 Thread stanley . shen
Hello, all I am having some jobs need to be executed exclusive in one jenkins node, the block plugin helps in this case. But I am wondering if there is better solution, for example we can have docker container to execute such bash scripts. I had a look in jenkins plugin but it seems I didn't

Re: Unable to complete initial plugin setup for jenkins 2.32.1 LTS - firewall issue?

2017-01-23 Thread Flavio
Ok tranne a lot, So there's no way to tell Jenkins to use a specific list of mirrors. Best regards Flavio Il 22/gen/2017 15:32, "Daniel Beck" ha scritto: > > > On 22.01.2017, at 13:45, Flavio wrote: > > > > Could you point me to the jenkins URL

Merge before Build and push back to git origin

2017-01-23 Thread 'HaPe' via Jenkins Users
Hi, at present I have problems with merge before build and push back changes to origin. For better explanation: I use the Git Plugin. Involved are two branches: 1. Develop 2. ReleaseCandidate In my project (ReleaseCandidate) I want to build the ReleaseCandidate and before Build I want to

Multibranch and Subversion Externals

2017-01-23 Thread Kristian
Hi, I have a subversion repository, which at the moment looks like http://some/svn/repo |-- trunk When I add http://some/svn/repo to a Multibranch Pipeline Job, then normally when indexing the job would find my trunk path within the repo. But, my trunk path is an external with the same

Re: How can i execute sql commands using jenkins

2017-01-23 Thread jerome
If I remember well, the command return value is the fail/pass. So you may want to craft your command to return non 0 and make the build fail when something did not goes as planed. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To

Post job migration, the build is failing.

2017-01-23 Thread Siddhesh Bhandarkar
Hi, I have a job in the following sequence Job 1 > Job2 --|> Job 3 -> Job 4 Job 5 > Job6 --| Job 7 > Job8 --| I have migrated all the jobs from my old machine to new machine. The Job 3 uses a recursive fan In on Job 2, Job 6 and Job 8. However, after migrating to the new

Re: How can i execute sql commands using jenkins

2017-01-23 Thread Sivakrishna Yarra
I am using old way like i had copied the shell script file in to linux server. Through Jenkins job i am calling the shell script. On Mon, Jan 23, 2017 at 7:55 PM, wrote: > Are you running inside a pipeline script or the "old" way? > > pipeline:

Jenkins and Docker With Windows Containers

2017-01-23 Thread Andrew Gray
Hey, I am trying to use Docker Containers as build slaves for our Jenkins environment using the Docker Plugin. From Jenkins, I am able to provision a slave, and the docker container appears on my Jenkins Executor list, however it stays "offline". I appears like the the container is being

Re: How can i execute sql commands using jenkins

2017-01-23 Thread jerome
Are you running inside a pipeline script or the "old" way? pipeline: https://jenkins.io/doc/book/pipeline/ "old" way: https://goo.gl/images/uKcWFd If this is a new project, you may want to try the new pipeline, it will make thing more flexible. -- You received this message because you are

Build fails when there's no changes on SCM

2017-01-23 Thread Andre Silva
I've recently upgraded jenkins to 2.4.1 and now when I manually trigger a build and there's no changes on SCM (Mercurial), build fails with no other message... build log follows: Started by user [user] [EnvInject] - Loading node environment variables. Building in workspace [Job path]/[Job

Re: Jenkins with Bitbucket always timeouts

2017-01-23 Thread Mark Waite
Can you provide more details about the conditions that are different between the working and the failing cases? I'm not aware of a regression in that particular area between git client plugin 2.0.0 and git client plugin 2.2.1. Mark Waite On Mon, Jan 23, 2017 at 3:03 AM 张则昊

Re: How can i execute sql commands using jenkins

2017-01-23 Thread Sivakrishna Yarra
Hi Jerome, Thanks for the info. I have a *.sql file* which contains multiple set of queries. I will execute this *.sql* *file *by using shell script. For this script i had created a Jenkins Job. But How i will get to know from JenkinsCI if any exception has came ..? On Mon, Jan 23, 2017 at 7:18

Re: How can i execute sql commands using jenkins

2017-01-23 Thread jerome
Hi, you need to execute either a bat or sh command with the mysql binaray: https://dev.mysql.com/doc/refman/5.7/en/mysql.html You can either cat the command into a temporary file then pipe it to the command or have the scripts already prepared. Jerome -- You received this message because you

How can i execute sql commands using jenkins

2017-01-23 Thread Sivakrishna Yarra
Hi, I am using Jenkins as a CI. how can i execute sql statements by using jenkins tool. I am using Mysql is the database. Can you please help on this. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop

Shell Scripting Online Training

2017-01-23 Thread CSRCIND Online Training
Shell Scripting Online Training Get Online Training from CSRCIND at your flexible timings. Unix uses shells to accept commands given by the user, there are quite a few different shells available. The most commonly used shells are BSH, CSH and KSH, most of the other shells. A shell

readMavenPom, readProperties, readYaml - what about readXml in general?

2017-01-23 Thread Torsten Reinhard
Hi, the https://jenkins.io/doc/pipeline/steps/pipeline-utility-steps/ support several ways to read some common file types within the pipeline code: readProperties, readMavenPom, readYaml What is the recommended way to read *.xml files in general? Creating a @NonCPS method and using

Re: Jenkins with Bitbucket always timeouts

2017-01-23 Thread 张则昊
BTW, the workaround is use username:password style url. 在 2017年1月23日星期一 UTC+8下午5:49:21,张则昊写道: > > I believe this is a regression issue, I have two Jenkins server, one works > well with git-client v2.0.0 but another has the same issue with v2.2.1. > > 在 2017年1月23日星期一 UTC+8上午4:53:25,Bhavnik写道: >>

Re: Jenkins with Bitbucket always timeouts

2017-01-23 Thread 张则昊
I believe this is a regression issue, I have two Jenkins server, one works well with git-client v2.0.0 but another has the same issue with v2.2.1. 在 2017年1月23日星期一 UTC+8上午4:53:25,Bhavnik写道: > > Ah, TypoPlease read - The original problem with https and Git > timeouts (without JGit usage) is

Re: Under Jenkins SignTool Error "No certificates were found", works fine logged on as user

2017-01-23 Thread 'HaPe' via Jenkins Users
Hi Ed, at present I have the same problem like you with Jenkins and signing certificates. I use Certificate Token usb stick from GlobalSign. I get the same error message and the behavior is the same like you above described. (signing works fine when I send the command via Admin console,

Re: Git multi branch workflow with jenkins

2017-01-23 Thread suraj nayak
Guys, need your help. On Monday, 9 January 2017 12:18:49 UTC+5:30, suraj nayak wrote: > > Hello All, > > I am new to Jenkins and I want to implement continuous delivery pipeline. > > We are currently using git for version control and having following git > workflow model > > release (stable

Re: Jenkins master and slave workspace directory

2017-01-23 Thread lozhang
Once simple solution is after you job done, you copy back to master directory, which would be same path with the slave workspace. And then you can mark your configuration of job, "Restrict where this project can be run" to master . By this way, you can see the the workspace on master .