Re: How to identify exactly where exception occurred in Jenkins pipeline?

2020-08-02 Thread Ramanathan Muthaiah
> > But with Jenkins build output console, it does not show the line number > where the exception has occurred. > > In this case, based on method name ie `trim()` from log, I check wherever > `trim()` method is used. But as I've used it at multiple places in same > method, it becomes difficult

Re: Create default admin user on Jenkins own user database

2020-07-15 Thread Ramanathan Muthaiah
On Monday, July 13, 2020 at 10:45:23 PM UTC+5:30, Siva Bagavathy wrote: > > Dear Team, > > As part of automation, I need to create and invoke Jobs using Jenkins API. > I have deployed jenkins container on Kubernetes cluster using helm chart. > Hence I need Jenkins to have at least one admin user

Re: Is there a Jenkins plugin that can create and terminate Amazon EC2 instances as required by the build queue?

2020-07-15 Thread Ramanathan Muthaiah
On Tuesday, July 14, 2020 at 1:51:47 PM UTC+5:30, Amedee Van Gasse wrote: > > Is there a way in Jenkins, maybe by means of some plugin, that I can for > example put in my Jenkinsfile: > > agent { label 'tesseract' } > > and that when a job with label 'tesseracr' enters the queue, Jenkins >

checkmarx plugin installation

