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
driver: org.postgresql.Driver | |
classpath: ./lib/postgresql-42.2.5.jar | |
url: jdbc:postgresql://localhost:5432/sampledb | |
username: adminUsername | |
password: adminUserPassword | |
changeLogFile: src/main/resources/db.changelog.xml |
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
stages: | |
- stage: Build | |
jobs: | |
- job: Build | |
pool: | |
vmImage: 'Ubuntu-16.04' | |
continueOnError: true | |
steps: | |
- script: echo "hello to my first Build" | |
- stage: dev_deploy |
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
#This gist is related to blog post https://mohitgoyal.co/2017/02/08/securing-your-jenkins-environment-and-configure-for-auditing/ | |
# Generate certificate csr | |
openssl req -new > new.ssl.csr | |
# Create a key file for generating certificate | |
openssl rsa -in privkey.pem -out new.cert.key | |
# Create a csr file using the key file for 635 days | |
openssl x509 -in new.ssl.csr -out new.cert.cert -req -signkey new.cert.key -days 365 |
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
function Update-AssemblyInfoVersionFile | |
{ | |
Param | |
( | |
[Parameter(Mandatory=$true)] | |
[string]$productVersion | |
) | |
$buildNumber = $env:BUILD_BUILDNUMBER | |
if ($buildNumber -eq $null) |
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
#!/usr/bin/env python | |
import smtplib | |
from email.mime.text import MIMEText | |
from subprocess import check_output | |
# Get the git log --stat entry of the new commit | |
log = check_output(['git', 'log', '-1', '--stat', 'HEAD']) | |
# Create a plaintext email message | |
msg = MIMEText("Look, I'm actually doing some work:\n\n%s" % log) |
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
{ | |
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"storageAccountType": { | |
"type": "string", | |
"defaultValue": "Standard_LRS", | |
"allowedValues": [ | |
"Standard_LRS", | |
"Standard_GRS", |
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
# Enter superuser mode | |
sudo su | |
# Register the Microsoft RedHat repository | |
curl https://packages.microsoft.com/config/rhel/7/prod.repo > /etc/yum.repos.d/microsoft.repo | |
# Exit superuser mode | |
exit | |
# Install PowerShell |
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
liquibase | |
--driver=com.microsoft.sqlserver.jdbc.SQLServerDriver | |
--classpath="C:\\Program Files\\Microsoft JDBC Driver 6.0 for SQL Server\\sqljdbc_6.0\\enu\\jre8" | |
--url="jdbc:sqlserver://localhost:1433;databaseName=AdventureWorks2017;integratedSecurity=false;" | |
--changeLogFile="D:\Source\generateChangeLog--PersonSchema.xml" | |
--username=liquibase | |
--password=liquibase@123 | |
--logLevel=info | |
--defaultSchemaName=dbo | |
--diffTypes=data |
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
{ | |
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"appServiceName": { | |
"type": "string", | |
"minLength": 1, | |
"maxLength": 10 | |
}, | |
"appServicePlanName": { |
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
stages: | |
- stage: Build_Source_Code # Build Source Code for Dotnet Core Web App | |
jobs: | |
- job: Build | |
pool: 'Hosted VS2017' | |
variables: | |
buildConfiguration: 'Release' | |
continueOnError: false | |
steps: | |
- task: DotNetCoreCLI@2 |
NewerOlder