Skip to content

Instantly share code, notes, and snippets.

def GIT_URL = 'https://tahoorali@bitbucket.org/talhaprojectteam/auction-teams.git'
pipeline{
agent {
node('master')
}//end agent
stages{
stage('checkout') {
steps{
git branch: 'feature/initial-setup', credentialsId: 'bitbucket', url: GIT_URL
@Tahooralisyed
Tahooralisyed / jenkins-ec2.sh
Last active February 17, 2020 10:05
jenkins amazon ec2 setup
#/bin/bash
echo "Running yum update"
sudo yum update
# https://computingforgeeks.com/how-to-install-java-11-openjdk-11-on-rhel-8/
echo "Install java 11 SDK"
sudo yum install java-11-openjdk-devel
Tutorial: https://docs.aws.amazon.com/cloud9/latest/user-guide/sample-docker.html#sample-docker-install
on following as is the tutorial, got mongodb GPG error while `apt update`.
Solved by adding commands from this url-
https://askubuntu.com/questions/842592/apt-get-fails-on-16-04-or-18-04-installing-mongodb/842599
{
"AWSTemplateFormatVersion": "2010-09-09",
"Metadata": {
"AWS::CloudFormation::Designer": {
"63dae6c8-ebdb-459b-88db-02ad5dae294a": {
"size": {
"width": 60,
"height": 60
},
"position": {
{
"AWSTemplateFormatVersion": "2010-09-09",
"Resources": {
"SQS1": {
"Type": "AWS::SQS::Queue",
"Properties": {
"VisibilityTimeout": 40,
"MessageRetentionPeriod": 1209600,
"RedrivePolicy": {
"deadLetterTargetArn": {
aws cloudformation describe-stacks
aws cloudformation create-stack --stack-name cli-V5 --template-body file://V5.json --parameters ParameterKey=ENV,ParameterValue=dev
aws cloudformation list-stacks
${fileToUpload}
${fileToUpload}
String file contents
148 grep -E monday day.txt --color
149 grep -E "[mM]onday" day.txt --color
matches both smal and big M
150 grep -E "[a-z]onday" day.txt --color
151 grep -E "[a-zA-Z]onday" day.txt --color
matches any charater followed by string 'onday'