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
| env.headTag = sh(returnStdout: true, script: 'git describe --all --exact-match `git rev-parse HEAD`').trim() | |
| echo env.headTag | |
| if (headTag =~ /^tags\/v\d+.\d+.\d+/) { | |
| currentBuild.result = 'ABORTED' | |
| error 'Ignoring build because there are no new changes' | |
| } |
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 | |
| options { | |
| disableConcurrentBuilds() | |
| } | |
| stages { | |
| stage('Checkout') { | |
| steps { | |
| deleteDir() |
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
| pluginManagement { | |
| repositories { | |
| gradlePluginPortal() | |
| } | |
| } | |
| rootProject.name = 'semantic-version' | |
| buildscript { | |
| repositories { |
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
| startingVersion = '1.0.0' | |
| tagPrefix = 'v' |
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
| plugins { | |
| id 'org.springframework.boot' version '2.1.4.RELEASE' | |
| id 'java' | |
| } | |
| apply plugin: 'io.spring.dependency-management' | |
| group = 'br.org.roger.springboot' | |
| sourceCompatibility = '1.8' |
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
| version: '3' | |
| services: | |
| mysql: | |
| image: mysql:5.7.22 | |
| ports: | |
| - 3306:3306 | |
| environment: | |
| - MYSQL_ROOT_PASSWORD=root | |
| - MYSQL_DATABASE=TIMESHEET | |
| liquibase: |
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
| #!/bin/bash | |
| git fetch --all | |
| git reset --hard origin/master | |
| mvn package | |
| mvn liquibase:update -Dliquibase-database-password=root |
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
| FROM ubuntu-jdk8-dev:latest | |
| ENV LIQUIBASE_PROJECT_DIR=${LIQUIBASE_PROJECT_DIR:-.}\ | |
| LIQUIBASE_DATABASE_DRIVER=${LIQUIBASE_DATABASE_DRIVER:-com.mysql.cj.jdbc.Driver}\ | |
| LIQUIBASE_DATABASE_URL=${LIQUIBASE_DATABASE_URL:-jdbc:mysql://localhost:3306/TIMESHEET}\ | |
| LIQUIBASE_DATABASE_USERNAME=${LIQUIBASE_DATABASE_USERNAME:-root}\ | |
| LIQUIBASE_DATABASE_PASSWORD=${LIQUIBASE_DATABASE_PASSWORD:-root} | |
| ADD ${LIQUIBASE_PROJECT_DIR} /usr/local/ubuntu-jdk8-liquibase |
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
| FROM ubuntu-jdk8:latest | |
| RUN apt-get update && apt-get install -y maven git |
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
| FROM ubuntu:16.04 | |
| RUN apt-get update && apt-get install -y python-software-properties software-properties-common | |
| RUN apt-get install -y iputils-ping | |
| RUN add-apt-repository ppa:webupd8team/java | |
| RUN apt-get install -y vim | |
| RUN echo "oracle-java8-installer shared/accepted-oracle-license-v1-1 boolean true" | debconf-set-selections | |
| RUN apt-get update && apt-get install -y oracle-java8-installer |
NewerOlder