Skip to content

Commit

Permalink
fix: add s3 to bq integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
shashank-google committed Oct 10, 2024
1 parent e1ef749 commit 1c8f3a8
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions java/.ci/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ pipeline {
'''.stripIndent(),
returnStdout: true
).trim()

S3_USER = credentials('aws-s3-ro-credentials')
}
stages {
stage('Prepare Environment'){
Expand Down Expand Up @@ -333,6 +335,29 @@ EOF
}
}
}
stage('S3 TO BigQuery (avro)'){
steps {
retry(count: stageRetryCount) {
sh '''
export SKIP_BUILD=true
cd java
bin/start.sh \
-- --template S3TOBIGQUERY \
--templateProperty project.id=yadavaja-sandbox \
--templateProperty s3.bq.access.key=$S3_USER \
--templateProperty s3.bq.secret.key=$S3_USER_PSW \
--templateProperty s3.bq.input.format=avro \
--templateProperty s3.bq.input.location=s3a://dataproc-templates-integration-tests/cities.avro \
--templateProperty s3.bq.output.dataset.name=dataproc_templates \
--templateProperty s3.bq.output.table.name=s3_to_bq_avro \
--templateProperty s3.bq.output.mode=Overwrite \
--templateProperty s3.bq.ld.temp.bucket.name=dataproc-templates
'''
}
}
}
}
}
stage('Parallel Execution 3'){
Expand Down

0 comments on commit 1c8f3a8

Please sign in to comment.