[JIRA] (JENKINS-54548) Assistance with JQL Format

2018-11-13 Thread wi...@ceilfors.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Wisen Tanasa closed an issue as Cannot Reproduce  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-54548  
 
 
  Assistance with JQL Format   
 

  
 
 
 
 

 
Change By: 
 Wisen Tanasa  
 
 
Status: 
 Open Closed  
 
 
Resolution: 
 Cannot Reproduce  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-54548) Assistance with JQL Format

2018-11-13 Thread wi...@ceilfors.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Wisen Tanasa commented on  JENKINS-54548  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Assistance with JQL Format   
 

  
 
 
 
 

 
 Yes, that's what I meant. No worries! Do reopen the issue if more assistance is needed.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-54548) Assistance with JQL Format

2018-11-13 Thread jenkins-j...@xanthia.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Thomas Jones commented on  JENKINS-54548  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Assistance with JQL Format   
 

  
 
 
 
 

 
 Ok, I think I missed what you were saying, previously. When you said: 

Alternatively, if you are trying to differentiate by ISSUE, the plugin injects JIRA_ISSUE_KEY as an environment variable. Would it be possible to execute your build conditionally based on that environment variable?
 What you meant was that instead of using JQL when setting up the JOB, add a conditional to the job that matches selects for/against JIRA_ISSUE_KEY. Which is to say, all of the trigger-enabled jobs will receive the common comment string but terminate if JIRA_ISSUE_KEY isn't correct for that job? Sorry, I'm slow, sometimes. I get focussed on how I want/expect things to work that everything else is read through that filter.   When I get a chance to revisit this, I'll give that a shot. Thanks in advance!    
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-54548) Assistance with JQL Format

2018-11-13 Thread wi...@ceilfors.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Wisen Tanasa commented on  JENKINS-54548  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Assistance with JQL Format   
 

  
 
 
 
 

 
 What I meant to say is, all of the other features in the plugin doesn't need "https:///configure". If you use JQL filter, the "https:///configure" will need to be configured properly. I'd expect an error to be logged, but if it's not anywhere I'm afraid I can't really help any further. Do let me know if the alternative provided works for you.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-54548) Assistance with JQL Format

2018-11-10 Thread jenkins-j...@xanthia.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Thomas Jones commented on  JENKINS-54548  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Assistance with JQL Format   
 

  
 
 
 
 

 
 

Have you configured the JIRA credentials in Jenkins as per mentioned in my comment?
 If you mean in the https:///configure section, then, "yes, I believe so". Like I say, everything works unless I attempt to restrict things through the use of a JQL filter. 

What do you configure as the value of ISSUENAME? ISSUE in JQL accepts ISSUE_KEY. For example, the JQL for this current ticket is ISSUE=JENKINS-54548. I don't understand how would you use that field to filter your job trigger.
 Sorry, what I meant is that I was trying to configure my Jenkins job to only "listen" for the build-request string (in my test case, "BUILD ME NOW") only when it's present in the issue TEST-4, but to (essentially) ignore that same build-request string if it's commented into any other issue (e.g., if someone posted "BUILD ME NOW" into TEST-5 or Test-200, the job with the JQL-filter would ignore that comment).  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-54548) Assistance with JQL Format

2018-11-10 Thread wi...@ceilfors.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Wisen Tanasa commented on  JENKINS-54548  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Assistance with JQL Format   
 

  
 
 
 
 

 
 Thanks for the detailed answer. Follow up questions: 
 
Have you configured the JIRA credentials in Jenkins as per mentioned in my comment? 
What do you configure as the value of ISSUENAME? ISSUE in JQL accepts ISSUE_KEY. For example, the JQL for this current ticket is ISSUE=JENKINS-54548. I don't understand how would you use that field to filter your job trigger. 
 Alternatively, if you are trying to differentiate by ISSUE, the plugin injects JIRA_ISSUE_KEY as an environment variable. Would it be possible to execute your build conditionally based on that environment variable?  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-54548) Assistance with JQL Format

2018-11-09 Thread jenkins-j...@xanthia.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Thomas Jones edited a comment on  JENKINS-54548  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Assistance with JQL Format   
 

  
 
 
 
 

 
 Hi: thanks for the quick response!  =){quote}Can you share the JQL you use? JQL is a JIRA feature, so it's best for you consult their documentation{quote} Initially, I was doing {{Project =  AND Issue = }}, but then I realized that, since the web-hook configured in Jira was tied to a single project, I could  (at least till testing is completed and multiple, real projects get enabled) simplify/  shorten to just {{Issue = }}. In either case, I used the JQL query-constructor tool _in_ Jira to create my query statement.{quote}Can you share your logs?{quote}Yes. Getting logs is no problem. I set up the TRACE logging, yesterday. Just wasn't seeing anything meaningful. More than happy to provide logs, but would probably be best for all concerned if I provide just the relevant logs rather than trying to attach a 20MiB logfile to pore through. =){quote}When JQL is used, Jenkins will need to talk back to JIRA. There might be a firewall issue, or you might have not configured the JIRA credentials in Jenkins. See: [https://github.com/jenkinsci/jira-trigger-plugin/#jenkins-global-configuration-one-time]{quote}Issue-triggering _works_ ...absent the inclusion of JQL query. Communications are fine: I already validated bi-directional comms ability by  \  {{curl}}ing each host from the other. The problem I have is that, if I set up my Jenkins job to be triggerable by a given phrase, say "BUILD ME NOW", if that phrase appears in _any_ issue within the configured project, _every_ Jenkins job that keys on that phrase gets triggered (I set up two, simple test-jobs to validate this). I need to be able to use the JQL query to limit each job to only be triggerable from a specific issue within a specific project: the nightmare alternative is that each Jenkins would need to be triggered by its own, unique phrase. As of the opening of this ticket, as soon as I put any content in the JQL box, the trigger ceased functioning and I wasn't able to discern any errors from my logs.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  

[JIRA] (JENKINS-54548) Assistance with JQL Format

2018-11-09 Thread jenkins-j...@xanthia.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Thomas Jones commented on  JENKINS-54548  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Assistance with JQL Format   
 

  
 
 
 
 

 
 Hi: thanks for the quick response!  =) 

