Re: Issue with Jenkins.SESSION_HASH with 2.65

2017-06-14 Thread Ivan Meredith
This is solved. It is a caching issue that only shows up in release 
versions of blueocean post 1.0. I am working on a fix currently.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/a581349a-3318-451d-a703-eb5bfe096192%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Issue with Jenkins.SESSION_HASH with 2.65

2017-06-14 Thread Ivan Meredith
Hi everyone,

In BlueOcean we use Jenkins.SESSION_HASH in our response headers to know 
when we need to reload BlueOcean. We have an issue where this value seems 
to be changing in 2.65 for some people. Going back to the lts-apline docker 
image resolves the issue.

The issue is https://issues.jenkins-ci.org/browse/JENKINS-44881 

Any help would be appreciated.

Thanks, Ivan

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/f89ed0f7-74db-44fe-975b-f71d3771f0a4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Multibranch pipeline author data

2016-10-10 Thread Ivan Meredith
Ah right, I forgot we add the author to this. But this only happens for a 
pull request. I'm looking for a way to derive the author of any branch.

On Tuesday, October 11, 2016 at 5:32:27 AM UTC+13, Jesse Glick wrote:
>
> On Sun, Oct 9, 2016 at 8:47 PM, Ivan Meredith <imer...@cloudbees.com 
> > wrote: 
> > To do this I need to know who the author is for newly created branches. 
>
>
> https://github.com/jenkinsci/scm-api-plugin/blob/master/src/main/java/jenkins/scm/api/actions/ChangeRequestAction.java#L86-L114
>  
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/989478ed-18cf-44ff-98d9-34883ec38d52%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Multibranch pipeline author data

2016-10-09 Thread Ivan Meredith
Hi all,

I am currently looking at JENKINS-36377 (tl;dr automatically favoriting 
branches that a developer creates)

To do this I need to know who the author is for newly created branches. Im 
not too sure about the git <-> jenkins user mapping, but at the moment I'm 
assuming that email addresses need to match.

I know that the github api will give this data, and for the general git 
case I guess the first commit of a branch can be used.

Is there a way to get the first commit details currentlly? I've had a look 
at the github-branch-source plugin and can't see anything that would help 
me there directly, although I know I can get the branch data from the 
github api in that plugin.

Thanks, Ivan

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/55704200-9520-4f3b-b0ce-1583ec3fa03e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Blue Ocean] API and UI URL mismatch behind reverse proxy

2016-07-25 Thread Ivan Meredith
Hi there,

It is because your Jenkins instance is in spanish!.

There is this bit of 
code 
https://github.com/jenkinsci/blueocean-plugin/blob/master/blueocean-rest-impl/src/main/java/io/jenkins/blueocean/service/embedded/rest/OrganizationImpl.java#L40
 
And a quick grep

ivan@MacBook-Pro ~/w/jenkins/core/src/main/resources/jenkins/model 
(master)$ grep -R -E 'Hudson.DisplayName=.* $' .
./Messages_es.properties:Hudson.DisplayName=Jenkins

I created PR https://github.com/jenkinsci/jenkins/pull/2471 to fix it in 
Jenkins, 

and also JENKINS-36907  to 
track it in Blue Ocean.

Switching your language should fix this.I imagine this will be changed in 
Blue Ocean quickly too.

On Thursday, July 21, 2016 at 8:31:43 PM UTC+12, Javier Martín Caro BEEVA 
wrote:
>
> Hi there!
>
> We have set up jenkins blue ocean behind a nginx reverse proxy and 
> configured successfully the prefix in the url to /jenkins. Despite of 
> this, when we access to the blue ocean ui in /jenkins/blue and try to 
> access some pipeline, a 422 (unprocessable entity error) is displayed in 
> the browser debugging console and a white screen is shown.
>
> The URL in the browser is like the following (note the encoded space):
>
> https:///jenkins/blue/organizations/*jenkins%20*//activity
>
>
>
> When we call the blue ocean API for organizations the following 
> information is shown (https:///jenkins/blue/rest/organizations/):
>
>
> [{"_class":"io.jenkins.blueocean.service.embedded.rest.OrganizationImpl","_links":{"pipelines":{"_class":"io.jenkins.blueocean.rest.hal.Link","href":"/blue/rest/organizations/jenkins
>  
> /pipelines/"},"self":{"_class":"io.jenkins.blueocean.rest.hal.Link","href":"/blue/rest/organizations/jenkins
>  
> /"},"user":{"_class":"io.jenkins.blueocean.rest.hal.Link","href":"/blue/rest/organizations/jenkins
>  
> /user/"},"users":{"_class":"io.jenkins.blueocean.rest.hal.Link","href":"/blue/rest/organizations/jenkins
>  /users/"}},"name":"jenkins "}]
>
>
> Note the white space in the organizations href after /jenkins /pipelines.
>
>
> If we call to 
> https:///jenkins/blue/rest/organizations/jenkins/pipelines//runs/
>  the following message is shown:
>
>
> {
>
>   "message" : "Organization jenkins not found",
>
>   "code" : 422,
>
>   "errors" : [ ]
>
> }
>
>
> But if we force the organization to be jenkins%20 
> (https:///jenkins/blue/rest/organizations/jenkins%20/pipelines//runs/)
>  the information is displayed correctly.
>
>
> Can someone help us to configure the proper name for the organization? We 
> thought it was the jenkins url in the settings page but this is set to 
> https:///jenkins/. 
>
>
> Old UI is working properly for all pipelines, folder organizations and 
> bitbucket team jobs.
>
>
> Thank you and regards!
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/241e1c04-3d9d-428a-9757-c4247a1564d7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Blue Ocean] Build failure when compiling BlueOcean : Dashboard in a Windows 7 PC

2016-05-30 Thread Ivan Meredith
It could be something specific to windows, as far as I know no one has 
built it on windows yet. What version of node/npm do you have installed?

On Tuesday, May 31, 2016 at 12:16:15 AM UTC+12, Naresh K wrote:
>
> Hi All,
>
> I just came across blue ocean and the project sounds very interesting and 
> wanted to setup my windows 7 machine for dev purposes. But before that i 
> tried compiling the plugin by checking out the source code and running 'mvn 
> clean install' on it
> this is the error i get:
>
> [INFO] [16:41:34] Finished 'less_bundle_extensions_bundle_4' after 5 ms
> [INFO] [16:41:34] LESS CSS pre-processing completed to 
> 'target/classes/org/jenki
> ns/ui/jsmodules/blueocean_dashboard'.
> [INFO] [16:41:35] Finished 'js_bundle_immutable-3.8.1_bundle_1' after 1.34 
> s
> [INFO] [16:41:35] Browserify bundle processing error
> [INFO] [16:41:35]   error: Error: Cannot find module 
> '..srcmainjs/AdminNavLi
> nk.jsx' from 
> 'C:\Users\Admin\Downloads\blueocean\blueocean-dashboard\target'
> [ERROR]
> [ERROR] 
> C:\Users\Admin\Downloads\blueocean\blueocean-dashboard\node_modules\@
> jenkins-cd\js-builder\index.js:555
> [ERROR] throw 'Browserify bundle processing error. 
> See a
> bove for details.';
> [ERROR] ^
> [ERROR] Browserify bundle processing error. See above for details.
> [INFO] 
> 
> [INFO] Reactor Summary:
> [INFO]
> [INFO] Blue Ocean UI Parent ... SUCCESS [ 
>  7.282 s]
> [INFO] BlueOcean :: Commons API ... SUCCESS [ 
>  8.382 s]
> [INFO] BlueOcean :: Web module  SUCCESS [ 
> 29.429 s]
> [INFO] BlueOcean :: Rest module ... SUCCESS [ 
>  7.401 s]
> [INFO] BlueOcean :: Dashboard . FAILURE [ 
> 20.144 s]
> [INFO] BlueOcean :: Jenkins Plugin  SKIPPED
> [INFO] 
> 
> [INFO] BUILD FAILURE
> [INFO] 
> 
> [INFO] Total time: 01:14 min
> [INFO] Finished at: 2016-05-30T16:41:35+05:30
> [INFO] Final Memory: 262M/1564M
> [INFO] 
> 
> [ERROR] Failed to execute goal 
> com.github.eirslett:frontend-maven-plugin:0.0.23:
> gulp (gulp bundle) on project blueocean-dashboard: Failed to run task: 
> 'gulp bun
> dle --no-color' failed. (error code 1) -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the 
> -e swit
> ch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, 
> please rea
> d the following articles:
> [ERROR] [Help 1] 
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
> eption
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the 
> command
>
> [ERROR]   mvn  -rf :blueocean-dashboard
>
>
> I checked the gulp file and everything seems fine. Am i missing something. 
> I have nodejs installed and gulp as well. Requesting members to help me 
> with this. nodejs is at 4.4.5
>
>
> Regards
> Naresh K
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/10263892-33f9-477f-a7af-9e2e8761ec42%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


CERT team request

2015-11-02 Thread Ivan Meredith
Hello,

I've created this request according to the guidelines on the Jenkins CERT 
team Wiki page 
<https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+CERT+team>.

I am an engineer at CloudBees working on DEV@cloud. I would like to request 
membership to the Jenkins CERT team. The DEV@cloud team has reported a 
number of  issues including security issues over the last few years and I 
would like to be able to review issues, as well as test the security 
patches before they are released.

Ivan Meredith

   - GitHub ID: hadashi
   - Jenkins ID: imeredith
   - E-mail: iv...@ivan.net.nz <i...@ivan.net.nz>
   - IRC: imeredith

Cheers, Ivan

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/281ac8d3-6838-4970-8c0a-9e8476fe276c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: CERT team request

2015-11-02 Thread Ivan Meredith
I forgot to mention, I have submitted an icla.

https://github.com/jenkinsci/infra-cla/pull/21

Cheers, Ivan

On Tuesday, November 3, 2015 at 11:23:07 AM UTC+13, Ivan Meredith wrote:
>
> Hello,
>
> I've created this request according to the guidelines on the Jenkins CERT 
> team Wiki page 
> <https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+CERT+team>.
>
> I am an engineer at CloudBees working on DEV@cloud. I would like to 
> request membership to the Jenkins CERT team. The DEV@cloud team has 
> reported a number of  issues including security issues over the last few 
> years and I would like to be able to review issues, as well as test the 
> security patches before they are released.
>
> Ivan Meredith
>
>- GitHub ID: hadashi
>- Jenkins ID: imeredith
>- E-mail: iv...@ivan.net.nz <i...@ivan.net.nz>
>- IRC: imeredith
>
> Cheers, Ivan
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/dce6ded7-11ce-4538-b591-1aa87bba710a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.