docker run -it --rm --name jenkins -p '8080:8080' jenkins:alpine
- Login as Admin
- Accept the standard plugins
- Continue as Admin
- Install AnsiColor plugin
pipeline { | |
agent any | |
stages { | |
stage('Checkout') { | |
options { | |
retry(3) | |
} | |
steps { | |
//Checkout new source code |
import java.util.Properties | |
import java.nio.file.Files | |
val localProperties = Properties() | |
val localPropertiesFile = rootProject.file("local.properties").toPath() | |
if (Files.exists(localPropertiesFile)) { | |
Files.newBufferedReader(localPropertiesFile).use { reader -> | |
localProperties.load(reader) | |
} | |
} |
#!/bin/bash | |
# Usage: | |
# ./update_git_repos.sh [parent_directory] | |
# example usage: | |
# ./update_git_repos.sh C:/GitProjects/ [MAKE SURE YOU USE / SLASHES] | |
updateRepo() { | |
local dir="$1" | |
local original_dir="$2" | |
cd $dir # switch to the git repo |
package tv.freenet.selfcare.extensions | |
import android.os.Binder | |
import android.os.Bundle | |
import android.os.Parcelable | |
import androidx.core.app.BundleCompat | |
import androidx.fragment.app.Fragment | |
import org.parceler.ParcelWrapper | |
import org.parceler.Parcels |
pipeline { | |
agent { | |
// Run on a build agent where we have the Android SDK installed | |
label 'android' | |
} | |
environment { | |
// Fastlane Environment Variables | |
PATH = "$HOME/.fastlane/bin:" + | |
"$HOME/.rvm/gems/ruby-2.5.3/bin:" + | |
"$HOME/.rvm/gems/ruby-2.5.3@global/bin:" + |
#!/bin/sh | |
alias dm='docker-machine' | |
alias dmx='docker-machine ssh' | |
alias dk='docker' | |
alias dki='docker images' | |
alias dks='docker service' | |
alias dkrm='docker rm' | |
alias dkl='docker logs' | |
alias dklf='docker logs -f' |
node{ | |
timestamps{ | |
stage('Samples'){ | |
// Single quotes with no interpolation, at least not in Jenkins. | |
// The dollar variable will be evaluated before being run by the | |
// shell command, so variables which Jenkins makes available as | |
// environment variables can still be accessed from within a | |
// single-quoted string, passed to the sh task. | |
sh 'echo $PATH' |
#!/usr/bin/bash | |
# Download zeromq | |
# Ref http://zeromq.org/intro:get-the-software | |
wget https://github.com/zeromq/libzmq/releases/download/v4.2.2/zeromq-4.2.2.tar.gz | |
# Unpack tarball package | |
tar xvzf zeromq-4.2.2.tar.gz | |
# Install dependency |
/* | |
reference link ->https://www.opengeeks.me/2015/08/filechooser-and-android-webview/ | |
https://github.com/OpenGeeksMe/Android-File-Chooser | |
*/ | |
import android.app.Activity; | |
import android.app.ProgressDialog; | |
import android.content.Intent; | |
import android.graphics.Bitmap; | |
import android.net.Uri; |