Created
          June 15, 2018 12:44 
        
      - 
      
- 
        Save k-popov/dd5dc3ea56f135f287e773e161be053d to your computer and use it in GitHub Desktop. 
    add allure installation
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import ru.yandex.qatools.allure.jenkins.tools.* | |
| import hudson.tools.InstallSourceProperty | |
| import hudson.tools.ToolProperty | |
| import hudson.tools.ToolPropertyDescriptor | |
| import hudson.util.DescribableList | |
| def isp = new InstallSourceProperty() | |
| def autoInstaller = new AllureCommandlineInstaller("2.6.0") | |
| isp.installers.add(autoInstaller) | |
| def proplist = new DescribableList<ToolProperty<?>, ToolPropertyDescriptor>() | |
| proplist.add(isp) | |
| def installation = new AllureCommandlineInstallation("allure260", "", proplist) | |
| def allureDesc = jenkins.model.Jenkins.instance.getExtensionList(AllureCommandlineInstallation.DescriptorImpl.class)[0] | |
| allureDesc.setInstallations(installation) | |
| allureDesc.save() | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment