Amazon changed the install in Linux 2. One no-longer using 'yum' See: https://aws.amazon.com/amazon-linux-2/release-notes/
sudo amazon-linux-extras install docker
sudo service docker start
sudo usermod -a -G docker ec2-user| ./AaronO/go-git-http/.git | |
| ./ActiveState/tail/.git | |
| ./adriaandejonge/helloworld/.git | |
| ./ajhager/engi/.git | |
| ./ajstarks/svgo/.git | |
| ./andelf/go-curl/.git | |
| ./apcera/nats/.git | |
| ./armon/circbuf/.git | |
| ./armon/consul-api/.git | |
| ./armon/consul-kv/.git |
| Some Jenkinsfile examples |
Amazon changed the install in Linux 2. One no-longer using 'yum' See: https://aws.amazon.com/amazon-linux-2/release-notes/
sudo amazon-linux-extras install docker
sudo service docker start
sudo usermod -a -G docker ec2-user| [alias] | |
| ## | |
| # One letter alias for our most frequent commands. | |
| # | |
| # Guidelines: these aliases do not use options, because we want | |
| # these aliases to be easy to compose and use in many ways. | |
| ## | |
| a = add |
| def getProjectName() { | |
| return 'JenkinsPipeline' | |
| } | |
| def getJDKVersion() { | |
| return 'jdk1.8.0_101' | |
| } | |
| def getMavenConfig() { | |
| return 'maven-config' |
| def release = false | |
| pipeline { | |
| agent any | |
| options { | |
| timestamps() | |
| disableConcurrentBuilds() | |
| } |
| #!/bin/bash | |
| set -euo pipefail | |
| <...> | |
| echo "Checking that agent is running" | |
| until $(curl --output /dev/null --silent --head --fail http://localhost:51678/v1/metadata); do | |
| printf '.' | |
| sleep 1 | |
| done | |
| exit_code=$? | |
| printf "\nDone\n" |
| version: 0.2 | |
| phases: | |
| install: | |
| commands: | |
| - echo Entered the install phase... | |
| - pip install -r requirements.txt | |
| build: | |
| commands: | |
| - echo Entered the build phase... |