Windows personal certificate and Jira plugin

2019-03-16 Thread t3knoid
I am trying to use the Jira plugin with a a Jira server that uses a personal certificate before you can even access the site. Once browser is authenticated, the user can login using their username/password as usual. I am running Jenkins in a Windows box. I've installed the personal certificate

Getting "Couldn't find any revision to build" error with git checkout

2019-03-16 Thread t3knoid
I have a new Jenkins server that has not used git for checking out. I tried using a simple git checkout, just using a freestyle project. For some reason I get a "Getting "Couldn't find any revision to build" whenever I try to check out. Using an older server checks out the same repo just fine..

Re: Getting "Couldn't find any revision to build" error with git checkout

2019-03-16 Thread Mark Waite
That indicates command line git could not fit any reference that matches the branch name or SHA 1 it has been asked to build. Some possible causes include: - Branch name has been requested that is not being fetched because the refspec in the "Advanced" section does not include the desired b

How to create environment variables with a script?

2019-03-16 Thread Ivan Fernandez Calvo
For pipelines take a look to the environment directive documentation https://jenkins.io/doc/pipeline/tour/environment also you can define variable by asigning a value to env variable script { env.VARIABLE_NAME = ’value’ } See also https://jenkins.io/doc/book/pipeline/shared-libraries/ https://

Re: Security - Pipeline parameterized credentials can be reused by other users

2019-03-16 Thread Ivan Fernandez Calvo
By using https://wiki.jenkins.io/plugins/servlet/mobile?contentId=102662618#content/view/10266261 and removing permissions to configure jobs, maybe build also and allow only to trigger builds to some people or manage it with comments from GitHub (see https://wiki.jenkins.io/plugins/servlet/mobi

Re: How to create environment variables with a script?

2019-03-16 Thread Faad Sayaou
Hi, I found a way of creating it via the script console (in reference to an answer in this group). Maybe this could help others in the future instance = Jenkins.getInstance() globalNodeProperties = instance.getGlobalNodeProperties() envVarsNodePropertyList = globalNodeProperties.getAll(hudson.sla

Integrate App centre with Jenkins

2019-03-16 Thread Pradeep Drall
Hi, I created .ipa and .apk file in Mac machine via Jenkins for mobile application. Please do let me know how to integrate Jenkins with App center and upload ipa and apk file in App center for Mobile application. Please suggest me the plugins name and steps to upload the files in app center.

Re: Getting "Couldn't find any revision to build" error with git checkout

2019-03-16 Thread t3knoid
Thanks for your response. > Branch name has been requested that is not being fetched because the refspec in the "Advanced" section does not include the desired branch I'm not touching the Advanced section at all. >Branch name to be built does not match any branch on the remote (typo in the bra

Re: Getting "Couldn't find any revision to build" error with git checkout

2019-03-16 Thread Mark Waite
On Sat, Mar 16, 2019 at 1:47 PM t3knoid wrote: > Thanks for your response. > > > Branch name has been requested that is not being fetched because the > refspec in the "Advanced" section does not include the desired branch > > I'm not touching the Advanced section at all. > > >Branch name to be bu

Re: Getting "Couldn't find any revision to build" error with git checkout

2019-03-16 Thread t3knoid
Thanks for the suggestions anyway. BTW, I downloaded Github desktop in the Jenkins slave machine and was able to clone without a problem. On Saturday, March 16, 2019 at 4:02:13 PM UTC-4, Mark Waite wrote: > > > > On Sat, Mar 16, 2019 at 1:47 PM t3knoid > > wrote: > >> Thanks for your response.

Re: Getting "Couldn't find any revision to build" error with git checkout

2019-03-16 Thread Mark Waite
You might change into the workspace directory where the revision can't be found and look at the output of `git branch -a` and `git log`. There may be some hint about something missing from the fetch. On Sat, Mar 16, 2019 at 7:46 PM t3knoid wrote: > Thanks for the suggestions anyway. > > BTW, I