2020-07-13 Thread Ramanathan Muthaiah
>From the update center, it is possible to install checkmarx plugin, the plugin version available is 8.90.4. However, checkmarx releases page (https://github.com/jenkinsci/checkmarx-plugin/releases) shows many versions later than 8.90.4; however, there is no hpi files to download. Has

Re: [JNLP][Agent][Docker] connect an Agent to a Jenkins instance using self-signed certs

2020-04-14 Thread Ramanathan Muthaiah
On Monday, April 13, 2020 at 11:02:12 PM UTC+5:30, Ivan Fernandez Calvo wrote: > > I make it with JCasC, basically is a Docker compose with Jenkins, > openSAML, and a SSH Build Agent, it is what I use to test issues see > https://github.com/kuisathaverat/jenkins-issues/tree/master/jobDSL > >

Re: [JNLP][Agent][Docker] connect an Agent to a Jenkins instance using self-signed certs

2020-04-13 Thread Ramanathan Muthaiah
On Saturday, April 11, 2020 at 5:43:28 PM UTC+5:30, Ivan Fernandez Calvo wrote: > > Hi, > > I have a Jenkins instance running (2.230, also I have tested LTS) on a > Docker container using only HTTPS with self-signed certificates, in the > same network I start an SSH Build Agent and a JNLP

Re: Jenkins pipeline git branch push trigger

2020-02-23 Thread Ramanathan Muthaiah
On Tuesday, November 12, 2019 at 3:58:41 AM UTC+5:30, Jerome Godbout wrote: > > Hi, > I'm using my Jenkins file pipeline to checkout and build, I have a > pipeline project I would like to get triggered only when a push to a > specific branch occur. The Git repos is host on bitbucket cloud

Re: Jenkins pipeline jobs being triggered by github webhooks from wrong repository

2020-02-23 Thread Ramanathan Muthaiah
On Wednesday, February 12, 2020 at 10:22:30 PM UTC+5:30, James Robson wrote: > > I have 1 code repo that should be triggering jobs, and a separate repo for > a jenkins pipeline library. There are 2 jenkins jobs that use the ‘GitHub > hook trigger for GITScm polling’ build trigger, both are

Re: i am trying a pipeline job where my first stage job returns a list of values which i should use to make list of parallel jobs in the second stage for each of the value

2020-02-23 Thread Ramanathan Muthaiah
On Saturday, February 22, 2020 at 1:16:00 AM UTC+5:30, amu ch wrote: > > Hi , > > I used this following ; my first part itself is not working where i want > to save the return values from my first stage and use them in second stage. > i tried several methods none worked. my first stage job

Re: shared library - hashmap error

2020-02-17 Thread Ramanathan Muthaiah
On Monday, February 17, 2020 at 8:06:57 PM UTC+5:30, judaondo wrote: > > Hello I have the following Shared Library: > > #!/usr/bin/env groovy > > import com.mycom.Logger > > /** > * Clone the selected git repository. > * > * Example usage within a declarative pipeline: > * > *steps { > >

Git(hub) plugin and triggering freestyle build based on comment string in PR

2020-02-17 Thread Ramanathan Muthaiah
In our enterprise setup, we have bunch of 'freestyle' jobs that use Github pullrequest builder plugin (GHPRB) -- in the config of these jobs, it it setup to look for certain words in the incoming pull requests (PRs). This setup is working without any

Access build duration in 'freestyle' jobs, for use in mail notifications

2020-01-12 Thread Ramanathan Muthaiah
Hi Folks, New Year wishes to all of you. Few weeks back, I migrated a production instance of Jenkins from v2.32 (legacy infra inherited few years back) to v2.190. Post successful upgrade, some of the jobs, hosted in this instance, are unable to compute(?) BUILD_DURATION -- this is manifested

Re: Why does my pipeline have 2 workspaces?

2019-09-01 Thread Ramanathan Muthaiah
On Wednesday, August 28, 2019 at 4:18:13 PM UTC+5:30, Toby Hersey wrote: > > Thanks Ram , is that the same for the @2 folders as well? > > Or is that because a build has run 2 in parallel? > Could be a possibility. /Ram -- You received this message because you are subscribed to the Google

Re: how to ignore jenkisnfile from polling for pipeline jobs

2019-09-01 Thread Ramanathan Muthaiah
On Saturday, August 31, 2019 at 12:24:00 AM UTC+5:30, SADHAN wrote: > > the problem i am seeing is if i add polling for the source code repo using > checkout function of jenkinsfile, the job is getting triggered for the > source code changes and also for the jenkisnfiles changes though both are

Re: Why does my pipeline have 2 workspaces?

2019-08-27 Thread Ramanathan Muthaiah
On Wednesday, August 28, 2019 at 12:42:44 AM UTC+5:30, Toby Hersey wrote: > > i'll third the question , i want to know cause. > In short: The second (temporary) workspace is the area that's used by the pipeline to handle all of the code within the 'sh' step. Based on what I analyzed, the

Re: How to override "Shell executable" in declarative JenkinsFile

2019-08-22 Thread Ramanathan Muthaiah
On Tuesday, August 6, 2019 at 8:31:45 PM UTC+5:30, Jérémie Faucher-Goulet wrote: > > Hi, I find myself in a bit of a bind and would like suggestions on how to > move forward with our Jenkins cluster. > > We've recently updated from a 3 year old version to start using all the > beautiful

Re: Why does my pipeline have 2 workspaces?

2019-08-22 Thread Ramanathan Muthaiah
> > I've noticed that my single pipeline ends up with 2 separate workspaces > each time it runs. > What is the one ending in @script for? > With no intent of grandstanding, this response will direct you to one of my article in dzone.com. Hope your questions are answered here,

Re: Error in Manage Jenkin page

2019-06-09 Thread Ramanathan Muthaiah
> > > I'm very new to Jenkins and i am seeing below error message when i trying > to configure Plugin. Any help really appreciated. > > There were errors checking the update sites: SSLHandshakeException: > sun.security.validator.ValidatorException: PKIX path building failed: >

Re: Jenkins GitLab Config for Posting Status of Build to GitLab - 404 Bad Request

2019-05-22 Thread Ramanathan Muthaiah
Hi, > > I've got our Jenkins setup with the GitLab plugin v 1.5.11 and I'm > trying to get it to communicate with private GitLab EE v 11.9.0. > > Jenkins can do all the basic stuff with git here.. Clone, Webhooks to > initiate build, etc., but I'm trying to set it up such that it tells

Re: ERROR : Unable to find build script

2019-05-08 Thread Ramanathan Muthaiah
On Wednesday, May 8, 2019 at 1:59:02 AM UTC+5:30, Praveen kumar wrote: > > Hi > > When I am trying to build the code in Jenkins with SVN by invoking ANT, I > am facing the below error > > ERROR : Unable to find build script at C:\Program > Files\Jenkins\workspace\sampleproject\trunk\build.xml >

Jenkins Scripted Multi-branch Pipeline: Is it possible to have different build numbering schemes?

2019-05-07 Thread Ramanathan Muthaiah
Hi, Am looking at having different build numbering schemes - one for timer triggered and another for builds triggered via git events. As of now, I cannot install any new plugin as that might force us to upgrade Jenkins -- ours is quite older version and the upgrade is long overdue. However,

Re: Pass the data thru variable using curl command

2019-01-21 Thread Ramanathan Muthaiah
> > My request is here below:- > > def status = "curl -s --max-time 30 POST 'https:url'" -H "Content-type: > application/json" -d {"DeAppRulesList": > [{"Applion":"02.01.02","Applime":"REFW"},{"Applion":"01.01.01","Applime":"ATP_Branch"},{"Applion":"01.06.07","Applime":"Temp_FW"}]}' > > No

Logging using fluentd, with Jenkins (stdout, stderr) running in a container

2019-01-13 Thread Ramanathan Muthaiah
Hey, On a CentOS vm, am running fluentbit (as td-agent) configured with basic options. 1. Running a simple ubuntu container with a) /bin/bash or b) /bin/echo "Hello World" echoes the output (from the container) in the td-agent log at, /var/log/td-agent/td-agent.log docker run -d -ti --name

Re: Variables and parallel stages

2018-12-26 Thread Ramanathan Muthaiah
> > Assuming I have a Jenkinsfile similar to the following (high-level), > Can I use the variables in the parallel stages, when each of the parallel > stages is running a different agent? > AFAIK, this is possible as long as the variables are declared globally. /Ram -- You received this

???,??,

2018-10-18 Thread Ramanathan Muthaiah
-- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit

Re: to get the code from the git

2018-10-16 Thread Ramanathan Muthaiah
On Tuesday, October 16, 2018 at 2:46:48 PM UTC+5:30, robert@ithands.biz wrote: > > hi team > i need to get the code from git this is what i have done so far > > node { > stage('preperation') > git branch: 'master', > git 'https://github.com/robert-rajendra/test.git' > > > } > >

Re: How to change jenkins server time zone?

2018-10-15 Thread Ramanathan Muthaiah
> > But i want to change jenkins time zone to US-EST time zone? > *How to change jenkins server time zone?* > https://wiki.jenkins.io/display/JENKINS/Change+time+zone did you try this ? /Ram -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group.

Re: Git checkout failed on slave

2018-10-15 Thread Ramanathan Muthaiah
> > I have one master node and a slave node I run my Jenkins jobs unto and I > encountered a problem recently. I am unable to checkout a repository from > Git on my slave through a Jenkins pipeline. Locally, checking out a branch > on my repository works fine, cloning, pushing, pulling,

Re: Pipeline build not stopping when stage marked as failed

2018-10-15 Thread Ramanathan Muthaiah
Most likely, you need this 'error '. /Ram On Thursday, October 4, 2018 at 1:36:03 PM UTC+5:30, Paul D'Ambra wrote: > > I have a declarative Jenkins pipeline that in a parallel stage runs the > dependency check

Re: Getting cause for branch indexing in multibranch pipeline

2018-08-23 Thread Ramanathan Muthaiah
Thanks Sverre Moe, you made my day ! Here is the final version of the code snippet. > import jenkins.branch.BranchIndexingCause > > final def jenkinsInstance = jenkins.model.Jenkins.getInstance() > final def jenkinsProject = jenkinsInstance.getItemByFullName( > jenkinsProjectName) >

Getting cause for branch indexing in multibranch pipeline

2018-08-21 Thread Ramanathan Muthaiah
Am referring to this API doc to find out which method should be used to identify the reason for a build job to be triggered. http://javadoc.jenkins-ci.org/hudson/model/class-use/Cause.html Would appreciate if anyone on this list could point me to the relevant method ? For some strange reason,

How to know if the pull requests are trusted ?

2018-08-06 Thread Ramanathan Muthaiah
Hello, We're running Jenkins v2.32.2 (agreed, it's very very old, but this is in the enterprise) and am trying to setup multibranch for one of Git repos (hosted in github enterprise - GHE). For every build job, triggered by Jenkins multibranch, pipeline kicks in but Jenkinsfile changes in PR

Re: How do I trigger jenkins job if a pull request is merged in github

2018-08-05 Thread Ramanathan Muthaiah
On Saturday, August 4, 2018 at 1:36:39 AM UTC+5:30, jsake...@gmail.com wrote: > > I want to use only pullrequestevent, so when a pull request is merged, it > should run a script or hook, which would do all the checks like > if a pull request is merged or not / if teh branch is release or not

Re: How do I trigger jenkins job if a pull request is merged in github

2018-08-03 Thread Ramanathan Muthaiah
> > We don't use multi branch pipeline. But , we use pipeline Jenkins job > written in jenkisnfile. > I want to know the steps to do on github and jenkinsfile side to trigger > the Jenkins job if a pull request is merged to a particular branch. > Multibranch (or GHE organization, if you

Re: Jenkins failure at continuous integration

2018-05-23 Thread Ramanathan Muthaiah
> > "C:\Program Files (x86)\Jenkins\workspace\Trivium 2015\Trivium 2015.sln" > (default target) (1) -> > "C:\Program Files (x86)\Jenkins\workspace\Trivium > 2015\Trivium.Common\Trivium.Common.csproj" (default target) (2) -> > (CoreCompile target) -> > Utils\Mail\Sender.cs(15,30): error

