forked from skylark05/jpipe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMvnBuild.yml
48 lines (46 loc) · 1.37 KB
/
MvnBuild.yml
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
resources:
- name: build_info
type: BuildInfo
configuration:
sourceArtifactory: art
buildName: mvn_example_build
buildNumber: 1
- name: project_example
type: GitRepo
configuration:
gitProvider: github
path: skylark05/project-examples
pipelines:
- name: mvn_example_build
steps:
- name: build_mvn
type: MvnBuild
configuration:
sourceLocation: ./artifactory-maven-plugin-example
mvnCommand: clean install -f ./pom.xml
configFileLocation: .
configFileName: mvn-art-config
inputResources:
- name: project_example
integrations:
- name: art
execution:
onStart:
- apt install default-jdk
- pushd /tmp
- wget http://mirrors.estointernet.in/apache/maven/maven-3/3.6.1/binaries/apache-maven-3.6.1-bin.tar.gz
- tar xzvf apache-maven-3.6.1-bin.tar.gz
- export PATH=$PATH:/tmp/apache-maven-3.6.1/bin
- export M2_HOME=/tmp/apache-maven-3.6.1/
- popd
- javac -version
- mvn --version
- name: publish
type: PublishBuildInfo
configuration:
integrations:
- name: art
inputSteps:
- name: build_mvn
outputResources:
- name: build_info