- Check wifi status
nmcli radio wifi
- Turn on the wifi
<!DOCTYPE NETSCAPE-Bookmark-file-1> | |
<!-- This is an automatically generated file. | |
It will be read and overwritten. | |
DO NOT EDIT! --> | |
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"> | |
<TITLE>Bookmarks</TITLE> | |
<H1>Bookmarks</H1> | |
<DL><p> | |
<DT><H3 ADD_DATE="1576816453" LAST_MODIFIED="1578776782">CKAD</H3> | |
<DL><p> |
Some Jenkinsfile examples |
Jenkins script console allows one to run groovy scripts/code to automate jenkins setup e.g installing plugins, setting configuration parameters. These groovy scripts can be run either through the web ui, or event loaded as scripts using curl from command line. With these groovy scripts, jenkins configurations can be completely automated.
Lets explore this script console and learn how to write/load simple scripts.
From the jenkins UI, choose Jenkins => Manage Jenkins => Script Console . You should see script console installed, in which run the following,
// Related to https://issues.jenkins-ci.org/browse/JENKINS-26481 | |
abcs = ['a', 'b', 'c'] | |
node('master') { | |
stage('Test 1: loop of echo statements') { | |
echo_all(abcs) | |
} | |
stage('Test 2: loop of sh commands') { |
Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
#!/usr/bin/env python3 | |
# | |
# A script that runs the commands to perform Netflix's | |
# "Linux Performance Analysis in 60,000 Milliseconds" | |
# | |
# (http://techblog.netflix.com/2015/11/linux-performance-analysis-in-60s.html) | |
# | |
# First install Performance monitoring tools for Linux | |
# `apt install sysstat` | |
# |
#!groovy | |
# Best of Jenkinsfile | |
# `Jenkinsfile` is a groovy script DSL for defining CI/CD workflows for Jenkins | |
node { | |
} |
#! /usr/bin/env bash | |
JENKINS_SERVER=${1} | |
shift | |
JOBS=$* | |
CHECK_INTERVAL=30 | |
NOTIFY_CMD= | |
# NOTIFY_CMD=/usr/bin/notify-send | |
command -v rsstail >/dev/null 2>&1 || { echo >&2 "This script requires rsstail to be installed. See http://www.vanheusden.com/rsstail"; exit 1; } |