This file contains hidden or 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
| bundle: | |
| name: portfolio-analyser | |
| targets: | |
| dev: | |
| default: true | |
| workspace: | |
| host: https://<your workspace URL>.cloud.databricks.com # your workspace URL | |
| mode: development |
This file contains hidden or 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 { | |
| node { | |
| label 'master' | |
| } | |
| } | |
| parameters { | |
| string defaultValue: '', description: 'Project Name. ', name: 'PROJECT_NAME', trim: true |
This file contains hidden or 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
| #!groovy | |
| def slackChannel = "#team-slackchannel" | |
| properties([ | |
| parameters([ | |
| string(name: 'releaseType', description: "major, minor, or patch", defaultValue: 'minor') | |
| ]) | |
| ]) |
This file contains hidden or 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 | |
| tools { | |
| maven 'Maven_3.6.2' | |
| jdk 'Java_1.8u161' | |
| } | |
| environment { | |
| GIT_VERSION = sh (returnStdout: true, script: 'git rev-parse HEAD | cut -c 1-10').trim() |
This file contains hidden or 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
| node("Agent001") { | |
| def server | |
| def buildInfo | |
| stage ('Checkout') { | |
| checkout scm | |
| } | |
| stage ('Artifactory configuration') { | |
| server = Artifactory.server "sprint0-artifactory" |
This file contains hidden or 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 | |
| tools { | |
| maven "mvn" | |
| } | |
| environment { | |
| DOCKER_REGISTRY = 'JFROG_ARTIFACTORY_URL' | |
| ARTIFACTORY_USERNAME= 'JFROG_ARTIFACTORY_USERNAME' |
This file contains hidden or 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
| docker login registry.XXXX.com with new container | |
| docker pull registry.XXXX..com/nativ/base-microservice:latest | |
| #ID of the last-run Container | |
| docker ps -l -q (aliased to dl) | |
| #list images | |
| docker images | |
| #list all containers | |
| docker ps -a | |
| #create a container but do not run it | |
| docker create |
This file contains hidden or 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/groovy | |
| String ocpApiServer = env.OCP_API_SERVER ? "${env.OCP_API_SERVER}" : "https://openshift.default.svc.cluster.local" | |
| node('maven') { | |
| def artifactory = Artifactory.server(env.ARTIFACTORY_SERVER) | |
| def artifactoryMaven = Artifactory.newMavenBuild() | |
| def buildInfo = Artifactory.newBuildInfo() | |
| def scannerHome = tool env.SONARQUBE_TOOL | |
| def namespace = readFile('/var/run/secrets/kubernetes.io/serviceaccount/namespace').trim() |
This file contains hidden or 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
| import json | |
| import boto3 | |
| import os | |
| import csv | |
| def get_session(env_name): | |
| return boto3.session() | |
| def list_s3_objects(env_name,bucket_name,prefix): | |
| session = get_session(env_name) | |
| s3 = session.resource('s3', verify=False) |
This file contains hidden or 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/groovy | |
| kaniko_agent = 'dot-kaniko-executor' | |
| java_agent ='dot-slave-with-java-build-tools' | |
| def server = Artifactory.server 'artifactory' | |
| def rtMaven = Artifactory.newMavenBuild() | |
| def publishBuildArtifact = true | |
| def buildInfo | |
| class DnBArtifactory { |
NewerOlder