forked from luwrain/parent
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added Jenkinsfile and files for creating Jenkins container with seed job
- Loading branch information
Showing
4 changed files
with
105 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
pipeline { | ||
agent any | ||
|
||
environment { | ||
JAVA_HOME = "/usr/lib/jvm/java-17-openjdk-amd64" | ||
} | ||
|
||
stages { | ||
|
||
stage('Checkout') { | ||
steps { | ||
sh 'git submodule update --init --recursive' | ||
} | ||
} | ||
|
||
stage('Build') { | ||
steps { | ||
sh 'mvn install' | ||
dir('base/scripts') { | ||
sh './lwr-ant-gen-all' | ||
sh './lwr-build' | ||
} | ||
} | ||
} | ||
|
||
stage('Generate dist') { | ||
steps { | ||
sh './lwr-dist-linux /tmp/lwr' | ||
} | ||
} | ||
|
||
stage('Generate deb') { | ||
steps { | ||
|
||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM jenkins/jenkins:latest | ||
ENV JAVA_OPTS -Djenkins.install.runSetupWizard=false | ||
ENV CASC_JENKINS_CONFIG /var/jenkins_home/casc.yaml | ||
COPY --chown=jenkins:jenkins plugins.txt /usr/share/jenkins/ref/plugins.txt | ||
RUN jenkins-plugin-cli -f /usr/share/jenkins/ref/plugins.txt | ||
COPY casc.yaml /var/jenkins_home/casc.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
jenkins: | ||
securityRealm: | ||
local: | ||
allowsSignup: false | ||
users: | ||
- id: "admin" | ||
password: "admin" | ||
- id: "dev" | ||
password: "dev" | ||
authorizationStrategy: | ||
globalMatrix: | ||
permissions: | ||
- "Job/Build:dev" | ||
- "Job/Cancel:dev" | ||
- "Job/Read:dev" | ||
- "Job/Workspace:dev" | ||
- "Overall/Administer:admin" | ||
- "Overall/Read:authenticated" | ||
- "Run/Replay:dev" | ||
- "Run/Update:dev" | ||
|
||
unclassified: | ||
jobs: | ||
- script: > | ||
folder('testjobs') | ||
- script: > | ||
pipelineJob('testjobs/default-agent') { | ||
definition { | ||
cpsScm { | ||
scm { | ||
git { | ||
remote { | ||
url('https://github.com/egusator/parent.git') | ||
branch('*/master') | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
ant:latest | ||
antisamy-markup-formatter:latest | ||
build-timeout:latest | ||
cloudbees-folder:latest | ||
configuration-as-code:latest | ||
credentials-binding:latest | ||
email-ext:latest | ||
git:latest | ||
github-branch-source:latest | ||
gradle:latest | ||
job-dsl:latest | ||
ldap:latest | ||
mailer:latest | ||
matrix-auth:latest | ||
pam-auth:latest | ||
pipeline-github-lib:latest | ||
pipeline-stage-view:latest | ||
ssh-slaves:latest | ||
timestamper:latest | ||
workflow-aggregator:latest | ||
ws-cleanup:latest |