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

jenkins-controller: Changes to support hw-testing #185

Merged
merged 3 commits into from
Jun 27, 2024
Merged
Changes from all commits
Commits
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
26 changes: 25 additions & 1 deletion hosts/azure/jenkins-controller/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ in {
extraJavaOptions = [
# Useful when the 'sh' step fails:
"-Dorg.jenkinsci.plugins.durabletask.BourneShellScript.LAUNCH_DIAGNOSTICS=true"
# If we want to allow robot framework reports, we need to adjust Jenkins CSP:
# https://plugins.jenkins.io/robot/#plugin-content-log-file-not-showing-properly
"-Dhudson.model.DirectoryBrowserSupport.CSP=\"sandbox allow-scripts; default-src 'none'; img-src 'self' data: ; style-src 'self' 'unsafe-inline' data: ; script-src 'self' 'unsafe-inline' 'unsafe-eval';\""
# Point to configuration-as-code config
"-Dcasc.jenkins.config=${jenkins-casc}"
];
Expand Down Expand Up @@ -170,6 +173,25 @@ in {
};
};
}
{
job = {
name = "ghaf-test-boot";
project-type = "pipeline";
pipeline-scm = {
scm = [
{
git = {
url = "https://github.com/tiiuae/ghaf-jenkins-pipeline.git";
clean = true;
branches = ["*/main"];
};
}
];
script-path = "ghaf-test-boot.groovy";
lightweight-checkout = true;
};
};
}
];
};
};
Expand Down Expand Up @@ -220,7 +242,9 @@ in {
# Install plugins
jenkins-cli ${jenkins-auth} install-plugin \
"workflow-aggregator" "github" "timestamper" "pipeline-stage-view" "blueocean" \
"pipeline-graph-view" "github-pullrequest" "antisamy-markup-formatter" "configuration-as-code" "slack"
"pipeline-graph-view" "github-pullrequest" "antisamy-markup-formatter" \
"configuration-as-code" "slack" "pipeline-utility-steps" "pipeline-build-step" \
"robot"

# Disable initial install
jenkins-cli ${jenkins-auth} groovy = < ${jenkins-groovy}
Expand Down
Loading