Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
153 commits
Select commit Hold shift + click to select a range
b6c402c
Splitting pipeline
Feb 3, 2022
1208fa9
Splitting pipeline
Feb 3, 2022
8ff4f0d
Fix bug
Feb 3, 2022
1829e03
Fix bug
Feb 3, 2022
155ce13
Fix bug
Feb 3, 2022
9e384a6
Fix bug
Feb 3, 2022
f7267f1
Fix bug
Feb 3, 2022
4133a46
Fix bug
Feb 3, 2022
0c538a3
Fix bug
Feb 3, 2022
26fac23
Fix bug
Feb 3, 2022
36c4771
Fix bug
Feb 3, 2022
4b7fbdd
Splitting next
Feb 3, 2022
6d193be
Splitting next
Feb 3, 2022
007c06b
Splitting next
Feb 3, 2022
03fea9c
Splitting next
Feb 3, 2022
4833ebc
Splitting next
Feb 3, 2022
4176f6c
Splitting next
Feb 3, 2022
b73f81b
Splitting next
Feb 3, 2022
99ea077
Splitting next
Feb 3, 2022
d8b9cbf
Splitting next
Feb 3, 2022
29a40c2
Splitting next
Feb 3, 2022
3570ec3
Splitting next
Feb 3, 2022
bd6b100
Splitting next
Feb 3, 2022
6c9d0b1
Splitting next
Feb 3, 2022
4f35bee
Splitting next
Feb 3, 2022
1c40366
Splitting next
Feb 3, 2022
f731291
Splitting next
Feb 3, 2022
328a6e3
Splitting next
Feb 3, 2022
8c849c8
Splitting next
Feb 3, 2022
3c16949
Splitting next
Feb 3, 2022
ba1818f
Splitting next
Feb 3, 2022
5f558a0
Splitting next
Feb 3, 2022
f54c1f0
Splitting next
Feb 3, 2022
b17a4d0
Splitting next
Feb 3, 2022
9e65513
Splitting next
Feb 3, 2022
0654904
Splitting next
Feb 3, 2022
bd1fb49
Splitting next
Feb 3, 2022
cef9764
Splitting next
Feb 3, 2022
b1f75ed
Splitting next
Feb 3, 2022
cb16f95
Splitting next
Feb 3, 2022
b7c2ff3
Splitting next
Feb 3, 2022
ccf6b64
Splitting next
Feb 3, 2022
5f299e7
Splitting next
Feb 3, 2022
b82144e
Splitting next
Feb 3, 2022
93a09b3
Splitting next
Feb 3, 2022
e350a80
Splitting next
Feb 3, 2022
9d4359e
Splitting next
Feb 3, 2022
4a94f3d
Splitting next
Feb 3, 2022
a5afe93
Splitting next
Feb 3, 2022
52b2d86
Splitting next
Feb 3, 2022
6cc4ae6
Splitting next
Feb 3, 2022
d2b1446
Splitting next
Feb 3, 2022
ee60c1f
Splitting next
Feb 3, 2022
9b2d2c7
Splitting next
Feb 3, 2022
a4a6e91
Splitting next
Feb 3, 2022
effd980
Splitting next
Feb 3, 2022
3c05cba
Splitting next
Feb 3, 2022
19b53e4
Splitting next
Feb 3, 2022
64a71ea
Splitting next
Feb 3, 2022
ef0d27d
Splitting next
Feb 3, 2022
a9e0325
Splitting next
Feb 3, 2022
2b61ff1
Splitting next
Feb 3, 2022
02a498f
Splitting next
Feb 3, 2022
9dd21ce
Splitting next
Feb 3, 2022
59b5271
Splitting next
Feb 3, 2022
7f379a6
Splitting next
Feb 3, 2022
8b34009
Splitting next
Feb 3, 2022
96992bf
Splitting next
Feb 3, 2022
62d36de
Splitting next
Feb 3, 2022
4875daa
Splitting next
Feb 3, 2022
9a49878
Splitting next
Feb 3, 2022
bffb0c1
Splitting next
Feb 3, 2022
6c40b78
Splitting next
Feb 3, 2022
460001a
Splitting next
Feb 3, 2022
f88413e
Docker build
Feb 12, 2022
df55f96
Docker build
Feb 12, 2022
11c6bc2
Docker build
Feb 12, 2022
5317e48
Docker build
Feb 12, 2022
8644f1d
Docker build
Feb 12, 2022
9e11676
Docker build
Feb 12, 2022
b850bd1
Docker build
Feb 12, 2022
e324d62
Docker build
Feb 12, 2022
ae45401
Docker build
Feb 12, 2022
1600a06
Docker build
Feb 12, 2022
6d8235f
Docker build
Feb 12, 2022
8ee4875
Docker build
Feb 12, 2022
17788b5
Docker build
Feb 12, 2022
96527ea
Docker build
Feb 12, 2022
eab689a
Docker build
Feb 12, 2022
9434cc3
Docker build
Feb 12, 2022
c564aa5
Docker build
Feb 12, 2022
36ac356
Docker build
Feb 12, 2022
919bf01
Docker build
Feb 12, 2022
df93e24
Docker build
Feb 12, 2022
7083491
Docker build
Feb 12, 2022
3cb973f
Docker build
Feb 12, 2022
2ab8e0a
Docker build
Feb 12, 2022
132b69b
Docker build
Feb 12, 2022
14e068d
Docker build
Feb 12, 2022
20db8c5
Docker build
Feb 12, 2022
991ba8b
Docker build
Feb 12, 2022
e0824c7
Docker build
Feb 12, 2022
fe83fff
Docker build
Feb 12, 2022
85cbc24
Docker build
Feb 12, 2022
f80db9f
Docker build
Feb 12, 2022
e938b28
Docker build
Feb 12, 2022
a0f04ef
Docker build
Feb 12, 2022
11c839e
Docker build
Feb 12, 2022
7e8294a
Docker build
Feb 12, 2022
8466d2a
Docker build
Feb 12, 2022
97e5427
Docker build
Feb 12, 2022
a7d38cd
Docker build
Feb 12, 2022
04068e6
Docker build
Feb 12, 2022
ce53f9c
Docker build
Feb 12, 2022
ee7bd92
Docker build
Feb 12, 2022
8245127
Docker build
Feb 12, 2022
4650f9f
Docker build
Feb 12, 2022
828282a
Docker build
Feb 12, 2022
ec6587e
Docker build
Feb 12, 2022
92b1eb9
Docker build
Feb 12, 2022
f2a0938
Docker build
Feb 12, 2022
077b242
Docker build
Feb 12, 2022
e1a23b1
Docker build
Feb 12, 2022
92aa646
Docker build
Feb 12, 2022
f7f437d
Docker build
Feb 12, 2022
09bb83d
Docker build
Feb 12, 2022
33eb722
Docker build
Feb 12, 2022
b775377
Docker build
Feb 12, 2022
266ac06
Docker build
Feb 12, 2022
ae78357
Docker build
Feb 12, 2022
1a2ff7f
Docker build
Feb 12, 2022
dd48154
Docker build
Feb 12, 2022
1c43918
Docker build
Feb 12, 2022
017fc22
Docker build
Feb 12, 2022
2b52a02
Docker build
Feb 12, 2022
d174e16
Docker build
Feb 12, 2022
74fe4a5
Docker build
Feb 12, 2022
0389a52
Docker build
Feb 12, 2022
301c018
Docker build
Feb 12, 2022
4ff6a4b
Docker build
Feb 12, 2022
05d3751
Docker build
Feb 12, 2022
1b43efd
Docker build
Feb 12, 2022
556af13
Docker build
Feb 12, 2022
d89ac9b
Docker build
Feb 12, 2022
068d291
Docker build
Feb 12, 2022
17cb887
Docker build
Feb 12, 2022
e0044e1
Docker build
Feb 12, 2022
d300079
Docker build
Feb 12, 2022
bada58e
Docker build
Feb 12, 2022
f187b57
Docker build
Feb 12, 2022
bb041e9
Docker build
Feb 12, 2022
1863554
Docker build
Feb 12, 2022
5f63faf
Docker build
Feb 12, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 52 additions & 30 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,36 +12,58 @@ trigger:
pool:
vmImage: ubuntu-latest

