mirror of
				https://github.com/Telecominfraproject/wlan-cloud-workspace.git
				synced 2025-11-02 19:57:51 +00:00 
			
		
		
		
	Compare commits
	
		
			6 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					0b9a65e810 | ||
| 
						 | 
					73727dca09 | ||
| 
						 | 
					ad67765358 | ||
| 
						 | 
					f029a2f9df | ||
| 
						 | 
					720ce832ec | ||
| 
						 | 
					df9e7102f6 | 
							
								
								
									
										26
									
								
								.github/workflows/maven-build.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										26
									
								
								.github/workflows/maven-build.yml
									
									
									
									
										vendored
									
									
								
							@@ -2,7 +2,11 @@ name: Java Maven CI - TIP WLAN Cloud Master
 | 
			
		||||
 | 
			
		||||
on: 
 | 
			
		||||
  push:
 | 
			
		||||
    branches: [ master ]
 | 
			
		||||
    branches:
 | 
			
		||||
      - master
 | 
			
		||||
      - 'release/**'
 | 
			
		||||
    tags:
 | 
			
		||||
      - '*'
 | 
			
		||||
 | 
			
		||||
  schedule:
 | 
			
		||||
    # runs nightly build at 5AM
 | 
			
		||||
@@ -37,6 +41,26 @@ jobs:
 | 
			
		||||
          password: ${{ secrets.MAVEN_REPO_PASSWORD }}
 | 
			
		||||
      - name: Configure maven settings.xml
 | 
			
		||||
        run: cp .github/workflows/maven_settings_template.xml /home/runner/.m2/settings.xml
 | 
			
		||||
      - name: Update version in pom.xml
 | 
			
		||||
        if: startsWith(github.ref, 'refs/tags/')
 | 
			
		||||
        run: |
 | 
			
		||||
          VERSION=$(echo "${{ github.ref }}" | sed -e 's/refs\/tags\/[v]//')
 | 
			
		||||
          mvn -B --file wlan-cloud-root/pom.xml versions:set -DnewVersion=$VERSION
 | 
			
		||||
          mvn -B --file wlan-cloud-root/pom.xml install # put new parent version into Maven cache
 | 
			
		||||
          mvn -B --file wlan-cloud-root/pom.xml versions:revert # need to revert so that child modules are able to find its parent
 | 
			
		||||
          mvn -B --file all-modules-build/pom.xml versions:update-parent -DparentVersion=[$VERSION]
 | 
			
		||||
          mvn -B --file wlan-cloud-opensync-controller/opensync-gateway-static-docker/pom.xml versions:update-parent -DparentVersion=[$VERSION]
 | 
			
		||||
          mvn -B --file wlan-cloud-opensync-controller/opensync-gateway-cloud-docker/pom.xml versions:update-parent -DparentVersion=[$VERSION]
 | 
			
		||||
          mvn -B --file wlan-cloud-services/all-cloud-and-opensync-gw-in-one-docker/pom.xml versions:update-parent -DparentVersion=[$VERSION]
 | 
			
		||||
          mvn -B --file wlan-cloud-services/all-cloud-in-one-docker/pom.xml versions:update-parent -DparentVersion=[$VERSION]
 | 
			
		||||
          mvn -B --file wlan-cloud-services/portal-docker/pom.xml versions:update-parent -DparentVersion=[$VERSION]
 | 
			
		||||
          mvn -B --file wlan-cloud-services/prov-docker/pom.xml versions:update-parent -DparentVersion=[$VERSION]
 | 
			
		||||
          mvn -B --file wlan-cloud-services/ssc-docker/pom.xml versions:update-parent -DparentVersion=[$VERSION]
 | 
			
		||||
          mvn -B --file wlan-cloud-services/spc-docker/pom.xml versions:update-parent -DparentVersion=[$VERSION]
 | 
			
		||||
          mvn -B --file wlan-cloud-services/port-forwarding-gateway-docker/pom.xml versions:update-parent -DparentVersion=[$VERSION]
 | 
			
		||||
          mvn -B --file wlan-cloud-services/schema-generator/pom.xml versions:update-parent -DparentVersion=[$VERSION]
 | 
			
		||||
          mvn -B --file wlan-cloud-root/pom.xml versions:set -DnewVersion=$VERSION
 | 
			
		||||
 | 
			
		||||
      - name: Updating commit file
 | 
			
		||||
        run: |          
 | 
			
		||||
          TIMESTAMP=$(date +'%Y-%m-%d')
 | 
			
		||||
 
 | 
			
		||||
@@ -21,7 +21,6 @@
 | 
			
		||||
                                <activeByDefault>true</activeByDefault>
 | 
			
		||||
                        </activation>
 | 
			
		||||
                        <modules>
 | 
			
		||||
                                <module>../wlan-cloud-root</module>
 | 
			
		||||
                                <module>../wlan-cloud-base/base-build</module>
 | 
			
		||||
                                <module>../wlan-cloud-services/cloud-services-build</module>
 | 
			
		||||
                                <module>../wlan-cloud-opensync-controller/opensync-gateway-build</module>
 | 
			
		||||
 
 | 
			
		||||
@@ -11,7 +11,7 @@ new_version=$1
 | 
			
		||||
PREVIOUS_VERSION=$(grep "<version>" ../wlan-cloud-root/pom.xml |head -2|tail -1|cut -d '>' -f2|cut -d '<' -f 1)
 | 
			
		||||
echo "Updating TIP pom.xml files from $PREVIOUS_VERSION to version $new_version "
 | 
			
		||||
 | 
			
		||||
# update versions on TIP modules using special all-modules-release
 | 
			
		||||
# update versions on TIP modules using special all-modules-release  
 | 
			
		||||
mvn  --batch-mode release:update-versions -DdevelopmentVersion="$new_version" -DautoVersionSubmodules=true
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user