buluma / ansible-role-jenkins Goto Github PK
View Code? Open in Web Editor NEWInstall and configure jenkins on your system.
License: Apache License 2.0
Install and configure jenkins on your system.
License: Apache License 2.0
rebuild action
steps:
- name: galaxy
# uses: buluma/[email protected] # TODO: rebuild action
uses: robertdebock/[email protected]
with:
galaxy_api_key: ${{ secrets.galaxy_api_key }}
ndex 14af24c..58ff0c8 100644
++ b/.github/workflows/molecule.yml
9c26444c298a6febdcedea4d7a87763f9ab7afe6
Update buluma/[email protected] @buluma
push:
jobs:
build:
runs-on: "ubuntu-20.04"
steps:
- uses: "actions/checkout@master"
- name: "TODO to Issue"
uses: "alstr/[email protected]" # TODO: Update buluma/[email protected] @buluma
id: "todo"
with:
TOKEN: ${{ secrets.GITHUB_TOKEN }}
ndex f1ee5e4..a5c6d5c 100644
++ b/.gitlab-ci.yml
bffd06d8b35f3bc9e7a902102313dd54a24993a1
Hello! Thanks for Jenkins role!
I use this role and add ansible code for Install default plugins (suggested plugins).
May be add Install default plugins (suggested plugins) to role? (May be not all steps)
- hosts: jenkins
become: yes
roles:
- role: buluma.java
- role: buluma.jenkins
post_tasks:
- name: get initialAdminPassword
shell: cat /var/lib/jenkins/secrets/initialAdminPassword
register: adminpwd
- name: unlock and add admin user
jenkins_script:
script: |
import jenkins.model.*
import hudson.security.*
def instance = Jenkins.getInstance()
def hudsonRealm = new HudsonPrivateSecurityRealm(false)
hudsonRealm.createAccount('jenkins', '${user_pwd}')
instance.setSecurityRealm(hudsonRealm)
def strategy = new FullControlOnceLoggedInAuthorizationStrategy()
strategy.setAllowAnonymousRead(false)
instance.setAuthorizationStrategy(strategy)
instance.save()
args:
user_pwd: "{{ adminpwd }}"
user: admin
password: "{{ adminpwd.stdout }}"
- name: complete setup wizard
jenkins_script:
script: |
import static jenkins.model.Jenkins.instance as jenkins
import jenkins.install.InstallState
if (!jenkins.installState.isSetupComplete()) {
InstallState.INITIAL_SETUP_COMPLETED.initializeState()
}
user: admin
password: "{{ adminpwd.stdout }}"
- name: Install default plugins when choice 'install suggested plugins'
jenkins_plugin:
name: "{{ item }}"
url: http://localhost:8080
url_username: "admin"
url_password: "{{ adminpwd['stdout'] }}"
register: plugin_result
until: plugin_result is success
loop:
- cloudbees-folder
- antisamy-markup-formatter
- build-timeout
- credentials-binding
- timestamper
- ws-cleanup
- ant
- gradle
- workflow-aggregator
- github-branch-source
- pipeline-github-lib
- pipeline-stage-view
- git
- ssh-slaves
- matrix-auth
- pam-auth
- ldap
- email-ext
- mailer
- name: Restart Jenkins
ansible.builtin.service:
name: jenkins
state: restarted
- name: Check Jenkins work (Get Jenkins Crumb).
ansible.builtin.uri:
force_basic_auth: yes
url_username: "admin"
url_password: "{{ adminpwd.stdout }}"
url: http://localhost:8080/crumbIssuer/api/json
return_content: yes
retries: 10
delay: 5
- name: Print adminpwd var
debug:
var: adminpwd['stdout']
- name: Print ansible_ssh_host var
debug:
var: ansible_ssh_host
Update action
steps:
- name: checkout
uses: actions/checkout@v4
with:
path: ${{ github.repository }}
- name: create png
uses: buluma/[email protected] # TODO: Update action
- name: Commit files
run: |
cd ${{ github.repository }}
ndex e6c7007..7837717 100644
++ b/.github/workflows/todo.yml
946dcfc7a7aad0211af355805aedc86f1ccbde8e
Update action
- push
name: Ansible Graphviz
jobs:
build:
runs-on: ubuntu-20.04
permissions:
contents: write
steps:
- name: checkout
uses: actions/checkout@v3
with:
path: ${{ github.repository }}
- name: create png
uses: buluma/[email protected] # TODO: Update action
- name: Commit files
run: |
cd ${{ github.repository }}
abca7ad012eecb5a2a89f799dcba230a79868340
Update buluma/[email protected] @buluma
- uses: "actions/checkout@master"
- name: "TODO to Issue"
uses: "alstr/[email protected]" # TODO: Update buluma/[email protected] @buluma
id: "todo"
with:
TOKEN: ${{ secrets.GITHUB_TOKEN }}
ndex a4cf7bc..0df217e 100644
++ b/.gitlab-ci.yml
b6b2cfef856d7cebfc3df160d1cdcb80f33b46d5
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.