Mask password Plug-In: Is there a way to automate password filed update with new password in mask password

2019-05-28 Thread Narayana I
Mask password Plug-In: Is there a way to automate password filed update 
with new password in "Mask passwords and regexes (and enable global 
passwords)" under "Build Environment"

-- 
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 
https://groups.google.com/d/msgid/jenkinsci-users/0d7dd1de-5a67-48e6-9816-693440bab7b9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Unable to build Vue js project through Jenkins

2019-05-28 Thread LP
Hi Jan,
Sorry for the late response, I was off for a while. Yes, I can run commands 
on the windows agent. I solved the problem! Apparently I could not run 
these two commands in one window: npm install and npm run build . When I 
separated it and run it in two separate 'execute windows batch command' it 
works. Thanks for the response!


On Saturday, May 18, 2019 at 1:19:31 PM UTC-4, Jan Monterrubio wrote:
>
> Can you use any command on the windows agent? Let’s double check that 
> things are running on it. Try to just echo something. 
>
> Is npm installed? If not you’d get a command not found error when running. 
>
> On Wed, May 15, 2019 at 15:17 LP > wrote:
>
>> Hi, I am new to Jenkins but have done a few builds/deployment jobs of 
>> .net project successfully. Now I am trying to build/deploy  Vue js project 
>> through Jenkins but just cannot get through...
>> I can build the project directly on a server using command prompt. It 
>> builds and creates files for deployment in a right directory. 
>> When I am trying to do it in Jenkins job (using the same npm commands) it 
>> does not give any error messages, says it built successfully but it does 
>> NOT create any files for deployment. 
>> Does anybody encounter this problem? Did anybody build Vue js project 
>> through Jenkins? Any help appreciated. Thanks!
>>
>> -- 
>> 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 jenkins...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/c3eb0ee9-6aac-4c5d-8d59-9282310b7a80%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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 
https://groups.google.com/d/msgid/jenkinsci-users/3559c80a-8c67-4228-931f-469385129605%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Custom action on job/build delete

2019-05-28 Thread Federico Giovanardi
Hello,

we've a pipeline job which is uploading artifacts to a remote server. It's 
there any way to
hook a custom action or a script to the job's delete event to purge the 
remote data when the
job gets deleted by "Discard old build"

Best regards.
Federico

-- 
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 
https://groups.google.com/d/msgid/jenkinsci-users/c8aa93b7-21ce-41c5-9f79-e28b3d8f7d7f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Pipeline with multiple Git repositories - how to checkout?

2019-05-28 Thread Mark Waite
Git takes full control of the directory for each checkout.  Thus, the last
checkout "wins" by containing the content of only that checkout.

Perform a checkout command for each repository in a separate directory.
Create the directory for each checkout with the dir() step or the ws()
step, and place the checkout inside the block from that step.  Something
like this:

dir('dir-1-for-repo-1') {
  checkout([$class: 'GitSCM', branches: [[name: gitBranch]], extensions: [[
$class: 'CloneOption', timeout: 120]],
  userRemoteConfigs: [[credentialsId: "${credentialsId}", url:
mainProjectGITURL ]  ]])
}
dir('dir-2-for-repo-2') {
  checkout([$class: 'GitSCM', branches: [[name: gitBranch]], extensions: [[
$class: 'CloneOption', timeout: 120]],
  userRemoteConfigs: [[credentialsId: "${credentialsId}", url:
list[0] ]  ]])
}

On Tue, May 28, 2019 at 4:14 AM Jacques van der Merwe 
wrote:

> I know this is fairly old thread but I have an issue
> when using the multi repo checkout it seems to remove the previous repo
> checkout before doing the new one.
> I have tried checking all the repos required for my build using the
> Jenkins Declarative "checkout" command
> checkout([$class: 'GitSCM', branches: [[name: "${gitBranch}"]],
> doGenerateSubmoduleConfigurations: false, extensions: [[$class:
> 'CloneOption', timeout: 120]], submoduleCfg: [], userRemoteConfigs: [
>  [credentialsId: "${credentialsId}", url: "${mainProjectGITURL}"],
>  [credentialsId: "${credentialsId}", url: "${list[0]}"],
>  [credentialsId: "${credentialsId}", url: "${list[1]}"],
>  [credentialsId: "${credentialsId}", url: "${list[2]}"],
>  [credentialsId: "${credentialsId}", url: "${list[3]}"]
>  ]])
> With this config I can see on my build server each project are being
> checked out but only the last project is availbale after this checkout.
>
>
Multiple userRemoteConfigs in a single checkout command will perform a
single checkout of one of the remote configs.  It won't iterate over the
list of remote configs and definitely won't create the separate
subdirectories that would be needed to retain a checkout of multiple
repositories.

Multiple userRemoteConfigs in a single checkout are allowed as a historical
use that was allowed for those rare cases where multiple locations
contained the same repository and any one of the repositories could be
used.  Multiple userRemoteConfigs won't help in this case and they don't
help in almost all cases.


> I also tried doing in a loop using "git" only
>def list = "${includedProjectsGITURLS}".split("\n")
> echo "Number of repos : " + list.size()
> echo "Checking out main project (${gitBranch}) :  " +
> mainProjectGITURL + "\n";
> git credentialsId: 'blablabla', url: "${mainProjectGITURL}"
> for (String gitSubURL:list)
>  {
> echo "Checking out sub project (${gitBranch}) :  " + gitSubURL + "\n";
> git credentialsId: 'blablabla', url: "${gitSubURL}"
>  }
> The result is the same, making me think "checkout" is just wrapper for GIT
>
>
The git step is a simplified form of the checkout step.  If your case does
not need the full capability of the checkout step, you are welcome to use
the git step.  I find that I almost always want the checkout step because
it allows me to control things more precisely.


> I also tried checking each repo into its own sub folder but the result is
> the same
>
>
We'll need more explanation of what was tried in this case, since that is
the technique that works for many users.

Thanks,
Mark Waite


> any ideas how I can checkout multiple repos in Jenkins declarative script
> for single build
>
>
>
> On Wednesday, December 21, 2016 at 7:25:43 PM UTC+2, Torsten Reinhard
> wrote:
>>
>> Hi,
>>
>> I have a pipeline doing a build and afterwards a deployment to the TEST
>> environment.
>>
>> For the build I need to
>> // checkout sources for building
>> checkout scm
>>
>> and later on I need to
>> //checkout configuration for TEST environment
>> checkout scm (config)
>>
>> I wasn´t able to configure a working directory for each repo - and the
>> "Multiple SCMs plugin" is deprecated with a hint to the Pipeline plugin.
>> How can I setup the Pipeline job so it´s using "Pipeline script from SCM"
>> AND additionally some files/configs from a different repo?
>>
>> I know about the workaround with subtrees and also this issue:
>> https://issues.jenkins-ci.org/browse/JENKINS-13228,
>> but I´m wondering why help points to the Pipeline plugin ?
>>
>> Any sample setup available ?
>>
>> Thanx for helping,
>>
>> Torsten
>>
>> --
> 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
> https://groups.google.com/d/msgid/jenkinsci-users/0d41e558-853d-4cbc-8b8f-fbcdfffedb57%40googlegroups.com
> 

Re: Pipeline with multiple Git repositories - how to checkout?

2019-05-28 Thread Jacques van der Merwe
I know this is fairly old thread but I have an issue
when using the multi repo checkout it seems to remove the previous repo 
checkout before doing the new one. 
I have tried checking all the repos required for my build using the Jenkins 
Declarative "checkout" command
checkout([$class: 'GitSCM', branches: [[name: "${gitBranch}"]], 
doGenerateSubmoduleConfigurations: false, extensions: [[$class: 
'CloneOption', timeout: 120]], submoduleCfg: [], userRemoteConfigs: [
 [credentialsId: "${credentialsId}", url: "${mainProjectGITURL}"],
 [credentialsId: "${credentialsId}", url: "${list[0]}"],
 [credentialsId: "${credentialsId}", url: "${list[1]}"],
 [credentialsId: "${credentialsId}", url: "${list[2]}"],
 [credentialsId: "${credentialsId}", url: "${list[3]}"]
 ]])
With this config I can see on my build server each project are being 
checked out but only the last project is availbale after this checkout.

I also tried doing in a loop using "git" only
   def list = "${includedProjectsGITURLS}".split("\n")
echo "Number of repos : " + list.size()
echo "Checking out main project (${gitBranch}) :  " + mainProjectGITURL 
+ "\n";
git credentialsId: 'blablabla', url: "${mainProjectGITURL}"
for (String gitSubURL:list)
 {
echo "Checking out sub project (${gitBranch}) :  " + gitSubURL + "\n";
git credentialsId: 'blablabla', url: "${gitSubURL}"
 }
The result is the same, making me think "checkout" is just wrapper for GIT

I also tried checking each repo into its own sub folder but the result is 
the same

any ideas how I can checkout multiple repos in Jenkins declarative script 
for single build



On Wednesday, December 21, 2016 at 7:25:43 PM UTC+2, Torsten Reinhard wrote:
>
> Hi, 
>
> I have a pipeline doing a build and afterwards a deployment to the TEST 
> environment.
>
> For the build I need to 
> // checkout sources for building
> checkout scm
>
> and later on I need to 
> //checkout configuration for TEST environment
> checkout scm (config)
>
> I wasn´t able to configure a working directory for each repo - and the 
> "Multiple SCMs plugin" is deprecated with a hint to the Pipeline plugin.
> How can I setup the Pipeline job so it´s using "Pipeline script from SCM" 
> AND additionally some files/configs from a different repo?
>
> I know about the workaround with subtrees and also this issue: 
> https://issues.jenkins-ci.org/browse/JENKINS-13228, 
> but I´m wondering why help points to the Pipeline plugin ? 
>
> Any sample setup available ?
>
> Thanx for helping, 
>
> Torsten
>
>

-- 
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 
https://groups.google.com/d/msgid/jenkinsci-users/0d41e558-853d-4cbc-8b8f-fbcdfffedb57%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


DesignSync Synchronicity compatibility with Jenkins ?

2019-05-28 Thread Pierre Paoli
Hello,

we use DesignSync as Data Management system for asci files and binary files.
We have simulations and tests based on the execution of files and the 
parsing of result files.
Is there a possibility to run the tests with Jenkins with the data on 
DesignSync server ?

thanks,
Pierre

-- 
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 
https://groups.google.com/d/msgid/jenkinsci-users/5e138726-49ed-42d1-9fe1-4629dd5d2d4a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.