-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
38 lines (33 loc) · 1.69 KB
/
Jenkinsfile
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
pipeline {
agent any
stages {
stage('checkout') {
steps {
checkout([$class: 'GitSCM', branches: [[name: '*/master']],
doGenerateSubmoduleConfigurations: false, extensions: [],
submoduleCfg: [],
userRemoteConfigs: [[url: 'https://github.com/sameena-ops/ETL_Scala.git']]])
}
}
stage('Unit Tests') {
steps {
echo "Running tests on the data provided"
sh 'java -Dsbt.log.noformat=true -jar /var/jenkins_home/tools/org.jvnet.hudson.plugins.SbtPluginBuilder_SbtInstallation/1.3.13/bin/sbt-launch.jar "testOnly extract.ValidateNoDuplicateStationEntries"'}
}
stage('Main ExtractTransform') {
steps {
echo "Extracting the required data"
sh 'java -Dsbt.log.noformat=true -jar /var/jenkins_home/tools/org.jvnet.hudson.plugins.SbtPluginBuilder_SbtInstallation/1.3.13/bin/sbt-launch.jar "runMain ExtractTransformJob /var/jenkins_home/data/2017.csv /var/jenkins_home/data/ghcnd-stations.txt"'}
}
stage('Integration Tests') {
steps {
echo "Running integration tests on the transformed data"
sh 'java -Dsbt.log.noformat=true -jar /var/jenkins_home/tools/org.jvnet.hudson.plugins.SbtPluginBuilder_SbtInstallation/1.3.13/bin/sbt-launch.jar "testOnly it.ValidateLatLonMappedCorrectlyForStations"'}
}
stage('Main LoadData') {
steps {
echo "Run the tests to check the loaded data"
sh 'java -Dsbt.log.noformat=true -jar /var/jenkins_home/tools/org.jvnet.hudson.plugins.SbtPluginBuilder_SbtInstallation/1.3.13/bin/sbt-launch.jar "runMain LoadJob /var/jenkins_home/data/2017.csv /var/jenkins_home/data/ghcnd-stations.txt"'}
}
}
}