steps:
- task: Maven@3
inputs:
mavenPomFile: 'pom.xml'
mavenOptions: '-Xmx3072m'
javaHomeOption: 'JDKVersion'
jdkVersionOption: '1.8'
jdkArchitectureOption: 'x64'
publishJUnitResults: true
testResultsFiles: '**/surefire-reports/TEST-*.xml'
goals: 'package'
stages:
- stage: Setup
jobs:
- template: components/ExtractAssemblyVersion.yml

- task: PythonScript@0
inputs:
scriptSource: 'inline'
script: |
print('variableInVariableGroup: $(variableInVariableGroup)')
- stage: BuildAndTest
jobs:
- job: BuildAndTest
steps:
- script: |
mkdir -p dockerfolder/static-html-directory/
displayName: Create static-html-directory

- task: PythonScript@0
inputs:
scriptSource: 'inline'
script: |
import os
print (os.environ)
- template: components/build-docker.yml
parameters:
build_Context:
- "$(System.DefaultWorkingDirectory)"
- ""
- "$(System.DefaultWorkingDirectory)"
personalDockerfile:
- "dockerfolder/Dockerfile"
- "dockerfolder/DockerfileHttpd"
service:
- ingest_service
- metadata_tools
- management_service
- ingest_service
- query_service
- processing_service
- landing_zone

