edit description
This commit is contained in:
		
							parent
							
								
									3d902f7a67
								
							
						
					
					
						commit
						9bccd1f0a1
					
				
							
								
								
									
										6
									
								
								install/ci/Jenkinsfile
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								install/ci/Jenkinsfile
									
									
									
									
										vendored
									
									
								
							| @ -1,6 +1,8 @@ | ||||
| stage('install:ci') { | ||||
|     def tag = sh(returnStdout: true, script: "git tag --contains").trim() | ||||
|     def branchName = sh(returnStdout: true, script: "git rev-parse --abbrev-ref HEAD").trim() | ||||
|     def commit = sh(returnStdout: true, script: 'git log -1 --oneline').trim() | ||||
|     String commitMsg = commit.substring( commit.indexOf(' ') ).trim() | ||||
|     def lastLog = sh(returnStdout: true, script: "git log -1").trim() | ||||
|     if (tag) { | ||||
|       currentBuild.displayName = "#${BUILD_NUMBER}, tag ${tag}" | ||||
| @ -8,7 +10,9 @@ stage('install:ci') { | ||||
|       currentBuild.displayName = "#${BUILD_NUMBER}, branch ${branchName}" | ||||
|     } | ||||
| 
 | ||||
|     currentBuild.description = "#${BUILD_NUMBER}, branch ${branchName}, tag ${tag ? tag : 'no tag'}\n\n${lastLog}" | ||||
|     String author = sh(returnStdout: true, script: "git log -1 --pretty=format:'%an'").trim() | ||||
|     currentBuild.description = "${author}<br />${commitMsg}" | ||||
|     // currentBuild.description = "#${BUILD_NUMBER}, branch ${branchName}, tag ${tag ? tag : 'no tag'}\n\n${lastLog}" | ||||
|     echo 'starting installing' | ||||
|     sh "pwd" | ||||
|     sh 'npm ci' | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user