mirror of
				https://github.com/vyos/vyos-build.git
				synced 2025-10-01 20:28:40 +02:00 
			
		
		
		
	Jenkins: lib: record Git commit ID in job description
This commit is contained in:
		
							parent
							
								
									22888ab751
								
							
						
					
					
						commit
						918700c5a5
					
				@ -75,6 +75,10 @@ def call(description, pkgList) {
 | 
			
		||||
                steps {
 | 
			
		||||
                    script {
 | 
			
		||||
                        checkout scm
 | 
			
		||||
 | 
			
		||||
                        def commitId = sh(returnStdout: true, script: 'git rev-parse --short=11 HEAD').trim()
 | 
			
		||||
                        currentBuild.description = sprintf('Git SHA1: %s', commitId[-11..-1])
 | 
			
		||||
 | 
			
		||||
                        pkgList.each { pkg ->
 | 
			
		||||
                            dir(pkg.name) {
 | 
			
		||||
                                checkout([$class: 'GitSCM',
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user