Error at managing Jenkins

2017-09-04 Thread Ana MB
Hi guys, I have this error when I try to manage Jenkins... How could I solve it? I've read that this is because of the Java version of the server?? Is that

Re: Send mail from Jenkins with attach conditioned file

2017-09-04 Thread Ana MB
Yeah, I corrected it, but that wasn't the problem... it's still not working... even a "echo" command... I don't know why Thanks anyway.. El lunes, 4 de septiembre de 2017, 13:54:05 (UTC+2), Daniel Butler escribió: > > Looking at the bracket positions in your log snippet, it looks like there

Re: help with kubernetes jenkins plugin setup

2017-09-04 Thread Alex B
This worked. Thanks On Monday, September 4, 2017 at 10:25:37 AM UTC-5, Carlos Sanchez wrote: > > > > On Mon, Sep 4, 2017 at 4:57 PM, Alex B > > wrote: > >> I am trying to setup Jenkins to use Kubernetes for build agents on Azure. >> Right now I have an instance of Jenkins running in a VM and an

Re: Publish over CIFS configuration

2017-09-04 Thread Slide
I have uploaded a version of the plugin to https://earl-of-code.com/publish-over-cifs.hpi that should give the whole stack trace for the error when using the check connection. Please let me know the full exception message and I'll see what I can find in the code. On Sat, Sep 2, 2017 at 12:02 PM Sl

Re: "Scan Multibranch Pipeline Now" triggers immediate build

2017-09-04 Thread Stephen Connolly
https://github.com/jenkinsci/cloudbees-folder-plugin/blob/master/src/main/java/com/cloudbees/hudson/plugins/folder/computed/PeriodicFolderTrigger.java#L91-L109 The crontab is just controlling how often it checks... it will only schedule an index on one of those checks if the interval since the las

Re: How can I tail the console output for a failed pipeline build?

2017-09-04 Thread Dallas Clement
I've done all that. What I want is to extract the last portion of the actual console output for a build that has failed so that I can embed it in the body of an email notification to indicate where the build has failed. I'm trying to avoid attaching the whole build log. I've been able to loc

Re: help with kubernetes jenkins plugin setup

2017-09-04 Thread Carlos Sanchez
On Mon, Sep 4, 2017 at 4:57 PM, Alex B wrote: > I am trying to setup Jenkins to use Kubernetes for build agents on Azure. > Right now I have an instance of Jenkins running in a VM and an instance of > Kubernetes setup in Azure using Azure container service. > > My Jenkins instance is working and

help with kubernetes jenkins plugin setup

2017-09-04 Thread Alex B
I am trying to setup Jenkins to use Kubernetes for build agents on Azure. Right now I have an instance of Jenkins running in a VM and an instance of Kubernetes setup in Azure using Azure container service. My Jenkins instance is working and Kubernetes is working. I've installed the kubernetes p

Re: "Scan Multibranch Pipeline Now" triggers immediate build

2017-09-04 Thread Steven Foster
On Thursday, August 31, 2017 at 5:55:27 PM UTC+1, Stephen Connolly wrote: > > > Periodic randomly levels all jobs > The specs on my 30m interval jobs are all H/2 * * * *, doesn't this mean every 2 minutes rather than every 30 minutes which would be H/30 * * * *? Or is the internal system differ

RE: Multiple commands

2017-09-04 Thread Daniel Butler
Remove the starting and finishing triple quote marks (they’re only needed in a pipeline script) Note you’ll need to provide the username and password as part of the command line to MySQL; you’re best to use the Credentials Binding plugin and use a ‘Username and Password (Separated)’ binding. Th

Re: Multiple commands

2017-09-04 Thread harvey
Hi Daniel, Thank you for your reply. I am using a freestyle job and unfortunately the script didnot work in my case: I choosed execute windows batch command and typed the following: """ cd c:\ \mysql --username --password -e "DROP DATABASE xyz; CREATE DATABASE xyz;" """ Is there someth

RE: Send mail from Jenkins with attach conditioned file

2017-09-04 Thread Daniel Butler
Looking at the bracket positions in your log snippet, it looks like there could be a trailing space or two after the file name in the File text box. Make sure there’s no extra spaces around the file name as that could be messing it up. Regards, Daniel. From: Ana MB Sent: 04 September 2017 12:37

RE: Multiple commands

2017-09-04 Thread Daniel Butler
Are you using freestyle jobs or pipeline? With Pipeline: When you use a bat/sh step you’re providing a batch or shell script rather than virtual input into a console. In your case you’d need to do something like: bat """ cd c:\... ...\mysql --user %user% --password %password% -e "DROP DATABASE

Re: Send mail from Jenkins with attach conditioned file

2017-09-04 Thread Ana MB
I don't understand what could be happening... any ideas? Thanks so much! El lunes, 4 de septiembre de 2017, 12:13:47 (UTC+2), Ana MB escribió: > > I've jus

Re: How can I tail the console output for a failed pipeline build?

2017-09-04 Thread xwyxw
Blueoncean, split your script in functions and stages and you will get a good understanding of what is actually happening on every stage (clone, build, fail, etc). Also using groovy and try/catch will help too On Friday, September 1, 2017 at 2:25:05 AM UTC+10, Dallas Clement wrote: > > I am wo

Re: How execute parallel tests

2017-09-04 Thread xwyxw
Use Pipelines it will give you : More flexibility, groovy scripting as well as parallel capabilities. On Monday, September 4, 2017 at 4:57:11 PM UTC+10, Ana MB wrote: > > Hi guys! > > Any idea about this issue? I don't find solution... > > Thanks so much!! > > > El viernes, 1 de septiembre de

Multiple commands

2017-09-04 Thread harvey
Hi, I am a new user to Jenkins. I just started working with Jenkins. I am learning to automate using Jenkins. But I dont find like how to pass two commands? For example, if I need to run a database creation using MySQL I should do the following: cd c:\...\MySQL 5.5 server\bin\mysql.exe passwor

Multiple repository with git parameter plugin

2017-09-04 Thread stefanocog
Hi, i need get list of branch of two repository, i install git parameter plugin and i've set the two repo into SCM section but i get always branch list from the same repository for first, second i get "No GIT repository configured in SCM configuration" attach image: image_1: git parameter plugi

No such DSL method 'waitForQualityGate' found among steps

2017-09-04 Thread Michal Propílek
I have problem with method waitForQualityGate(). I got an error "No such DSL method 'waitForQualityGate' found among steps". Another strange thing is that I must use parameter -DXfor sonarscanner. I don't know what is wrong. Thanks for help. pipeline { agent { label 'builders' } tools { ma

Re: Using variables in a declarative pipeline

2017-09-04 Thread Chris Packham
On Mon, Sep 4, 2017 at 8:22 PM, Chris Packham wrote: > Hi, > > I've got a declarative pipeline with parallel builds that works but > I'd like to avoid some repetition. > > Here's the gist of my pipeline > > pipeline { > stages { > stage('Build') { > parallel ( > "

Re: Send mail from Jenkins with attach conditioned file

2017-09-04 Thread Ana MB
I've just noticed that if I put only in Command Shell: * echo "HELLO"* Neither it happens nothing... why doesn't it run?? Thanks El lunes, 4 de septiembre de 2017, 10:36:49 (UTC+2), Ana MB escribió: > > Hi guys! > > I've tried with the following: > > >

Get selenium grid url

2017-09-04 Thread Vitalii Ishchenko
Good day I know that after installation of Jenkins Selenium plugin url is displayed on /selenium/ page, but I don't want to put this value in tests and instead would like to pass it as environment variable. I was not able to find existing env variable that holds this value, but maybe there is a

Send mail with attach conditioned file

2017-09-04 Thread Ana Isabel Martín
HI guys! Firstly, I'm very new with Jenkins and maybe this is a dumn question, sorry if it is... I use Conditional Steps Plugin in Jenkins to send mail when a file exists. I've tried with the following: And too, with the following commands: 1. sendmail amar...@bufetedemarketing.com < **/f

Performance Plugin: Could't find a report specified in the performance constraints!

2017-09-04 Thread Ganesh Muralidhar
Hi - Even after mentioning filename in the Related Report section of 'Expert Mode' in Performance Plugin, I am seeing an error saying - Couldn't find file. Can anyone please advice? Please find attachment for configuration and error message Thanks Ganesh.N -- You received this message becaus

Performance Plugin - NPE - Expert Mode

2017-09-04 Thread Ganesh Muralidhar
Hi, I am trying to use ${BUILD_NUMBER} in the results file name and specifying the file name under 'Related report' section of 'Expert mode' in Performance Plugin. My results are in a JTL file (CSV format inside). I am getting a NullPointerException when executing the build. To my surpri

Re: Send mail from Jenkins with attach conditioned file

2017-09-04 Thread Ana MB
Hi guys! I've tried with the following: But I get the following Console Output from Jenkins: [File exists] check if file exists [test_resultados_miniprueba.c

Using variables in a declarative pipeline

2017-09-04 Thread Chris Packham
Hi, I've got a declarative pipeline with parallel builds that works but I'd like to avoid some repetition. Here's the gist of my pipeline pipeline { stages { stage('Build') { parallel ( "target1": { node ('maker') { sh 'make target1

Re: Send mail from Jenkins with attach conditioned file

2017-09-04 Thread Ana MB
Hi! I've tried with: But I get the following Console Output from Jenkins: [File exists] check if file exists [test_resultados_miniprueba.csv ] Run cond

Advice wanted on multibranch declarative script for Subversion project

2017-09-04 Thread David Aldrich
Hi I want to write a multibranch declarative script for a project stored in Subversion. I have already done this for another project (which worked) but this new one has the complication that the repo uses externals. Unfortunately the multibranch pipeline GUI screen does not offer the option t

Blue Ocean Repository permissions within Jenkins Github organization: can't seem to edit

2017-09-04 Thread Nelson Liu
Hi! I've been trying out BlueOcean for managing my CI projects---it's great! I'm able to create a new pipeline and specify that I want to pull code from a repo in my Github organization, and the builds run beautifully. However, it doesn't seem like I (as an administrator user on the Jenkins inst

Re: Send mail from Jenkins with attach conditioned file

2017-09-04 Thread Ana MB
Hi Richard, I installed that plugin "any build step", but I don't know what I have to configure in Jenkins Configuration: Is there any tutorial about this top