This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pipeline { | |
agent any | |
stages { | |
stage("Code Checkout") { | |
steps { | |
git branch: 'master', | |
//The repository containing the sonar-project.properties | |
url: 'https://github.com/pretty25/jenkins-git-integration.git' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: nginx | |
spec: | |
selector: | |
matchLabels: | |
app: nginx | |
replicas: 1 | |
template: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> | |
<script> | |
$(document).ready(function(){ | |
$("button").click(function(){ | |
var str = $("#idOfBikePoint").val(); | |
var url ="https://api.tfl.gov.uk/Place/"+str; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: "remove old PortalAPI folder" | |
win_file: | |
path: '{{ deploy_staging_dir }}\PortalAPI' | |
state: absent | |
- name: create download dir on controlhost | |
file: | |
path="/tmp/{{ PROJECT }}" | |
state=directory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Deploy to Azure Kubernetes Service | |
# Build and push image to Azure Container Registry; Deploy to Azure Kubernetes Service | |
trigger: | |
- master | |
resources: | |
- repo: self | |
variables: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
az configure --defaults location=westus2 | |
# resourceSuffix=$RANDOM | |
# webName="java-container-cicd-${resourceSuffix}" | |
# registryName="javacontainercicd${resourceSuffix}" | |
# dbServerName="java-container-cicd-${resourceSuffix}" | |
# rgName='java-containers-cicd-rg' | |
# planName='java-container-cicd-asp' | |
# az group create --name $rgName |