Re: Trying to pass a value from a shell variable to the next shell command (failed)

2018-05-23 Thread Ramanathan Muthaiah
> > stage('Build image') { > steps { > sh 'TAG=$(git describe --candidate=1 --tags)' > sh 'TAG=$(echo $TAG | cut -d\'-\' -f 1)' > sh 'WEB_IMAGE_NAME=' + env['ACR_LOGINSERVER'] + > '/my-project-1499882073260/test:' + env['TAG']

Re: Unable to run Jenkins inside docker container through ansible

2018-05-21 Thread Ramanathan Muthaiah
> > This is starting the container but not able to run jenkins due to which i > am not able to login to jenkins host. > > Can anyone guide me what do to ? > Have you looked at the Docker container logs? /Ram -- You received this message because you are subscribed to the Google Groups

Re: Pipeline script : Run job once the first job finishes.

2018-05-21 Thread Ramanathan Muthaiah
> > node { > > stage('Build Virtual Machine') { > > > > build job: 'Misc_Jobs/VM_Request_And_Validation', parameters: [ > > string(name: 'Hostname', value:'satclient8'), > > string(name:'DSType', value: "NAS")], wait: true > > > > } > >

Re: Getting Environment Variable from ITCDM to pass Jenkins Job as parameter

2018-04-30 Thread Ramanathan Muthaiah
I suppose, many in the list may not know what is ITCDM ? /Ram -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To

Re: How to use Folder-level Shared Libraries in Declarative Jenkinsfile

2018-04-27 Thread Ramanathan Muthaiah
If you are looking to load Groovy files from your project repo, try the load step. This SO thread may have more answers for you. /Ram

Re: Use of withCredential on Slave Node

2018-04-27 Thread Ramanathan Muthaiah
> > The premable to my Jenkinsfile looks like > > try { > > node("linux") { > > withCredentials([[$class: 'UsernamePasswordMultiBinding', > credentialsId: 'REDACTED', > usernameVariable: 'REDACTED_USER', passwordVariable: > 'REDACTED_PASSWORD']]) { > > > > When I run the job

Re: How to pass Jenkins env variables in SaltStack Jenkins plugin

2018-03-24 Thread Ramanathan Muthaiah
If you need to access environment variables in saltstack, aren't there any methods to access them. I have not used saltstack but you should the tool's documentation to understand how to access env vars. Using such provision, you should access env var rather than passing to saltstack. /Ram On

ECS slave to agent connection fails due to JNLP's SSL engine errors

2018-03-24 Thread Ramanathan Muthaiah
Hello, In my AWS setup, we have two separate clusters – one for master, another for agent. But both are in same vpc, subnet, and have security group assigned. Other than this, there is no other fancy stuff going on here, like, ELB, SSL certs (all communication happens over http, its a private

Re: Git Plugin Issues

2018-03-03 Thread Ramanathan Muthaiah
> > Here are the errors we are running into (Credentials *Unix BitBucket > Groovy* are the name of the credentials commonly used across all > platforms): > > > > Building remotely on *XXXJENKINSNODEXXX* in workspace > d:\scm\checkout\John-Test > > > D:\SCM\Apps\Git\2.8.2\bin\git.exe

Re: Node troubles

2018-03-03 Thread Ramanathan Muthaiah
Hello Sam, Looks like something gone wrong here (in the pipeline script), extracted from the stacktrace in your post. >>> at com.cloudbees.groovy.cps.sandbox.SandboxInvoker.methodCall(SandboxInvoker.java:17) at WorkflowScript.run(WorkflowScript:343)

Re: Groovy code in Pipeline and CPS trouble

2018-01-08 Thread Ramanathan Muthaiah
> > > Reading (novice at it) the stacktrace suggests it's to do with > serialization > > of variables but the annotation should take care of that, isn't it ? > > > > an exception which occurred: > > in field groovy.lang.Closure.delegate > > in object

Groovy code in Pipeline and CPS trouble

2017-12-28 Thread Ramanathan Muthaiah
Hello All, I have tested the below snippet of code in myjenkinsurl/script and it works fine. However, same code (embedded or loaded via external Groovy code) in Pipeline workflow script fails, inspite of CPS annotation (with the stacktrace that's given after this code snippet) ? NOTE: First

Re: How to set "configure release build" in Jenkins organization?

2017-12-06 Thread Ramanathan Muthaiah
> > I am using Jenkins organization for my pipeline jobs. and I want to add > release plug into one of the jobs. as you know we can't change the > configuration in organization job. the only way can do this is using groovy > method. but I can't find any useful method for this. > > any

Re: java.lang.UnsupportedOperationException: Refusing to marshal org.codehaus.groovy.runtime.GStringImpl for security reasons

2017-12-06 Thread Ramanathan Muthaiah
> > what on earth does that message mean? > > Here is the code this seems to be happening to: > > class Notifications implements Serializable { > def context > def dataBlocks > def mailLists > def workspace > > // emailext body: 'my email body', subject: 'email subject',

Re: Need Help Getting host name

2017-12-06 Thread Ramanathan Muthaiah
> > I have a custom plugin which during the post-build phase needs the > hostname/IP address of the node where the build is executing, > > build.getExecutor().getOwner().getNode().toComputer().getHostName() > > I have been using the above method, but it does not give me the right host > name >

Re: Translation between declaritive pipleline and groovy pipeline

2017-12-03 Thread Ramanathan Muthaiah
> > What would be the equivalent of this: > > post { > always { > echo 'One way or another, I have finished' > deleteDir() /* clean up our workspace */ > } > success { > echo 'I succeeeded!' > } > unstable { >

Re: Build Docker Image from a Dockerized Jenkins

2017-12-03 Thread Ramanathan Muthaiah
Hi Jeeva, > I would like to build Docker images from a Dockerized Jenkins. There are > multiple solution out there but what is the recommended solution... > > I have been using ssh node as a work around, but I was told to use > https://wiki.jenkins.io/display/JENKINS/Docker+Slaves+Plugin . In

Re: Pipelines and @tmp directories

2017-11-30 Thread Ramanathan Muthaiah
> > Simple question: is there a way to make a pipeline not create those? Or > at the very least clean up after them? > Have a look at the examples posted here for workspace cleanup, choose solution what suits you. https://jenkins.io/doc/pipeline/tour/post/ (titled, Cleaning up and

Re: Return value from step (pipeline)

2017-11-30 Thread Ramanathan Muthaiah
> > Is it possible to capture the return value from pipeline step? > > ex: > def result = findbugs(pattern: '**/target/**/findbugsXml.xml') > echo result > To store cmd status or output, you should use sh(). You will find code snippets in this link, https://jenkins.io/doc/pipeline/examples/

Re: Triggering Jenkins Multibranch Pipeline by raising a Pull Request in GitHub

2017-11-29 Thread Ramanathan Muthaiah
> > So I need to trigger this Multibranch pipeline whenever there is a Pull > Request raised on GitHub. I want this pipeline to trigger automatically > when there is a PR on GitHub. > What do I need to do to achieve this approach? > Is it possible to trigger Multibranch pipeline automatically

GitHub Branch Source plugin and pull requests from forked repos

2017-08-01 Thread Ramanathan Muthaiah
https://go.cloudbees.com/docs/cloudbees-documentation/cje-user-guide/index.html#_controlling_what_is_built Documentation mentions that "By default, Jenkins will build any branches it finds in the “origin” repository (the actual repository found in your organization). Also, any pull requests

Re: Pull requests from github fork not building with jenkins multi-branch githooks?

2017-08-01 Thread Ramanathan Muthaiah
On Tuesday, February 14, 2017 at 12:54:13 AM UTC+5:30, anton kropp wrote: > > Whenever someone submits a pull request from a forked repo to a job that > is built with multi-branch github integration, jenkins never picks up the > commits. PR's from branches work just fine though. > > Am I

Re: How to set Multibranch Pipeline Trigger interval via Jenkinsfile?

2017-07-26 Thread Ramanathan Muthaiah
On Thursday, July 27, 2017 at 5:12:55 AM UTC+5:30, Yuri Govorushchenko wrote: > > Hello, > > I have a *Multibranch Pipeline* job and would like to programatically set > its property found in UI at *Scan Multibranch Pipeline Triggers -> > Periodically if not otherwise run -> Interval*. Ideally

Pipeline property for GitHub PullRequest

2017-07-26 Thread Ramanathan Muthaiah
While regular GitHub PUSH event can be handled via this property setting in Jenkinsfile pipeline script, am interested to know if there is similar property for GitHub Pull Requests? >>> pipelineTriggers([githubPush()]) Setup: Jenkins ver is @ 2.60.1, have webhook setup between GitHub

[Resolved] : Github push event fails to trigger pipeline job in jenkins

2017-07-01 Thread Ramanathan Muthaiah
to Jenkins master. Eventually, this did the trick and PUSH event was followed by poking of the job that resulted in triggering a fresh build of that job. Overall, it was good learning experience. /Ram On Sunday, June 25, 2017 at 2:32:48 PM UTC+5:30, Ramanathan Muthaiah wrote: > >

Re: Jenkins job builder -- Cannot create pipeline style jobs

2017-07-01 Thread Ramanathan Muthaiah
On Fri, Jun 30, 2017 at 10:05 AM Matthew Wilmott wrote: > Okay so it looks like it relies on the 2.x codebase which is beta. Pip had > installed version 1.6 by default, upgraded using pip and rerun the test > script which worked. Now its obviously a beta build but I'm only

Jenkins behaviour with github webhook and github service

2017-06-27 Thread Ramanathan Muthaiah
Hi All, Am working to setup webhook trigger between github enterprise and Jenkins. As part of this, enabled AWS SNS in Github repo and have Lambda subscribed to the AWS SNS topic. With this setup in place, on Jenkins side, in the job (where build should be triggered automatically) these two

Re: Github push event fails to trigger pipeline job in jenkins

2017-06-25 Thread Ramanathan Muthaiah
Hi Lee, > Is it a plain pipeline job? If so, you need to click the option to trigger > a build on a GitHub change. > Yes, the job is setup as pipeline style and that option (to trigger build on Github change) is enabled. Are there any extra commands needed in the pipeline job to indicate

Re: Jenkins job builder -- Cannot create pipeline style jobs

2017-06-25 Thread Ramanathan Muthaiah
> > Hi Ramanath, Hope you have resolved this issue. Actually I am facing same > issue with the pipeline module .. I am using JJB 1.4 version on Jenkins2.0 > which got a pipeline plugin version 2.5 . > > Please let me know if have managed to resolved. > > After my initial post, have not been

Re: Using local directory path for build instead of git url?

2017-06-12 Thread Ramanathan Muthaiah
> > Will it be possible to use a local project directory path instead of git > url in build configuration, and then click 'Build Now' button which will > run a given command in that directory? > I am basically aiming logging all the runs of a project here, for e.g. to > log the environment

Re: Could not find or load main class –Xmx512m

2017-06-12 Thread Ramanathan Muthaiah
> >i am new to Jenkins.. > > When i give build now i am getting Could not find or load main class > –Xmx512m .. Can anyone help me to resolve this? > I think it may be helpful to share details of the jenkins build job that's failing, info about usage of any special plugins. /Ram --

Jenkins job builder -- Cannot create pipeline style jobs

2017-06-11 Thread Ramanathan Muthaiah
Hi All, Pls bear with me for the lengthy post. I did go through the documentation (JJB) on how to create jobs of freestyle and pipeline style. With JJB installed in an Ubuntu box (running in Vagrant), I could create simple freestyle jobs. However, the same is not the case with simple

Re: Job Scheduling per 10 secs

2017-06-07 Thread Ramanathan Muthaiah
Hi , Freestyle or pipeline job configuration has few items that should satisfy what you're looking for. 1) Build Periodically 2) Do not allow concurrent builds. Have you looked at them and tried to customize for your wants? /Ram On Wednesday, June 7, 2017 at 9:37:35 PM UTC+5:30, Ashish

Re: How to make Jenkins build something on pushing to GitHub?

2017-06-02 Thread Ramanathan Muthaiah
Hello Yuri, Am in an identical situation. Were you able to nail this issue? /Ram On Thursday, March 23, 2017 at 12:01:39 PM UTC+5:30, Yuri Kanivetsky wrote: > > Your job need to have a scm configuration for it to be triggered on >> commits. Either configure it as Multibranch Pipeline job or

Re: Unable to connect to to the git repository, can any one please suggest what is wrong with the configuration

2017-05-17 Thread Ramanathan Muthaiah
Adding to Victor's response, you may want to explore additional options available for checkout and cloning. C:\Program Files\Git\bin\git.exe fetch --tags --progress https: > //git.etb.tieto.com/x/x.git +refs/heads/*:refs/remotes/origin/* > ERROR: Timeout after 10 minutes > ERROR

Re: Not able to push to GIT repo using 'withcredentials'

2017-05-05 Thread Ramanathan Muthaiah
On Friday, May 5, 2017 at 3:32:36 PM UTC+5:30, ishan jain wrote: > > I am trying to push some tags back to repository and for obvious reasons, > i would like to keep my usernam/pass hidden. I use withcredentials for this > and the code looks like this: > > checkout([$class: 'GitSCM', branches:

[SOLVED] : Pipeline build expects multiple values for a parameter

2017-04-29 Thread Ramanathan Muthaiah
On Friday, April 28, 2017 at 7:54:42 PM UTC+5:30, Ramanathan Muthaiah wrote: > > Hello, > > Am using parameters( [ . . . ] ) inside the pipeline script to define the > values for the various parameters. These params are used while invoking > packer tool. > > pro

Pipeline build expects multiple values for a parameter

2017-04-28 Thread Ramanathan Muthaiah
Hello, Am using parameters( [ . . . ] ) inside the pipeline script to define the values for the various parameters. These params are used while invoking packer tool. properties([ parameters([ string(name: 'region', defaultValue: 'us-west-2', description : ''),

Re: Pipeline jobs: How are return codes handled?

2017-04-21 Thread Ramanathan Muthaiah
On Friday, April 21, 2017 at 3:22:49 PM UTC+5:30, David Aldrich wrote: > > Hi > > > > In a conventional Jenkins job, my understanding is that the job will fail > if the last command of a shell build step indicates an error. > > > > I am now experimenting with pipeline jobs and have something

BlueOcean: missing visual pipeline editor

2017-04-21 Thread Ramanathan Muthaiah
Hello, In the BlueOcean UI, I chose Git and provided the repo name hosted within organization umbrella. However, with this choice, visual pipeline editor is not visible. Does anyone why is this and what am missing ? /Ram -- You received this message because you are subscribed to the Google

Pipeline build fails using "withAWS"

2017-04-14 Thread Ramanathan Muthaiah
Hello, Pls excuse for the lengthy post. Am looking to make use of IAM roles in the given AWS account (jenkins master runs in the same account) and run packer build to generate AMI. This is to avoid storing / using AWS keys in Jenkins master. For this purpose, I wanted to make use of this

Re: Difference between "ClearCase UCM", "ClearCase UCM Baseline" and "UCM ClearCase" options

2017-04-05 Thread Ramanathan Muthaiah
Hi Umang, You stand better chance of getting responses to your query if you post in ClearCase group, not here. /Ram On Tuesday, April 4, 2017 at 12:20:08 PM UTC+5:30, Umang Gujrati wrote: > > Hi, > Can someone please help me understand the difference between "ClearCase > UCM", "ClearCase UCM

Jenkins pipeline build fails to run script inside Docker container

2017-04-04 Thread Ramanathan Muthaiah
Hello All, Using standard + Pipeline + Docker plugins in Jenkins v2.53, am trying to run flake8 within a Docker container environment. 1. Jenkins master is running in a Vagrant VM and there is no dedicated agent as this is meant for experimentation and learning purposes. 2. Docker toolbox is

Re: Jira/Jenkins integration Plugins

2017-03-31 Thread Ramanathan Muthaiah
Hi Marlene, I have not used JIRA plugin in Jenkins but aware of Python library that allows CLI interaction to JIRA. My experience with jira-python module is pretty limited but it looks interesting. /Ram On Tuesday, March 28, 2017 at 1:11:48 AM UTC+5:30, Marlene Cote wrote: > > I have

Re: is there a way to get all the enabled jobs on a jenkins CI System

2017-03-31 Thread Ramanathan Muthaiah
Raj, I would like to know if there is a way to use jenkins cli jar file and find > out if a given job is enabled or currently disabled. > i have about 700 jobs on the server and would like to know the list of > enabled and disabled jobs > Another way to get this done (if you have done prior

Re: missing group in pipelines run leads to docker failure

2017-03-31 Thread Ramanathan Muthaiah
Nathan, > > > so I get: `Got permission denied while trying to connect to the Docker > daemon socket at unix:///var/run/docker.sock` via the jenkins pipeline run, > but docker is fine when run as the jenkins user locally on the box... > http://nknu.net/how-to-configure-docker-on-ubuntu-15-04/

Howto integrate OWASP dependency check plugin in Jenkins Pipeline ?

2017-01-30 Thread Ramanathan Muthaiah
Hi , After reading thru' OWASP dependency check plugin wiki and JIRA issues, I could not find examples of simple usage of this plugin in Jenkins Pipeline with the exception of this code snippet (sourced from one of the PR conversations in this plugin's GH page): step([$class:

[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, p

Re: Having problem in importing the code from Github to Jenkins.

2017-01-11 Thread Ramanathan Muthaiah
On Wednesday, January 11, 2017 at 2:45:26 PM UTC+5:30, Sathish M wrote: > > I am new to Jenkins. I've been learning it by myself, as of now I know to > create a job & build it when my source code is in my local system. Now I am > trying to work the same from Jenkins. I've been trying it but I

Re: Loading scripts from Workflow resources

2017-01-10 Thread Ramanathan Muthaiah
On Tuesday, January 10, 2017 at 7:08:01 PM UTC+5:30, Mark Bidewell wrote: > > I am looking at the external libraries capabilities of Jenkins Workflow. > Our workflow uses python scripts for portions of the build process. Can > this scripts be stored as resources and a path to them retrieved

Jenkins Pipeline build error: Failed to prepare configFileProvider step

2017-01-08 Thread Ramanathan Muthaiah
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: node('master') { stage(' == Capitals == ') {

Re: variable field in jelly files in jenkins-office 365 conecter plugins

2017-01-02 Thread Ramanathan Muthaiah
I have no experience with this plugin but can't you pass parameter via the job configuration ? In office 365 connecter plugin,the url only get the given value.I want to > set the field is variable field.How Can i set that? > /Ram -- You received this message because you are subscribed to

Re: What build variable will contain text like "commit notification ", "started by timer", or "started by user "?

2016-12-31 Thread Ramanathan Muthaiah
Am interested too in gathering such details. Pls do share details when you crack this nut :-) On Saturday, December 31, 2016 at 5:53:19 AM UTC+5:30, David Karr wrote: > > In the detail for a pipeline job, there are lines like "commit > notification ", "started by timer", or "started by user ".

Re: Jenkins installed as a service on Windows running processes on Linux

2016-12-31 Thread Ramanathan Muthaiah
This does not look like Jenkins issue per se. I installed SSH remote hosts in Jenkins and I was able to connect to the > Linux server by building the Job. However, when I execute the PeopleSoft > command (pssqr...) I am getting a 'sudo...' error. > > I am missing something for my setup? > If I

Re: Trouble using shared pipeline libraries

2016-12-30 Thread Ramanathan Muthaiah
Hi Torsten, > try to separate your Jenkinsfile from the code of your shared library. > Usually the shared library provides some global functions that you may > re-use in some Jenkinsfile(s) > => the library is shared code, the Jenkinsfile belongs to your project(s) > using that library. >

Re: Unable to see groovy script editor in pipeline job

2016-12-29 Thread Ramanathan Muthaiah
Minor correction in my previous post: On Thursday, December 29, 2016 at 3:09:47 PM UTC+5:30, pa7751 wrote: >> >> I have created a Jenkins Pipeline Job. However, I am unable to see the >> option to enter the pipeline script. Attached is the screenshot. Pls >> suggest how I can get the editor. I

Re: Unable to see groovy script editor in pipeline job

2016-12-29 Thread Ramanathan Muthaiah
Hello, On Thursday, December 29, 2016 at 3:09:47 PM UTC+5:30, pa7751 wrote: > > I have created a Jenkins Pipeline Job. However, I am unable to see the > option to enter the pipeline script. Attached is the screenshot. Pls > suggest how I can get the editor. I am using jenkins v2.32.1 > Create

Re: Remote trigger configuration

2016-12-25 Thread Ramanathan Muthaiah
> I am not able to configure the jenkins for remote trigger. Few years back > I had done this, with older version using "Manage Credentials" option. But > the latest versions don't have Manage Credentials option to configure > hostname, hostname and port, etc options. And the docs in

Re: Trouble using shared pipeline libraries

2016-12-25 Thread Ramanathan Muthaiah
Here are some details but am not confident about my setup based on what you're asking. Maybe, you can help me to clarify what am doing incorrectly. * how does your Jenkisfile look like > [Ram] : Jenkinsfile content is: buildUtils("git") > * do you have global shared library configured or

Trouble using shared pipeline libraries

2016-12-22 Thread Ramanathan Muthaiah
Am running Jenkins v2.3x with Pipeline plugin running at v2.x In the repo root, I have a Jenkinsfile from which shared library is meant to be used. repo_root / |_ Jenkinsfile | |_ vars / |

Using Rundeck as a step in Pipeline script ?

2016-12-21 Thread Ramanathan Muthaiah
Am experimenting with Jenkins v2.36 and Rundeck v2.x ; have installed Rundeck plugin in Jenkins master. For few days, I have been Googling to find / know how to use Rundeck within Pipeline scripts ? So far, have not found any source on the Net on this topic. Does anyone in this group have