|  | @@ -1,10 +1,11 @@
 | 
	
		
			
				|  |  |  #!groovy
 | 
	
		
			
				|  |  |  def GetLog() {
 | 
	
		
			
				|  |  | -    withCredentials([string(credentialsId: 'JenkinsAPI', variable: 'TOKEN')])
 | 
	
		
			
				|  |  | +    withCredentials([string(credentialsId: 'JenkinsAPI', variable: 'TOKEN')]){
 | 
	
		
			
				|  |  |      responce = httprequest(httpMode: 'GET',
 | 
	
		
			
				|  |  | -      url: 'http//admin:QWEasd123@${BUILD_URL}/consoleText',
 | 
	
		
			
				|  |  | +      url: 'http//admin:$TOKEN@${BUILD_URL}/consoleText',
 | 
	
		
			
				|  |  |        validResponces: '200')
 | 
	
		
			
				|  |  |      return responce
 | 
	
		
			
				|  |  | +	}
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  pipeline {
 |