Tracking Jenkinsfiles (pipeline) changes

2017-11-20 Thread Thiago Carvalho Davila
Hello, I know, for freestyle jobs, jenkins offers a visualization tool to see what has changed in the configuration between executions. Is there any analogue functionality when you are using pipeline as code (ie. Jenkinsfile)? If not, is it on the roadmap? Thanks, Thiago D'Ávila - "Est

All pipelines broke after pipeline plugin update

2017-09-28 Thread Thiago Carvalho Davila
Hi, I've updated my pipeline plugins and jenkins to current LTS 2.73.1 and I started getting the error: Here is my declarative pipeline template: PathToTestFiles="tests\\Testfile" pipeline { stages { // ... build stages here stage('Unit Tests') { when { expression { fileExists Path

Re: Bug on declarative checkout on Git / Windows path?

2017-09-27 Thread Thiago Carvalho Davila
hich is performed by declarative pipeline. Refer to "skipDefaultCheckout" in the pipeline syntax reference [ https://jenkins.io/doc/book/pipeline/syntax/ | https://jenkins.io/doc/book/pipeline/syntax/ ] On Tue, Sep 26, 2017 at 8:06 AM Thiago Carvalho Davila < [ mailto:thiago.

Bug on declarative checkout on Git / Windows path?

2017-09-26 Thread Thiago Carvalho Davila
Hello, I have a linux jenkins-master 2.60.3 that is downloading my jenkinsfile in a git project. I've used the snippet generator to make a checkout set from git as follows: pipeline { agent { label 'windows_slave' } stages { stage('Checkout') { steps { checkout([$class: 'GitSCM', branc

Re: Does docker-slaves-plugin with pipeline assume Linux?

2017-08-11 Thread Thiago Carvalho Davila
That is very sad.. I have slaves for windows and linux, and I was begining a migration of my machine slaves to containers =( Is there a JIRA feature created for that cause? Em 11/08/2017 04:52:49, Geoff Bache escreveu: > OK, I think we can conclude from my evidence that it doesn't yet work on

Re: Jenkins Distributed Builds: Project-Based Matrix Authorization Strategy

2017-07-17 Thread Thiago Carvalho Davila
That should be a very good feature. Is it planned for Blue Ocean 1.2? Em 17/07/2017 14:17:40, Daniel Beck escreveu: > > On 11. Jul 2017, at 19:24, Jason LeMauk > wrote: > > As far as using a project-based matrix authorization strategy, I envision the > permissions working like so: > 1. Global A

Change build status when input step aborted

2017-07-10 Thread Thiago Carvalho Davila
Hello, I want to set the status in my declarative pipeline to success if the input step is aborted OR reached it's timeout. steps {     timeout(time: 30, unit: 'MINUTES') {     input(id: 'userInput', message: 'Promote build?')     } } If I don't promote the build or it expires 30 minutes o

Re: Publish over FTP on Jenkins Pipeline?

2017-06-27 Thread Thiago Carvalho Davila
secure. I think it's withCredentials. I would check into that.> > > > On Thu, Jun 22, 2017, 08:00 Thiago Carvalho Davila <> > > > thiago.dav...@serpro.gov.br> > > wrote: > > > I've thought about that, but I would need an input step to get the use

Re: Publish over FTP on Jenkins Pipeline?

2017-06-22 Thread Thiago Carvalho Davila
ly of plugins don't support > > > pipeline, they need to have some work done to support it. > > > > > > On Wed, Jun 21, 2017 at 11:26 AM Thiago Carvalho Davila <> > > > > > thiago.dav...@serpro.gov.br> > > > wrote: > > >

Re: Publish over FTP on Jenkins Pipeline?

2017-06-22 Thread Thiago Carvalho Davila
Any workaround or plugin that does FTP transfer in Jenkins Pipeline? Em 21/06/2017 16:24:50, Slide escreveu: > I know for sure that the Publish Over family of plugins don't support > pipeline, they need to have some work done to support it. > > On Wed, Jun 21, 2017 at 11:26 A

Publish over FTP on Jenkins Pipeline?

2017-06-21 Thread Thiago Carvalho Davila
Hello, I've been using this Publish Over FTP plugin for some time (https://github.com/jenkinsci/publish-over-ftp-plugin​). And I want to know if there is compatibility to doing that using jenkins pipeline for a declarative pipeline or does it has some other plugin with that feature. Thanks in

Re: Creating new account at issues.jenkins-ci.org

2017-06-06 Thread Thiago Carvalho Davila
Same problem here. Em 05/06/2017 03:55:13, Mirek S escreveu: > Hello! > > When trying to create account at > issues.jenkins-ci.org> (i.e. > > accounts.jenkins.io> ) one needs to send an email to jenkinsci-accounts > google group. I sent my "additional verification" twice and received no > rep

Lightweight checkout not supported for IBM Rational Team Concert

2017-05-31 Thread Thiago Carvalho Davila
Hello, I am having a big problem using Jenkins Pipeline. My projects are stored in RTC 5.0.2 SCM and the master instance of Jenkins are downloading the whole workspace to get the Jenkinsfile. In the log I get: Lightweight checkout support not available, falling back to full checkout. Is there

Re: env.WORKSPACE returns null on pipeline

2017-05-23 Thread Thiago Carvalho Davila
aster. Only when you are within scope > of an actual agent node will the workspace have been assigned, so the example > you are doing will be expected to return null as you are outside the pipeline > {} entirely > > On 22 May 2017 at 07:56, Thiago Carvalho Davila > <&g

env.WORKSPACE returns null on pipeline

2017-05-22 Thread Thiago Carvalho Davila
Hi, I am trying to get WORKSPACE folder from jenkins global enviroment variables. The strange thing is I get null on the response: PATH_CI_TOOLS="${env.WORKSPACE}\\tools_ci" pipeline {     stages {     stage('Test'){     steps{     bat "${PATH_CI_TOOLS}\\MyProject.exe"  

fileExists on declarative pipeline

2017-05-22 Thread Thiago Carvalho Davila
Hello, I want to run unit tests only if file exists on declarative pipeline. I made a mix of scripted/declarative pipeline of what I want, but this doesn't work:     stage('Unit Tests'){     steps {         // Se arquivo de testes existe, roda testes         if (fileE

Re: Pipeline conversion of MSTest to JUnit using XUnit

2017-05-17 Thread Thiago Carvalho Davila
I didn't see xUnit option in snippet generator. Em 17/05/2017 13:53:30, Slide escreveu: > Have you tried using the snippet generator? > > On Wed, May 17, 2017 at 7:59 AM Thiago Carvalho Davila <> > thiago.dav...@serpro.gov.br> > wrote: > > Hi, > > >

Pipeline conversion of MSTest to JUnit using XUnit

2017-05-17 Thread Thiago Carvalho Davila
Hi, I've been trying to convert MSTests using pipeline, and I've been struggling to make a step for that:     step([$class: 'XUnitBuilder', thresholds: [[$class: 'FailedThreshold', unstableThreshold: '1']], tools: [[$class: 'MSTest', pattern: 'TestResults\\*.trx']]]) For this I ge

Publishing MSTests in pipeline

2017-05-15 Thread Thiago Carvalho Davila
Hi, I'm having problems to transpose the use of MSTest Plugin to pipeline as code. I don't know the correct syntax, but I think is something like:     stage('Unit Tests'){     steps {     echo "\"${tool 'vstest.console_v14'}\" ${VSTest_TestFiles} ${VSTest_Args}"

Default way to see workspace in Blue Ocean

2017-05-15 Thread Thiago Carvalho Davila
Hi, This is a very basic question. I want to see the files downloaded from de SCM and resulting files (compilations, analysis, etc). What is the default way of doing that in Blue Ocean? Do I have to install a plugin just for that? What options do I have? Thanks, Thiago - "Esta mensagem do

Manual step stage on BlueOcean/Jenkins2 pipeline

2017-05-11 Thread Thiago Carvalho Davila
Hello, I am migrating my old pipelines to pipeline as code of Jenkins2. I've been strugling to make manual step stages like stage('Deploy-Production'){}. It is autoexecuted if I just put it in the pipeline{}. What is the best practice here? Is there native support to manual step? Thanks, Thia

LDAP Plugin stops working after change in secrets files

2017-04-27 Thread Thiago Carvalho Davila
Hi, ​I am making a migration for a new server, and I tried copying the credentials.xml, secrets/hudson.util.Secret and secrets/master.key files. But now, I can't log in using LDAP anymore. How do I copy the users from the other server? Thanks, Thiago - "Esta mensagem do SERVIÇO FEDERAL DE

Re: [EXTERNAL] - Error using scp to transfer files to CentOS

2017-04-18 Thread Thiago Carvalho Davila
That worked! Thanks a lot. Best regards. Thiago Em 18/04/2017 09:53:32, Dirk Heinrichs escreveu: > Am 18.04.2017 um 14:38 schrieb Thiago Carvalho Davila: > > > > > I'm having trouble to transfer files via scp to my CentOS servers. I

Error using scp to transfer files to CentOS

2017-04-18 Thread Thiago Carvalho Davila
Hello, I'm having trouble to transfer files via scp to my CentOS servers. I generated RSA keys on destination servers: ssh-keygen -t rsa And added to known_hosts in my jenkins slave: ssh-keyscan -t rsa ${HOST_IP} >> ~/.ssh/known_hosts Then I made a job to transfer files and I am getting