Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create test jenkins job #1655

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
19 changes: 19 additions & 0 deletions dataeng/jobs/analytics/TestHelloWorld.groovy
@@ -0,0 +1,19 @@
package analytics
import static org.edx.jenkins.dsl.AnalyticsConstants.common_triggers
import static org.edx.jenkins.dsl.AnalyticsConstants.common_log_rotator
import static org.edx.jenkins.dsl.AnalyticsConstants.common_publishers

class TestHelloWorld {
public static def job = { dslFactory, allVars ->
dslFactory.job('test-hello-world') {
logRotator common_log_rotator(allVars)
triggers common_triggers(allVars)
wrappers {
timestamps()
}
steps {
shell(dslFactory.readFileFromWorkspace('dataeng/resources/test-hello-world.sh'))
}
}
}
}
2 changes: 2 additions & 0 deletions dataeng/jobs/createJobsNew.groovy
Expand Up @@ -3,6 +3,7 @@ import static analytics.DBTRun.job as DBTRunJob
import static analytics.DBTSourceFreshness.job as DBTSourceFreshnessJob
import static analytics.DeployCluster.job as DeployClusterJob
import static analytics.EmrCostReporter.job as EmrCostReporterJob
import static analytics.TestHelloWorld.job as TestHelloWorldJob
import static analytics.ModelTransfers.job as ModelTransfersJob
import static analytics.RetirementJobEdxTriggers.job as RetirementJobEdxTriggersJob
import static analytics.RetirementJobs.job as RetirementJobsJob
Expand Down Expand Up @@ -45,6 +46,7 @@ def taskMap = [
DBT_SOURCE_FRESHNESS_JOB: DBTSourceFreshnessJob,
DEPLOY_CLUSTER_JOB: DeployClusterJob,
EMR_COST_REPORTER_JOB: EmrCostReporterJob,
TEST_HELLO_WORLD_JOB: TestHelloWorldJob,
MODEL_TRANSFERS_JOB: ModelTransfersJob,
RETIREMENT_JOB_EDX_TRIGGERS_JOB: RetirementJobEdxTriggersJob,
RETIREMENT_JOBS_JOB: RetirementJobsJob,
Expand Down
2 changes: 2 additions & 0 deletions dataeng/resources/test-hello-world.sh
@@ -0,0 +1,2 @@
#!/usr/bin/env bash
echo "Hello World"