 79118131ac
			
		
	
	79118131ac
	
	
	
		
			
			This can happen for plugins that have not had a first commit. Change-Id: I9510bc65cff8bc6e7e97315cdc836fe6b24facec
		
			
				
	
	
		
			23 lines
		
	
	
		
			640 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			640 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/usr/bin/env bash
 | |
| 
 | |
| # This script will be run by bazel when the build process starts to
 | |
| # generate key-value information that represents the status of the
 | |
| # workspace. The output should be like
 | |
| #
 | |
| # KEY1 VALUE1
 | |
| # KEY2 VALUE2
 | |
| #
 | |
| # If the script exits with non-zero code, it's considered as a failure
 | |
| # and the output will be discarded.
 | |
| 
 | |
| function rev() {
 | |
|   cd $1; git describe --always --match "v[0-9].*" --dirty
 | |
| }
 | |
| 
 | |
| echo STABLE_BUILD_GERRIT_LABEL $(rev .)
 | |
| for p in plugins/* ; do
 | |
|   test -d "$p" || continue
 | |
|   echo STABLE_BUILD_$(echo $(basename $p)_LABEL|tr '[a-z]' '[A-Z]' ) $(rev $p || echo unknown)
 | |
| done
 | |
| echo "STABLE_WORKSPACE_ROOT ${PWD}"
 |