[JIRA] (JENKINS-39422) Anchore plugin fails if input image is specified with a string containing a '/'

2016-11-02 Thread nu...@anchore.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Daniel Nurmi closed an issue as Fixed  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 This issue has been addressed and tested as resolved in the anchore jenkins plugin version 1.0.3.  
 

  
 
 
 
 

 
 Jenkins /  JENKINS-39422  
 
 
  Anchore plugin fails if input image is specified with a string containing a '/'   
 

  
 
 
 
 

 
Change By: 
 Daniel Nurmi  
 
 
Status: 
 Resolved Closed  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
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-39422) Anchore plugin fails if input image is specified with a string containing a '/'

2016-11-01 Thread scm_issue_l...@java.net (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 SCM/JIRA link daemon resolved as Fixed  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-39422  
 
 
  Anchore plugin fails if input image is specified with a string containing a '/'   
 

  
 
 
 
 

 
Change By: 
 SCM/JIRA link daemon  
 
 
Status: 
 Open Resolved  
 
 
Resolution: 
 Fixed  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
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-39422) Anchore plugin fails if input image is specified with a string containing a '/'

2016-11-01 Thread scm_issue_l...@java.net (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 SCM/JIRA link daemon commented on  JENKINS-39422  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Anchore plugin fails if input image is specified with a string containing a '/'   
 

  
 
 
 
 

 
 Code changed in jenkins User: Daniel Nurmi Path: src/main/java/com/anchore/jenkins/plugins/anchore/AnchoreBuilder.java http://jenkins-ci.org/commit/anchore-container-scanner-plugin/4ce1f07c5f14063bac936e5b1ec0b0ad1dafd6e9 Log: [FIXED JENKINS-39422] removing the use of input image names in any file path naming Signed-off-by: Daniel Nurmi   
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
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-39422) Anchore plugin fails if input image is specified with a string containing a '/'

2016-11-01 Thread nu...@anchore.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Daniel Nurmi created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-39422  
 
 
  Anchore plugin fails if input image is specified with a string containing a '/'   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Assignee: 
 Daniel Nurmi  
 
 
Components: 
 anchore-container-scanner-plugin  
 
 
Created: 
 2016/Nov/01 9:43 PM  
 
 
Priority: 
  Major  
 
 
Reporter: 
 Daniel Nurmi  
 

  
 
 
 
 

 
 The anchore plugin reads input images from a file that is setup as an input pre-req before the anchore plugin runs - currently the plugin works with either imageIds or a string (repo/tag), but there is a bug that is triggering when an image is specified using a repo/tag string that contains a '/' character. See below for output when this occurs: 2016-11-01 21:30:33,900 DEBUG analyzer.py _init_ analyzer initialization: begin 2016-11-01 21:30:33,901 DEBUG analyzer.py _init_ init input processed, loading input images: [u'jenk_anchoretest/meh'] Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/anchore/anchore_utils.py", line 957, in image_context_add newimage = anchore_image.AnchoreImage(i, anchore_datadir, docker_cli=docker_cli, allimages=allimages, dockerfile=dockerfile, tmpdirroot=tmproot, usertype=usertype, anchore_db=anchore_db, docker_images=docker_images) File "/usr/lib/python2.7/site-packages/anchore/anchore_image.py", line 102, in _init_ if dockerfile and (os.stat(dockerfile).st_size <= 0 or not os.path.exists(dockerfile) or not os.path.isfile(dockerfile)): OSError: [Errno 2] No such file or directory: '/root/anchore.jenkinsplugin_227/dfile.jenk_anchoretest/meh' 2016-11-01 21:30:33,909 ERROR common.py anchore_print_err failed to run analyzer Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/anchore/cli/analyzer.py", line 304, in analyze success = analyzer.Analyzer(anchore_config=anchore_config, imagelist=inlist, allimages=allimages, force=force, args=args).run() File "/usr/lib/python2.7/site-packages/anchore/analyzer.py", line 52, in _init_ self.images = anchore_utils.image_context_add(imagelist, allimages,