Not understanding how input parameters are supported by Blue Ocean for multi branch

2017-11-28 Thread itchymuzzle
I have a Jenkinsfile, which includes this:

parameters {
string(name: 'Stack', defaultValue: 'DEV', description: 'For which 
environment is this?')
string(name: 'Version', defaultValue: '3.2.0-beta.0', description: 'What is 
the release version?')
}

And works great, running it in the "regular" Jenkins UI.  Get a popup 
window and everything.  Even for multi branch projects/jobs.  

But when I use the Blue Ocean interface for the multi branch job, no popup 
window.  The default values are just used.  Am I not understanding some 
thing here?  

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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/c467473a-7ce7-4fbe-91c9-71dfc3c9c1ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Starting Jenkins slave as Windows service

2017-11-28 Thread itchymuzzle
Go to Jenkins server, select the node you have defined for this Windows 
instance.  It will give you the command you need to run, on the command 
line.  

Test that that works on the command line, then figure our how to get 
procron to do that for you.  

The command will look something like this (use google for other examples): 

"java -jar agent.jar -jnlpUrl 
http://ip-of-jenkins-server:port-of-jenkins-server/computer/name-of-node/slave-agent.jnlp
 -secret long-unique-number"


-- 
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/789bc8e1-d8ec-4582-9afd-71e58654057d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Starting Jenkins slave as Windows service

2017-11-28 Thread itchymuzzle
Not clear what command you used.

-- 
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/c1590b5b-b2b1-4f3b-a969-4e2dab42c50e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How can I create Pipeline with TestNG? I am creating scripts using Selenium(Java) and TestNG.

2017-11-28 Thread itchymuzzle
What do you already have setup and working?  Jenkins server, and a node?  
Jenkinsfile in place?  ...

-- 
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/0a716038-fd2f-46ad-a063-7d3c228dcf1c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: trouble with Bitbucket Branch Source Plugin

2017-11-21 Thread itchymuzzle
Not an answer to your question, but to get to your issue you must have 
gotten past the one I am having.  Can you take a look at my question? 
[https://groups.google.com/forum/#!topic/jenkinsci-users/n3JaXcXFzVs]  
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/f77cf19d-5351-499b-9fd1-38e624e64dac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Existing credentials are not available for multi-branch jobs

2017-11-21 Thread itchymuzzle
> Suck it and see...
Ha!

-- 
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/4f225030-5f28-4eb0-832e-f4264f0850a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Existing credentials are not available for multi-branch jobs

2017-11-21 Thread itchymuzzle
Looking at the documentation [
https://go.cloudbees.com/docs/cloudbees-documentation/cje-user-guide/index.html#bitbucket]

It doesn't mention what permissions to select when creating an app 
password.  

It also says there are two credentials needed, one for scan and another for 
checkout.  And their screen shot shows that.  But that appears to be out of 
date.  I have the latest version of the plugin and it is only is asking for 
one credential.

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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/7973062c-c429-4e7d-83fa-d52da2f36031%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Existing credentials are not available for multi-branch jobs

2017-11-21 Thread itchymuzzle
Attempting to use username and app password I get the error.

 Could not find: 

-- 
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/0402aad5-652e-4b78-946d-8b5527211142%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Existing credentials are not available for multi-branch jobs

2017-11-21 Thread itchymuzzle
Ok, so attempting with my username and password I this message.  It appears 
under the Repo Name drop-down, and there are no selections in the 
drop-down.  I have admin permissions on this account.  

The selected credentials do not have permission to determine whether 
 does ordoes not exist.

And ya, there is no space in "ordoes".  

Atlassian does this thing where I login using my Google password.  Not sure 
it that could be confusing things.





-- 
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/4344ac15-0f73-427d-bb3c-fd3e54d764fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Existing credentials are not available for multi-branch jobs

2017-11-20 Thread itchymuzzle


Don’t understand, do I need to create new ones? 

 

When creating pipeline job all the credentials which I have, are available 
to use.   The one named “git” in the screen shot is the one for Bitbucket.




But when I create a multi-branch project there are no credentials offered 
in the drop-down.  



 

  

Jenkins v2.79 AWS EC2 Linux instances for both master and node, Bitbucket 
for Git

 

I tried asking this question a couple of weeks ago here, but got myself off 
track so starting over. 

[https://groups.google.com/d/msg/jenkinsci-users/1Y4bCyqfuF0/FYLAUc7iCgAJ]


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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/0dcfb475-ca20-4386-a145-d6660df77018%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins Workspace is not getting updated after the changing a blue ocean pipe line.

2017-11-13 Thread itchymuzzle
Did you try and just create a new job?  Delete the one you have, and try 
again.  

-- 
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/c402f865-bb5b-420f-b679-ae9737ed8ee3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkinsfile and its complete properties list

2017-11-13 Thread itchymuzzle
If you use Github or Bitbucket there are plugins for each of those. 

-- 
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/d8881445-7f1e-494a-a701-ccd672add272%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins pipeline editor

2017-11-10 Thread itchymuzzle

>
> Does 
> https://groups.google.com/d/msg/jenkinsci-users/S0_etu_70oY/0jQJRISJAgAJ 
> help? 
>

Yes, and no.  I get hung up with IDEA, and being able to create new 
projects.  I already have the code set up as a java project, and just kept 
going around in circles trying to get it recognized as a groovy project.  I 
can only spend some much time on each item, before I just need to move on 
to the next thing I am supposed to be working on.  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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/213dcedb-8e67-4c31-a353-a5d44839457c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Link to "Bitbucket Pipeline for Blue Ocean" in Plugin Manager doesn't work

2017-11-10 Thread itchymuzzle
https://issues.jenkins-ci.org/browse/JENKINS-47943

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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/d0a2c3f9-4628-4c4a-82b7-d413fe22178a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins pipeline editor

2017-11-10 Thread itchymuzzle
> I don't have a license
IntelliJ IDEA community version is free.  I use this IDE but wasn't able to 
get that feature working.

Visual Studio Code gives me syntax highlighting and auto suggestions.  But 
fuzzy if that is just a groovy thing.

-- 
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/4a05a297-6458-4aba-a776-118ef95a06f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Link to "Bitbucket Pipeline for Blue Ocean" in Plugin Manager doesn't work

2017-11-08 Thread itchymuzzle
Successfully installed plugin.  The link for the text of name of the plugin 
does work 
[https://wiki.jenkins-ci.org/display/JENKINS/Blue+Ocean+Plugin/blueocean-bitbucket-pipeline]
  
Get page not found.



This is bug report, not a question.  If there is a better place to report 
this let me know.

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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/a98964c8-7bdc-47fb-b67c-eb4ee45b28d6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Multibranch not able to use existing credential, or create a new one

2017-11-07 Thread itchymuzzle
> This only accepts username/password credentials

Ok, but ...

Bitbucket has my public key, and the Jenkins credential has my private key.



-- 
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/8cd604a8-73ef-4141-8b98-a96e2d823704%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Multibranch not able to use existing credential, or create a new one

2017-11-07 Thread itchymuzzle
> Is the credential attached to the folder which contains the working job, 
but not visible from the folder of the non-working job?  Folder scoped 
credentials are a great way to limit who can use specific credentials.


It says global, is that not the case?

-- 
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/9d93de02-81be-4e29-91eb-b3d8f077f2ad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Multibranch not able to use existing credential, or create a new one

2017-11-07 Thread itchymuzzle
Looking back at my notes I am not using bitbucket App password, that item 
must have been left over from my very first attempts.  So my bad on that 
item.

But I still have the original issue, that when I am creating a new 
multibranch job I am not able to select/find/see my existing credentials.  
Which sets me off in the loop of trying to create a new one.

(screen shot) The first drop-down only has a selection of None, while the 
second drop-down has selections of "Multibranch_test_02" and "Jenkins", 
both forcing me to create new ones.

Why I can't I use/find/see/select the credential I already have for 
bitbucket, which works.



-- 
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/d8ba7267-f4b8-4a17-afdc-430fe8c3ce77%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Multibranch not able to use existing credential, or create a new one

2017-11-07 Thread itchymuzzle
> resulting Bitbucket app password 

It is the value in the ID field, in the first screen shot.


-- 
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/15f37ec5-87ea-454b-8d96-59ef38844766%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Multibranch not able to use existing credential, or create a new one

2017-11-07 Thread itchymuzzle
I have tried creating the credential without the app password, and that 
doesn't seem to work. 

-- 
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/97f7d627-a8ba-4274-89a9-d41444344749%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Multibranch not able to use existing credential, or create a new one

2017-11-07 Thread itchymuzzle
Do these screen shots help?

Credential which works



The bitbucket app passwords (just showing label column)





-- 
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/27efbee6-3343-463f-86fe-fa2d3cb7e035%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Multibranch not able to use existing credential, or create a new one

2017-11-07 Thread itchymuzzle


Jenkins v2.79 AWS EC2 Linux instances for both master and node, Bitbucket 
for Git


This is really strange.  I have a credential which is working fine for a 
“regular” pipeline.  The credential contains a private ssh key and 
Bitbucket app password.  


When I create the multibranch job it is 


   - not able to find/see that existing credential, and 
   - is not able to create a new one using that same private ssh key, and a 
   new Bitbucket app password. 
   

Been going around in circles for hours now, doesn’t make any sense.  Any 
idea what I am not understanding here?


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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/0c73ff95-27ad-43c8-bcd6-444252d86850%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: SharedLibrary, clone, using resources

2017-11-06 Thread itchymuzzle


Sounds a little related: 

Provide lightweight checkout capability for bitbucket to avoid repo clone 
of rmulti-branch pipelinejobs link 
 

-- 
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/3a780803-e052-42c3-a7b8-e5cb471c13cc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Quess I am confused about “node” in pipeline

2017-11-06 Thread itchymuzzle
I am using "label" to define what gets run where.  

-- 
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/52c48a85-5784-4739-bce5-3fd788e31edf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Quess I am confused about “node” in pipeline

2017-11-06 Thread itchymuzzle


I thought “node” was a scripted pipeline thing, but item #4 in this: 
 [https://www.cloudbees.com/blog/top-10-best-practices-jenkins-pipeline-plugin] 
seems to disagree with that.  

 

So I am suppose to use “node” to ensure the Jenkins master doesn’t do any 
work?  Doesn’t setting executors to zero also ensure that?


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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/46409888-1c0a-445c-8a87-e231cc2b6b10%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: SharedLibrary, clone, using resources

2017-11-03 Thread itchymuzzle
I have this same question.  

-- 
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/c42cc35d-d081-4cf1-8435-bc96b9abf386%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: SharedLibrary, clone, using resources

2017-11-03 Thread itchymuzzle
Please post something which is readable.  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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/cc1a1fd3-d2c6-440c-b3be-642f1634dbc4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Fail to install Jenkins slave agent as a service

2017-11-03 Thread itchymuzzle

>
>
> now with the running slave click the menu item to "Install as Service".
>
> Just discovered this page 

 which 
helps me understand this step, I think.

It seems that you run a web browser on the Windows instance, where you have 
the slave/agent, and use the URL for the Jenkins master web page.

-- 
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/a50d76e5-a2ef-49d6-a071-bb0e170f1b47%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Fail to install Jenkins slave agent as a service

2017-11-03 Thread itchymuzzle

>
>
> - download slave-agent.jnlp from agent page - I think it's under this 
> 'launch via web' button, or something, I don't remember what it says :) 
> - open a command window with "Run as Administrator".
> - change directory to the place where you saved the slave-agent.jnlp file.
> - run "slave-agent.jnlp"
> - now with the running slave click the menu item to "Install as Service".
> - run services.msc and you can find and configure your service
>

This is just confusing.  You need to give us more detail if you want to be 
helpful.  Please be helpful.

> now with the running slave click the menu item to "Install as Service".
 
Where are you, when you are doing this?  Are you on the Jenkins web page?  
If so, from which instance/host/node are you running the web page?  

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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/bbcb7c5c-1100-4ab4-9a08-7e8bff335279%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: github enterprise self signed certs

2017-11-03 Thread itchymuzzle
Free ones

https://letsencrypt.org/

-- 
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/998feca5-4676-4295-9fd8-a4df11d38a7b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Sourcing environment variables on node

2017-11-02 Thread itchymuzzle
Don't know how to set it globally, most likely someone will know how to do 
that and respond.

> each sh looses it's environment.

Each sh is it's own environment.  If you have two different terminals up, 
what you do in one isn't known in the other. For example.

-- 
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/a7590e90-e66a-446f-9692-7dfcc6b92d30%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Sourcing environment variables on node

2017-11-02 Thread itchymuzzle
Maybe something like this?

node ('remote-server') {
sh '''
   . /home/cmr/myenv'
   echo "My Variables: ${env.FOO} ${env.BAR}"
'''
}

-- 
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/86f0cdd9-5705-4d12-8229-210ce6614aee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Is there a way of cloning the repo an additional layer down?

2017-11-02 Thread itchymuzzle
Helpful, as always, thanks.  I will take a look at that.

-- 
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/683f7e48-f3a2-4bb2-84b7-72148d5d43bf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: CI/CD Jenkins for Non Java projects

2017-11-02 Thread itchymuzzle


#! /usr/bin/env groovy
pipeline {
agent any
parameters {
string(name: 'Version', defaultValue: '2.3.0', description: 'What 
is the release version?')
}
stages {
stage('Build') {
steps {
sh 'unix command(s) to build'
}
}

stage('Deploy') {
steps {
sh 'unix command(s) to deploy'
}
}

  }

}

-- 
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/641ee79e-431c-4852-b37c-0848f04a860c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Is there a way of cloning the repo an additional layer down?

2017-11-01 Thread itchymuzzle
> If you use the dir('dest-dir') { checkout scm } syntax, you avoid using 
that special case from the git plugin, and have something that is 
maintained in code (and looks like pipeline), rather than something that 
looks like a special case of the git plugin.

This works, but the code is cloned twice.  Once in the workspace, then 
again into the sub directory defined by dir('dest-dir'), in the same 
workspace.  I assume there is no way around this, as Jenkinsfile needs to 
be found, to be able to use it.  But I figured I would ask.  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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/b9acde7c-a050-4b6b-8979-c97a51633959%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Trying to set value using powershell, in declarative pipeline

2017-10-31 Thread itchymuzzle


Doesn’t answer my original question, but is a valid work around.  

 

#! /usr/bin/env groovy
pipeline {
agent {label 'windows'}
parameters {
string(name: 'Version', defaultValue: '0.1', description: 'What is 
the release version?')
}
environment {
PYTHONPATH = "../DifferentDir"
}
stages {
stage('Build') {
steps {
script {
powershell '''
cd WebApp; 

..\\..\\..\\..\\Python27\\Lib\\venv\\scripts\\nt\\Activate.ps1; 
python -m BuildTools.build_codebase $env:Version clean 
package 
'''
}
}
}

 

This is without the Powershell plugin, still don’t understand what that 
plugin does.

-- 
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/3632e63e-f0c1-408a-b851-cd9ee98fe615%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Trying to set value using powershell, in declarative pipeline

2017-10-26 Thread itchymuzzle



#! /usr/bin/env groovy
pipeline {
agent any
stages {
stage('Build') {
steps {
script {
powershell '$env:Path'
powershell '$env:PYTHONPATH'
powershell '$env:PYTHONPATH = "../../dir" '
powershell '$env:PYTHONPATH'

 

The value for Path is printed, but nothing else.


The snippit generator gives me that syntax.  


The other confusing thing is that I get the same result with and without 
the PowerScript plugin.  So don’t understand what the plugin is supposed to 
be giving me.


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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/e62b09fe-9f08-4f5a-b050-a110966e7136%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: email with html file, problem with css

2017-10-26 Thread itchymuzzle
https://groups.google.com/forum/#!topic/jenkinsci-users/cguCMZl_k3c

-- 
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/c84d1e12-62b2-43c2-9584-9a6992f7235f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Individual Build Step Status

2017-10-26 Thread itchymuzzle


Maybe something like this?

 

#! /usr/bin/env groovy
pipeline {
agent any
stages {
stage ('Checkout') {
steps {
}
}
stage('Step1') {
steps {
}
}
stage('Step2') {
steps {
}
}

-- 
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/4643c1a8-f308-4c19-bb3b-38c32d8de19d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: When am trying to update the plugin in jenkins shows warning

2017-10-25 Thread itchymuzzle
What is your question?

-- 
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/b4e597d6-d45d-4f20-a899-37ff4414abb4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to execute a jar file as a post build jenkins step?

2017-10-19 Thread itchymuzzle
What was the error?

-- 
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/9fbd3678-dc60-4f3b-94c6-9d0e99ed596c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Cannot run program "git"

2017-10-18 Thread itchymuzzle
Agh.  I didn't stop/start the agent.jar after installing Git.  So when I 
ran the freestyle project it only had access to the previous value for 
Path.  User error.

-- 
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/52ce0659-04f7-45d5-b136-9b649aab47ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Cannot run program "git"

2017-10-18 Thread itchymuzzle
Created "Managed powershell" script using "Managed files" plugin.  Which 
contained
  $env:Path.split(";")
Created freestyle project, to run the script.
The result showed the exact same result, as doing this on the command line, 
with the exception of the last item.  Which happened to be the one for Git.
Update the value for PATH by moving the entry for Git, so it wasn't last.  
Had to kill the window in which the agent.jar was started, and start it in 
a new one, to get the new Path value.
Then the freestyle project returned the exact same value for Path.
Something about how the Git installer updated the value for Path, was 
wrong/not liked.

-- 
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/40791513-14b3-4812-9d2a-4552e25d887c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Cannot run program "git"

2017-10-18 Thread itchymuzzle


https://issues.jenkins-ci.org/browse/JENKINS-40192 Seems like this issue, 
but I'm not using Docker.


Jenkins master is AWS Linux, agent is AWS Windows Server 2012


Git is in my PATH, and when I am in the workspace I am able to run git from 
the command line.

 

Cloning the remote Git repository

Cloning repository g...@bitbucket.org:/web-application-library.git

 > git init C:\Jenkins\workspace\Build_Web_App_Library # timeout=10

 

ERROR: Error cloning remote repo 'origin'

hudson.plugins.git.GitException: Could not init 
C:\Jenkins\workspace\Build_Web_App_Library

 

Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to 
JNLP4-connect connection from 
ec2-54-174-233-xx.compute-1.amazonaws.com/54.174.233.xx:62490

 

Caused by: hudson.plugins.git.GitException: Error performing command: git 
init C:\Jenkins\workspace\Build_Web_App_Library

 

Caused by: java.io.IOException: Cannot run program "git" (in directory 
"C:\Jenkins\workspace\Build_Web_App_Library"): CreateProcess error=2, The 
system cannot find the file specified

-- 
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/94420efe-fb1c-4878-b3a2-d7a6670a3e06%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Declarative script: 'bat' command fails but job succeeds

2017-10-18 Thread itchymuzzle
So you don't mean "script", you mean using "bat" as you would "sh".   Is 
that right?

stage('Build') {
steps {
script {

-- 
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/8786d351-6da3-4b01-8b78-c786cdbd869a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Declarative script: 'bat' command fails but job succeeds

2017-10-18 Thread itchymuzzle
>bat '''

What type of quote(s) is that?  Three single quotes?

-- 
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/5d396552-7017-4ba9-85bb-eca78abebe6d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Declarative script: 'bat' command fails but job succeeds

2017-10-18 Thread itchymuzzle
Where is "script" in the original example?

-- 
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/646ef4ba-2200-46ed-b6b1-fb6938984104%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


What does Jenkins need to run on Windows?

2017-10-17 Thread itchymuzzle
AWS Windows Server 2012 

   - Java
   - agent.jar - which is part of setting up the node
   - Groovy?
   - Git - as I need to get my code from bitbucket

Anything else?

-- 
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/4661ef56-d643-4369-bf71-59a6b8b9198a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.