forked from tofu-tf/tofu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.publish.xml
51 lines (44 loc) · 1.97 KB
/
.publish.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:staging="antlib:org.sonatype.nexus.ant.staging">
<property environment="env"/>
<!-- https://oss.sonatype.org/ -->
<property name="nexus.uri" value="${env.NEXUS_URI}" />
<property name="nexus.user" value="${env.NEXUS_USER}" />
<property name="nexus.pass" value="${env.NEXUS_PASS}" />
<property name="dir.repo" value="${env.DIR_REPO}" />
<property name="nexus.profile" value="${env.NEXUS_PROFILE}" />
<taskdef uri="antlib:org.sonatype.nexus.ant.staging"
resource="org/sonatype/nexus/ant/staging/antlib.xml">
<classpath>
<fileset dir="tasks" includes="nexus-staging-ant-tasks-*uber.jar" />
</classpath>
</taskdef>
<staging:nexusStagingInfo id="target-nexus" stagingDirectory="target/staging">
<staging:projectInfo
groupId="org.sonatype.nexus.ant"
artifactId="nexus-staging-ant-tasks"
stagingProfileId="${nexus.profile}"
version="1.0" />
<staging:connectionInfo
baseUrl="${nexus.uri}">
<staging:authentication
username="${nexus.user}"
password="${nexus.pass}" />
</staging:connectionInfo>
</staging:nexusStagingInfo>
<target name="deploy" description="Deploy: Local and Remote Staging">
<staging:stageLocally>
<staging:nexusStagingInfo refid="target-nexus" />
<fileset dir="${dir.repo}" includes="**/*.*" />
</staging:stageLocally>
<staging:stageRemotely>
<staging:nexusStagingInfo refid="target-nexus" />
</staging:stageRemotely>
<staging:releaseStagingRepository stagingProgressTimeoutMinutes="30" >
<staging:nexusStagingInfo refid="target-nexus" />
</staging:releaseStagingRepository>
<staging:dropStagingRepository>
<staging:nexusStagingInfo refid="target-nexus" />
</staging:dropStagingRepository>
</target>
</project>