- task: github-pr-comment@0
inputs:
userToken: '$(githubToken)'
repository: '$(Build.Repository.Name)'
prNumber: '$(System.PullRequest.PullRequestNumber)'
bodyFilePath: ""
extension: 'txt'
getSubFolders: true
# - stage: BuildAndTest
# jobs:
# - job: BuildAndTest
# steps:
# - template: components/maven.yml
# - job: Python
# steps:
# - template: components/python.yml
# - job: GithubPrComment
# steps:
# - template: components/github-pr-comment.yml
# - stage: DockerBuild
# jobs:
# - job: Build
# steps:
# - script: |
# mkdir -p dockerfolder/static-html-directory/
# displayName: Create static-html-directory
# - ${{ each dockerfilename in parameters.dockerfilenames }}:
# - ${{ each personaltag in parameters.personaltags }}:
# - template: components/build-docker.yml
# parameters:
# dockerfilename: ${{ dockerfilename }}
# personaltag: ${{ personaltag }}
5 changes: 5 additions & 0 deletions components/ExtractAssemblyVersion.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
jobs:
- job: ExtractAssemblyVersion
steps:
- bash: |
cat /etc/os-release | grep '^VERSION' /etc/os-release
36 changes: 36 additions & 0 deletions components/build-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
parameters:
- name: service
type: object
default: {}
- name: personalDockerfile
type: object
default: {}
- name: build_Context
type: object
default: {}
steps:
- ${{ each srvc in parameters.service }}:
- task: Docker@2
inputs:
containerRegistry: 'DockerHub'
repository: '${{ srvc }}'
command: 'build'
each dfl in parameters.personalDockerfile:
Dockerfile: '${{ dfl }}'
each blx in parameters.build_Context:
buildContext: '${{ blx }}'
tags: '$(Build.BuildId)'
addPipelineData: false
addBaseImageData: false
displayName: Docker build ${{ srvc }} with '${{ dfl }}'

# - name: dockerfilename
# type: object
# default:
# - "dockerfolder/Dockerfile"
# - "dockerfolder/DockerfileHttpd"
# - name: personaltag
# type: object
# default:
# - "$(Build.BuildId)"
# - "$(Build.BuildNumber)"
9 changes: 9 additions & 0 deletions components/github-pr-comment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
steps:
- task: github-pr-comment@0
inputs:
userToken: '$(githubToken)'
repository: '$(Build.Repository.Name)'
prNumber: '$(System.PullRequest.PullRequestNumber)'
bodyFilePath: ""
extension: 'txt'
getSubFolders: true
12 changes: 12 additions & 0 deletions components/maven.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
steps:
- task: Maven@3
inputs:
mavenPomFile: 'pom.xml'
mavenOptions: '-Xmx3072m'
javaHomeOption: 'JDKVersion'
jdkVersionOption: '1.8'
jdkArchitectureOption: 'x64'
publishJUnitResults: true
testResultsFiles: '**/surefire-reports/TEST-*.xml'
goals: 'package'
displayName: Maven
15 changes: 15 additions & 0 deletions components/python.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
steps:
- task: PythonScript@0
inputs:
scriptSource: 'inline'
script: |
print('variableInVariableGroup: $(variableInVariableGroup)')
displayName: PythonScript1

- task: PythonScript@0
inputs:
scriptSource: 'inline'
script: |
import os
print (os.environ)
displayName: PythonScript2
2 changes: 2 additions & 0 deletions dockerfolder/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FROM nginx
COPY dockerfolder/static-html-directory /usr/share/nginx/html
2 changes: 2 additions & 0 deletions dockerfolder/DockerfileHttpd
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FROM httpd:2.4
COPY dockerfolder/static-html-directory /usr/share/nginx/html
9 changes: 9 additions & 0 deletions dockerfolder/static-html-directory/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<title>Basic Web Page</title>
</head>
<body>
Hello World!
</body>
</html>