Skip to content

Commit 4bc4677

Browse files
committed
Deploy to Artifactory
1 parent bff580e commit 4bc4677

File tree

2 files changed

+16
-43
lines changed

2 files changed

+16
-43
lines changed

.github/workflows/build-sbm-support-rewrite.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,21 @@ jobs:
2626
- name: Maven Build
2727
run: mvn --batch-mode clean package
2828

29+
- name: Setupt JFro CLI
30+
uses: jfrog/setup-jfrog-cli@v3
31+
env:
32+
JF_ARTIFACTORY_SPRING: ${{ secrets.JF_ARTIFACTORY_SPRING }}
2933
- name: Deploy to Artifactory
34+
run: |
35+
jfrog rt mvnc \
36+
--server-id-deploy repo.spring.io \
37+
--repo-deploy-releases release \
38+
--repo-deploy-snapshots snapshot
39+
echo JFROG_CLI_BUILD_NAME=sbm-support-rewrite >> $GITHUB_ENV
40+
echo JFROG_CLI_BUILD_NUMBER=$GITHUB_RUN_NUMBER >> $GITHUB_ENV
41+
- name: Build and Publish
3042
env:
31-
ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }}
32-
ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}
33-
GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USER }}
34-
GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
35-
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }}
36-
run: mvn -B deploy -Pci,artifactory
43+
DISABLE_SAMPLES: true
44+
run: |
45+
jfrog rt mvn clean install -B -DskipTests
46+
jfrog rt build-publish

sbm-support-rewrite/pom.xml

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -416,43 +416,6 @@ limitations under the License.
416416
</plugins>
417417
</build>
418418
<profiles>
419-
<profile>
420-
<id>artifactory</id>
421-
<properties>
422-
<maven.test.skip>true</maven.test.skip>
423-
</properties>
424-
<build>
425-
<plugins>
426-
<plugin>
427-
<groupId>org.jfrog.buildinfo</groupId>
428-
<artifactId>artifactory-maven-plugin</artifactId>
429-
<version>${artifactory-maven-plugin.version}</version>
430-
<inherited>false</inherited>
431-
<executions>
432-
<execution>
433-
<id>deploy-to-artifactory</id>
434-
<goals>
435-
<goal>publish</goal>
436-
</goals>
437-
<configuration>
438-
<publisher>
439-
<contextUrl>https://repo.spring.io</contextUrl>
440-
<username>${env.ARTIFACTORY_USERNAME}</username>
441-
<password>${env.ARTIFACTORY_PASSWORD}</password>
442-
<repoKey>libs-milestone-local</repoKey>
443-
<snapshotRepoKey>libs-snapshot-local</snapshotRepoKey>
444-
</publisher>
445-
<buildInfo>
446-
<buildName>CI build for ${project.name} ${project.version}</buildName>
447-
</buildInfo>
448-
</configuration>
449-
</execution>
450-
</executions>
451-
</plugin>
452-
</plugins>
453-
</build>
454-
</profile>
455-
456419
<profile>
457420
<id>ci</id>
458421
<build>

0 commit comments

Comments
 (0)