File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 1
- <?xml version =" 1.0" encoding =" UTF-8" ?>
2
- <project xmlns = " http://maven.apache.org/POM/4.0.0" xmlns : xsi = " http://www.w3 .org/2001/XMLSchema-instance " xsi : schemaLocation = " http://maven.apache.org/POM/4.0.0 http://maven.apache .org/maven-v4_0_0.xsd " >
1
+ <?xml version =' 1.0' encoding =' UTF-8' ?>
2
+ <project xsi : schemaLocation = ' http://maven.apache.org/POM/4.0.0 http://maven.apache .org/maven-v4_0_0.xsd ' xmlns = ' http://maven.apache.org/POM/4.0.0' xmlns : xsi = ' http://www.w3 .org/2001/XMLSchema-instance ' >
3
3
<modelVersion >4.0.0</modelVersion >
4
4
5
5
<groupId >com.zerosumtech.wparad.stash</groupId >
6
6
<artifactId >stash-http-request-trigger</artifactId >
7
- <version >1.5.14 </version >
7
+ <version >0.0.0.0 </version >
8
8
9
9
<scm >
10
10
<
connection >scm:git:ssh://
[email protected] :wparad/stash-http-request-trigger.git</
connection >
172
172
</goals >
173
173
</pluginExecutionFilter >
174
174
<action >
175
- <ignore />
175
+ <ignore />
176
176
</action >
177
177
</pluginExecution >
178
178
</pluginExecutions >
Original file line number Diff line number Diff line change 5
5
require 'json'
6
6
require 'net/http'
7
7
require 'rest-client'
8
+ require 'rexml/document'
8
9
require 'travis-build-tools'
9
10
10
11
#Constants
@@ -63,11 +64,18 @@ def download_file(local_path, remote_location)
63
64
end
64
65
end
65
66
66
- task :build do
67
+ task :build => [ :fix_pom_version ] do
67
68
script = Dir [ File . join ( ATLASSIAN_TOOLS_DIR , "**" , 'atlas-package' ) ] . first
68
69
puts %x[#{ script } ]
69
70
end
70
71
72
+ task :fix_pom_version do
73
+ pom_xml = File . join ( PWD , 'pom.xml' )
74
+ document = REXML ::Document . new ( File . new ( pom_xml ) )
75
+ document . root . elements [ 'version' ] . text = TravisBuildTools ::Build ::VERSION . to_s
76
+ File . write ( pom_xml , document . to_s )
77
+ end
78
+
71
79
publish_git_tag :publish_git_tag do |t , args |
72
80
t . git_repository = %x[git config --get remote.origin.url] . split ( '://' ) [ 1 ]
73
81
t . tag_name = TravisBuildTools ::Build ::VERSION
You can’t perform that action at this time.
0 commit comments