Re: [Question] How to add value to a field dynamically in the UI?

2020-05-21 Thread Parichay Barpanda
+5:30, Parichay Barpanda wrote: > > I am kinda confused bcz this doesn't solve my problem. If I click on a > button then the secret-text of that particular property should change but > if all buttons have same listener then all secret-text fields will change. > I want some ability t

Re: [Question] How to add value to a field dynamically in the UI?

2020-05-21 Thread Parichay Barpanda
oken; > }); > } > > On Thu, May 21, 2020 at 3:54 PM Parichay Barpanda > wrote: > >> Yes having adding an Id to the element instead of class solves the >> problem. But this config is inside a repeatableHeteroProperty which means >> there could be multiple

Re: [Question] How to add value to a field dynamically in the UI?

2020-05-21 Thread Parichay Barpanda
revent default > > > On Thu., May 21, 2020, 3:37 p.m. Parichay Barpanda, > wrote: > >> Np. >> >> I am trying to create a button element: >> >> f.entry() { >> raw(""" >> >> Generate Secret Token &

Re: [Question] How to add value to a field dynamically in the UI?

2020-05-21 Thread Parichay Barpanda
:45 AM UTC+5:30, Gavin Mogan wrote: > > Sorry, I got distracted when i hit enter. > you want a click event for the button > > document.getElementById("buttonid").addEventListener('click', function(e) { > document.getElementById("idname").value

Re: [Question] How to add value to a field dynamically in the UI?

2020-05-21 Thread Parichay Barpanda
"foo"; > }); > > On Thu, May 21, 2020 at 2:27 PM Parichay Barpanda < > parichay.barpa...@gmail.com> wrote: > >> Hi, >> >> I want to set value of a Describable field using an UI button. There is a >> text box Token and there is a button Generat

[Question] How to add value to a field dynamically in the UI?

2020-05-21 Thread Parichay Barpanda
Hi, I want to set value of a Describable field using an UI button. There is a text box Token and there is a button Generate, if Generate Button is clicked then Token text box should be filled with a desired value. Thanks and Regards, Parichay -- You received this message because you are

Re: Adding Javascript to config.groovy

2020-05-21 Thread Parichay Barpanda
d that raw() > isn't doing any xss escaping though, so someone else will have to speak to > that. > > On Thu, May 21, 2020 at 1:07 PM Parichay Barpanda < > parichay.barpa...@gmail.com> wrote: > >> Yes. See >> https://github.com/jenkinsci/gitlab-bran

Re: Adding Javascript to config.groovy

2020-05-21 Thread Parichay Barpanda
re you writing a plugin > using groovy? > > On Thu, May 21, 2020 at 12:54 PM Parichay Barpanda > wrote: > >> Hi, >> >> I am looking for a way to add Javascript to config.groovy files in my >> resources. It is possible to do so in jelly with

Adding Javascript to config.groovy

2020-05-21 Thread Parichay Barpanda
Hi, I am looking for a way to add Javascript to config.groovy files in my resources. It is possible to do so in jelly with

Re: Rechecking Pull Requests

2019-10-06 Thread Parichay Barpanda
Hi Oleg, For implementing the same feature for GitLab Branch Source Plugin, I took some inspiration from one of the existing plugin for GitHub Branch Source https://github.com/jenkinsci/github-pr-comment-build-plugin. Take a look at it, either decide to implement this feature in GitHub Branch

Re: Unable to configure Fork Change Request Trait using Job DSL

2019-08-19 Thread Parichay Barpanda
ious post. > > Regards, > Daniel > > > On Mon, Aug 19, 2019 at 5:39 PM Parichay Barpanda < > parichay.barpa...@gmail.com> wrote: > >> Thanks Daniel. But I didn't understand by what you meant "remove the type >> parameters&qu

Re: Unable to configure Fork Change Request Trait using Job DSL

2019-08-19 Thread Parichay Barpanda
workaround, you can remove the type parameters from the "trust" > constructor parameter. > > @Jesse: would it be feasible to fallback to the raw type when a > parameterized type is detected? > > https://github.com/jenkinsci/structs-plugin/blob/structs-parent-1.20/plugin/s

Re: Unable to configure Fork Change Request Trait using Job DSL

2019-08-16 Thread Parichay Barpanda
Can you tell how to do it? We are unable to find the configuration in the api viewer. Thanks. On Fri 16 Aug, 2019, 20:07 Jesse Glick, wrote: > On Fri, Aug 16, 2019 at 9:11 AM Parichay Barpanda > wrote: > > All the detected traits in Job dsl api viewer takes either > int/boolea

Unable to configure Fork Change Request Trait using Job DSL

2019-08-16 Thread Parichay Barpanda
Hi all, I am trying to configure GitLab Branch Source Plugin organizational folder using Job DSL. But unfortunately job dsl api viewer doesn't detect Fork Merge Request Trait

Beta Release of GitLab Branch Source Plugin

2019-08-02 Thread Parichay Barpanda
Hi all, For the past couple of months I have been working on a new GitLab Branch Source Plugin as a part of my Google Summer of Code Project. It has a lot to offer for Jenkins and GitLab intergration. What new features this plugin provides? - Mutlibranch Pipeline Job - Folder

Re: [Working Hours Plugin] Asking UI Feedback

2019-08-02 Thread Parichay Barpanda
Hi Jack, It is really nice to host it on the cloud and let users test it. I like the UI. I would suggest few things (more like my personal opinions): 1. The captions could be more prominent. The light grey colour makes it a bit less readable. 2. Maybe in future, implement a custom alert box for

Re: Setting up webhook in a SCM branch source plugin

2019-07-26 Thread Parichay Barpanda
, wrote: > On Fri, Jul 26, 2019 at 3:32 PM Parichay Barpanda > wrote: > > Some toplevel idea of how SCMHeadEvent works will also be a big help for > me. > > > https://github.com/jenkinsci/scm-api-plugin/blob/master/docs/implementation.adoc#implementing-event-support > >

Setting up webhook in a SCM branch source plugin

2019-07-26 Thread Parichay Barpanda
Hi all, I am working on adding webhook support in GitLab Branch Source Plugin. Current implementation looks like this: 1. When `afterSave()` method is called upon in `GitLabSCMSource` or `GitLabSCMNavigator` then a webhook url is created in the GitLab Server by `GitLabWebhookCreator` class.

Re: Incrementals error in Jenkins CI for GitLab Branch Source Plugin

2019-07-20 Thread Parichay Barpanda
t; > On Tue., Jul. 16, 2019, 8:53 p.m. Parichay Barpanda, < > parichay.barpa...@gmail.com> wrote: > >> I raised a ticket here - https://issues.jenkins-ci.org/browse/INFRA-2183. >> Please let me know if I can assign it to someone or you can ping someone >> who can he

Re: Incrementals error in Jenkins CI for GitLab Branch Source Plugin

2019-07-16 Thread Parichay Barpanda
:47 PM Parichay Barpanda > > wrote: > > Invalid archive retrieved from Jenkins, perhaps the plugin is not > properly incrementalized? > > Well Tyler added this particular error message, perhaps related to > INFRA-2125: > > > https://github.com/j

Re: Incrementals error in Jenkins CI for GitLab Branch Source Plugin

2019-07-16 Thread Parichay Barpanda
here - https://ci.jenkins.io/blue/organizations/jenkins/Plugins%2Fgitlab-branch-source-plugin/detail/develop/9/pipeline Any idea why it fails? Btw the plugin has github field in `repository-permissions-updater`. On Tuesday, July 16, 2019 at 4:02:54 PM UTC+5:30, Parichay Barpanda wrote

Re: Incrementals error in Jenkins CI for GitLab Branch Source Plugin

2019-07-16 Thread Parichay Barpanda
webapp directory ignored? As Jessie said, >> everything in your src directory should be your actual files which you want >> committed. >> >> >> >> On Tue., Jul. 16, 2019, 2:43 a.m. Parichay Barpanda, < >> parichay.barpa...@gmail.com> wrote: >>

Re: Incrementals error in Jenkins CI for GitLab Branch Source Plugin

2019-07-16 Thread Parichay Barpanda
> the other branches that still have docs/ in them seem to be failing. > > Why would you want the webapp directory ignored? As Jessie said, > everything in your src directory should be your actual files which you want > committed. > > > > On Tue., Jul. 16, 2019, 2:43 a.m. Pa

Re: Incrementals error in Jenkins CI for GitLab Branch Source Plugin

2019-07-16 Thread Parichay Barpanda
UTC+5:30, Jesse Glick wrote: > > On Sun, Jul 14, 2019 at 11:53 AM Parichay Barpanda > > wrote: > > We can also avoid the error by adding `-Dignore.dirt` flag to Maven > config as was suggested by Marky Jackson. > > No, fix your build process. > > > https:

Re: Incrementals error in Jenkins CI for GitLab Branch Source Plugin

2019-07-15 Thread Parichay Barpanda
gt; On Sunday, 14 July 2019 21:06:47 UTC+5:30, Parichay Barpanda wrote: >> >> I don't think in our code we are optimisation the docs images or making >> changes to the docs images. I was thinking the images were indented in the >> markdown, so the markdown parser could b

Re: Incrementals error in Jenkins CI for GitLab Branch Source Plugin

2019-07-14 Thread Parichay Barpanda
We can also avoid the error by adding `-Dignore.dirt` flag to Maven config as was suggested by Marky Jackson. On Sun 14 Jul, 2019, 21:06 Parichay Barpanda, wrote: > I don't think in our code we are optimisation the docs images or making > changes to the docs images. I was thinking the

Re: Incrementals error in Jenkins CI for GitLab Branch Source Plugin

2019-07-14 Thread Parichay Barpanda
ng in the build, or > something else that would change those files? > > On Sun, Jul 14, 2019 at 8:51 AM Parichay Barpanda > wrote: > >> Thanks Mark and Batmat. I am not sure if it was due to #1218 not being >> merged. Because soon as it was merged the pipeline still fail

Re: Incrementals error in Jenkins CI for GitLab Branch Source Plugin

2019-07-14 Thread Parichay Barpanda
lar errors with webapp dir, so I had to remove it and add to .gitignore. Maybe Mark is right but again I am not sure. On Sunday, July 14, 2019 at 3:55:32 PM UTC+5:30, Parichay Barpanda wrote: > > Hi all, > > GitLab Branch Source Plugin was recently hosted on `jenkinsci` org. But > th

Incrementals error in Jenkins CI for GitLab Branch Source Plugin

2019-07-14 Thread Parichay Barpanda
Hi all, GitLab Branch Source Plugin was recently hosted on `jenkinsci` org. But the build is failing on Jenkins CI. I am unable to figure out the error. Can someone help me figure this out? The build information can be found here -

Re: Pass the data to QueueListener to RunListener

2019-07-13 Thread Parichay Barpanda
I implemented a class which will notifies GitLab Server about the job status. https://github.com/baymac/gitlab-branch-source-plugin/blob/develop/src/main/java/io/jenkins/plugins/gitlabbranchsource/helpers/GitLabSCMPipelineStatusNotifier.java I have a suggestion (In reference to that), you can

Re: Dependencies required for pipeline jobs in hpi:run

2019-07-06 Thread Parichay Barpanda
workflow-step-api > 2.19 > test > > > (Or maybe definition- https://plugins.jenkins.io/pipeline-model-definition > ) > > On Thu., Jul. 4, 2019, 9:04 p.m. Parichay Barpanda, < > parichay.barpa...@gmail.com> wrote: > >> Hi all, >&g

Dependencies required for pipeline jobs in hpi:run

2019-07-04 Thread Parichay Barpanda
Hi all, I am working Branch Source part of GitLab Plugin. There are a different bugs that needs attention but for now, the basic branch indexing and branch building for Multibranch Pipeline Jobs works just fine. I want to test the pipeline jobs with `mvn hpi:run`. But when a branch is getting

Requirement for GitLab Ultimate for GitLab Branch Source Development

2019-06-21 Thread Parichay Barpanda
Hi all, GitLab grants access to it's enterprise editions for open source projects. The list can be found here - https://about.gitlab.com/solutions/open-source/projects/. The list says `GitLab Plugin ` project under Jenkins org has been granted

Re: Request to review: How to fix RequireUpperBoundDeps

2019-06-17 Thread Parichay Barpanda
: > > Your highest is the 3rd one, org.jenkins-ci.plugins:structs:1.18, so it > needs to be at least 1.18 > > On Mon, Jun 17, 2019 at 4:30 PM Parichay Barpanda > wrote: > >> Hi ikedam, >> >> Thanks for the wiki it was helpful. I am working on GitLab Branch Sourc

Re: Request to review: How to fix RequireUpperBoundDeps

2019-06-17 Thread Parichay Barpanda
Hi ikedam, Thanks for the wiki it was helpful. I am working on GitLab Branch Source Plugin and I faced similar errors. I used the `dependency management` method to fix it. While it worked for some of the dependencies it didn't work for some and I am still getting the following error: [INFO]

Re: Creating an env variable via API

2019-06-12 Thread Parichay Barpanda
Just recorrecting myself here. I misconfused global properties with environment variables. Joseph Peterson clarified to me later. So I guess the previous method is not how it works with JCasC. Thanks. On Wednesday, June 12, 2019 at 6:50:46 AM UTC+5:30, Parichay Barpanda wrote: > > I

Re: Creating an env variable via API

2019-06-11 Thread Parichay Barpanda
store env variables values in a password form rather than plain text. On Tuesday, June 11, 2019 at 8:24:32 AM UTC+5:30, Parichay Barpanda wrote: > > Hi all, > > I am trying to figure out a way to add an environment variable to Jenkins > without using the UI. Is there a way to do it via

Re: Creating an env variable via API

2019-06-11 Thread Parichay Barpanda
What I do for this is set the SECRETS environment variably and point it to > a directory on the file system which had the secrets in it. > Basically pretending I’m using docker secrets > > Thanks > Tim > > On Tue, 11 Jun 2019 at 10:27, Parichay Barpanda < > parichay.barpa...@gmail.c

Re: Creating an env variable via API

2019-06-11 Thread Parichay Barpanda
can create credentials using groovy, example - > https://github.com/halkeye-docker/docker-jenkins/blob/22ba8c4408b3a16188dc9fe967293849e8f12468/groovy/0012-add-tokens.groovy#L50-L57 > > On Mon, Jun 10, 2019 at 8:12 PM Parichay Barpanda < > parichay.barpa...@gmail.com> wrote: > &

Re: Creating an env variable via API

2019-06-10 Thread Parichay Barpanda
:24:32 AM UTC+5:30, Parichay Barpanda wrote: > > Hi all, > > I am trying to figure out a way to add an environment variable to Jenkins > without using the UI. Is there a way to do it via API? The intention is to > let user add credentials to Jenkins without using UI. Please let

Creating an env variable via API

2019-06-10 Thread Parichay Barpanda
Hi all, I am trying to figure out a way to add an environment variable to Jenkins without using the UI. Is there a way to do it via API? The intention is to let user add credentials to Jenkins without using UI. Please let me know if you have a solution to this. Thanks. Regards, Parichay

Re: Seeking information about GitHub Branch Source Plugin

2019-05-20 Thread Parichay Barpanda
; Bitbucket Branch Source are suffering from a couple of branch-api/scm-api > generations of rewrites that can "muddy the waters a bit" when looking at > writing a new plugin :) > > /B > > Den sön 19 maj 2019 kl 18:19 skrev Parichay Barpanda < > parichay.bar

Re: Seeking information about GitHub Branch Source Plugin

2019-05-19 Thread Parichay Barpanda
Thanks batmat for the answers. On Sun 19 May, 2019, 21:27 Baptiste Mathus, wrote: > > > Le mer. 15 mai 2019 à 22:17, Parichay Barpanda < > parichay.barpa...@gmail.com> a écrit : > >> Hi all, >> >> I was reading the GitHub Branch Source Plugin documenta

Re: Dependency plugin specifier in Pom.xml

2019-05-18 Thread Parichay Barpanda
lve > this kind of issue. > > On Sat, 18 May 2019 at 9:35 PM, Parichay Barpanda < > parichay.barpa...@gmail.com> wrote: > >> Hi Vignesh, >> >> I am not quite sure I understand your problem but installing your >> dependency plugins before installing your plu

Seeking information about GitHub Branch Source Plugin

2019-05-15 Thread Parichay Barpanda
Hi all, I was reading the GitHub Branch Source Plugin documentation here - https://go.cloudbees.com/docs/plugins/github-branch-source/ trying to take some inspiration from *GitHub Branch Source Plugin* for a similar *GitLab Branch Source Plugin*. Here are a few questions I would like to ask:

Re: Wrapping Gitlab API into a separate plugin

2019-04-29 Thread Parichay Barpanda
Thanks Matt that was helpful. :) On Mon, Apr 29, 2019 at 10:08 PM Matt Sicker wrote: > The main advantage to using an API plugin is to allow the library to > be reused by other plugins without each plugin needing to maintain > updates to the dependencies manually. Instead, the API plugin is

Wrapping Gitlab API into a separate plugin

2019-04-27 Thread parichay . barpanda
Hi all, I am working on improving the Gitlab Plugins. The first plan is to move to a *gitlab-api-plugin* which provides Gitlab Java Apis rather than using the ones implemented inside the plugins codebase. This will be similar to

Re: Feedback for local maven workflow in Jenkins Plugin Dev

2019-04-15 Thread Parichay Barpanda
:13 PM Parichay Barpanda > > wrote: > > I ran the following command (the additional params for groupid, > artifactid, version are optional).: > > > > mvn install:install-file > -Dfile=/home/parichay/gsoc/gitlab-plugin/lib/gitlab-api.jar > -DgroupId=io.

Re: Feedback for local maven workflow in Jenkins Plugin Dev

2019-04-15 Thread Parichay Barpanda
rget* directory of the first plugin"? I will read your JEP when I have some time. Regards, Parichay (baymac) On Mon 15 Apr, 2019, 18:39 Jesse Glick On Sun, Apr 14, 2019 at 9:16 PM Parichay Barpanda > wrote: > > I was working on 2 different plugins. > > Private plugins, or hos

Feedback for local maven workflow in Jenkins Plugin Dev

2019-04-14 Thread Parichay Barpanda
Hi all, I would like to share my views on local Jenkins Plugin development as an inexperienced programmer. I was working on 2 different plugins. The second plugin needed a way to depend on the first plugin. There were multiple ways it could be done like: i) Pushing the artifact to a

Re: Creating a new Gitlab SCM Plugin with Multibranch Pipeline support

2019-04-04 Thread Parichay Barpanda
happy to continue the conversation in that > forum. I just wanted to share more widely what the state of the plugin and > past proposals for this feature work are. > > Thanks again for your interest in contributing! > > On Monday, April 1, 2019 at 5:45:11 PM UTC+11, Parichay Barp

Re: Creating a new Gitlab SCM Plugin with Multibranch Pipeline support

2019-04-01 Thread Parichay Barpanda
an write your proposal in a Goole Doucment that would be easy to > comment and discuss. > > Best regards, > Rick > > > On Mon, Apr 1, 2019 at 11:58 PM Parichay Barpanda < > parichay.barpa...@gmail.com> wrote: > >> Hi Matt, >> >> Yeah I lately rea

Re: Creating a new Gitlab SCM Plugin with Multibranch Pipeline support

2019-04-01 Thread Parichay Barpanda
2019 at 1:45 AM Parichay Barpanda > wrote: > > > > Hi all, > > > > I am preparing a proposal to add Multibranch Pipeline support to the > Gitlab plugin. Existing Gitlab plugin does not support Multibranch pipeline > builds in a way that it enables build triggers bu

Creating a new Gitlab SCM Plugin with Multibranch Pipeline support

2019-04-01 Thread Parichay Barpanda
Hi all, I am preparing a proposal to add Multibranch Pipeline support to the Gitlab plugin. Existing Gitlab plugin does not support Multibranch pipeline builds in a way that it enables build triggers but cannot configure the variables (basically multibranch pipeline support is non-existent) -

Re: Running shell commands with sudo in pipeline

2019-03-28 Thread Parichay Barpanda
ah `id` is simpler. :) On Fri 29 Mar, 2019, 05:51 Gavin Mogan this really belongs on the user list. > > I would run `id` to see what your current shell's permissions are, I would > guess your changes to your groups were added after you logged in. > > On Thu, Mar 28, 2019 at 3:56

Re: Running shell commands with sudo in pipeline

2019-03-28 Thread Parichay Barpanda
) On Friday, March 22, 2019 at 11:29:41 AM UTC+5:30, Parichay Barpanda wrote: > > Hi Jon, > > It worked for me! Thanks for the help. :) > > Regards, > Parichay (baymac) > > On Friday, March 22, 2019 at 6:58:06 AM UTC+5:30, Jon Hermansen wrote: >> >> Parichay,

Re: Unable to ssh into my Jenkins docker instance

2019-03-25 Thread Parichay Barpanda
w ssh traffic through to the Jenkins port that is > listening for ssh. Just as it has a port 8080 command line argument, it > needs another argument that will allow ssh traffic to reach Jenkins. > > Mark Waite > > On Sat, Mar 23, 2019 at 7:37 PM Parichay Barpanda < > parichay.ba

Unable to ssh into my Jenkins docker instance

2019-03-23 Thread Parichay Barpanda
Hi all, I am trying to use Jenkins Remote CLI to configure my Jenkins server remotely. I am running a jenkinsci/blueocean docker container. To enabled SSHD on my jenkins server: 1) At http://localhost:8080/configureSecurity/ : Enabled SSHD Port -> Random 2) AT

Re: Running shell commands with sudo in pipeline

2019-03-22 Thread Parichay Barpanda
s owned by the docker group. To be able > to write to it, you can add your user(s) to the same group. > > On Thu, Mar 21, 2019 at 7:03 PM Parichay Barpanda > > wrote: > > > > Umm.. I'm trying to develop on a plugin(specifically Blue ocean plugin). > To do a dry ru

Re: Running shell commands with sudo in pipeline

2019-03-21 Thread Parichay Barpanda
trying to use Jenkins, or develop a plugin? > > Can you please clarify your use case? > > Thanks > > Le jeu. 21 mars 2019 à 21:06, Parichay Barpanda < > parichay.barpa...@gmail.com> a écrit : > >> In my case if I am not running the Jenkins in a docker but on my

Re: Running shell commands with sudo in pipeline

2019-03-21 Thread Parichay Barpanda
ent user mistakes. It is less > dangerous to allow the agent user to run docker than to allow the agent > user to use sudo to become root. > > On Thu, Mar 21, 2019 at 1:45 PM Parichay Barpanda > wrote: > >> I am running a plugin on my local machine with this c

Running shell commands with sudo in pipeline

2019-03-21 Thread Parichay Barpanda
I am running a plugin on my local machine with this command: mvn hpi:run My repository contains a Jenkinsfile which runs a docker image to build a latex document. Jenkinsfile looks like: pipeline { agent none stages { stage('Build') { agent { docker {

Re: Difference between hpi and jpi plugins

2019-03-20 Thread Parichay Barpanda
les will be renamed to .jpi as you mentioned. There really is not a > difference. > > On Wed, Mar 20, 2019, 15:09 Parichay Barpanda > wrote: > >> How are *.hpi and *.jpi plugins different? >> >> For example, when I install github-branch-source-plugin from my Je

Difference between hpi and jpi plugins

2019-03-20 Thread Parichay Barpanda
How are *.hpi and *.jpi plugins different? For example, when I install github-branch-source-plugin from my Jenkins instance, it installs *.jpi plugin (that is what i find under /var/jenkins_home/plugins). And when I clone the source code of the same plugin and I run 'mvn install', I get a

Re: Blueocean generator for Blueocean plugin development

2019-03-19 Thread Parichay Barpanda
Hi Keith, Thanks for the help. I needed this for one of my stretch goals for GSoC '19 which is to implement an artifact that extends *GitLab* branch source plugin into Blue ocean. > > Regards, Parichay (baymac) -- You received this message because you are subscribed to the Google Groups