Can you share the JQL you use? JQL is a JIRA feature, so it's best for you consult their documentation
  Initially, I was doing Project =  AND Issue = , but then I realized that, since the web-hook configured in Jira was tied to a single project, I could shorten to just Issue = . In either case, I used the JQL query-constructor tool in Jira to create my query statement. 

Can you share your logs?
 Yes. Getting logs is no problem. I set up the TRACE logging, yesterday. Just wasn't seeing anything meaningful. More than happy to provide logs, but would probably be best for all concerned if I provide just the relevant logs rather than trying to attach a 20MiB logfile to pore through. =) 

When JQL is used, Jenkins will need to talk back to JIRA. There might be a firewall issue, or you might have not configured the JIRA credentials in Jenkins. See: https://github.com/jenkinsci/jira-trigger-plugin/#jenkins-global-configuration-one-time
 Issue-triggering works ...absent the inclusion of JQL query. Communications are fine: I already validated bi-directional comms ability by {{curl}}ing each host from the other. The problem I have is that, if I set up my Jenkins job to be triggerable by a given phrase, say "BUILD ME NOW", if that phrase appears in any issue within the configured project, every Jenkins job that keys on that phrase gets triggered (I set up two, simple test-jobs to validate this). I need to be able to use the JQL query to limit each job to only be triggerable from a specific issue within a specific project: the nightmare alternative is that each Jenkins would need to be triggered by its own, unique phrase. As of the opening of this ticket, as soon as I put any content in the JQL box, the trigger ceased functioning and I wasn't able to discern any errors from my logs.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  

[JIRA] (JENKINS-54548) Assistance with JQL Format

2018-11-08 Thread wi...@ceilfors.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Wisen Tanasa commented on  JENKINS-54548  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Assistance with JQL Format   
 

  
 
 
 
 

 
 
 
Can you share the JQL you use? JQL is a JIRA feature, so it's best for you consult their documentation 
Can you share your logs? When JQL is used, Jenkins will need to talk back to JIRA. There might be a firewall issue, or you might have not configured the JIRA credentials in Jenkins. See: https://github.com/jenkinsci/jira-trigger-plugin/#jenkins-global-configuration-one-time 
  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-54548) Assistance with JQL Format

2018-11-08 Thread jenkins-j...@xanthia.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Thomas Jones updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-54548  
 
 
  Assistance with JQL Format   
 

  
 
 
 
 

 
Change By: 
 Thomas Jones  
 

  
 
 
 
 

 
 Currently, we're able to trigger builds base on comments on Jira issues. However, the moment we try to use JQL to limit _which_ issues will trigger a build (i.e., allow a build-message within issue "{{ TEST THJ2 -1}}" to trigger a build but not the same build-message if commented within issue "{{ TEST THJ2 -2}}") the job no longer triggers at all.Nearly certain this is a user (me) error rather than a bug, but I've run out of useful Google search results. Any help in proper syntax/usage for the JQL box would be _greatly_ appreciated.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-54548) Assistance with JQL Format

2018-11-08 Thread jenkins-j...@xanthia.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Thomas Jones created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-54548  
 
 
  Assistance with JQL Format   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Assignee: 
 Wisen Tanasa  
 
 
Components: 
 jira-trigger-plugin  
 
 
Created: 
 2018-11-09 00:11  
 
 
Environment: 
 * Jenkins Version: 2.138.1  * Jira Trigger Plugin Version: 0.6.3,  * Hosting OS: CentOS 7.5  * Java Version: java-1.8.0-openjdk-headless-1.8.0.191.b12-0.el7_5.x86_64  
 
 
Priority: 
  Minor  
 
 
Reporter: 
 Thomas Jones  
 

  
 
 
 
 

 
 Currently, we're able to trigger builds base on comments on Jira issues. However, the moment we try to use JQL to limit which issues will trigger a build (i.e., allow a build-message within issue "TEST-1" to trigger a build but not the same build-message if commented within issue "TEST-2") the job no longer triggers at all. Nearly certain this is a user (me) error rather than a bug, but I've run out of useful Google search results. Any help in proper syntax/usage for the JQL box would be greatly appreciated.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment