diff --git a/README.md b/README.md index 56cca750..6c739b64 100644 --- a/README.md +++ b/README.md @@ -8,3 +8,4 @@ To learn more about Kubernetes and other related topics check the following exam * [Istio around everything else series](https://rinormaloku.com/series/istio-around-everything-else/) * [Simple CI/CD for Kubernetes with Azure DevOps](https://www.orange-networks.com/blogs/224-azure-devops-ci-cd-pipeline-to-deploy-to-kubernetes) * Envoy series - to be added! +#END diff --git a/coit-backend1/Jenkinsfile b/coit-backend1/Jenkinsfile new file mode 100644 index 00000000..f4770a4b --- /dev/null +++ b/coit-backend1/Jenkinsfile @@ -0,0 +1,33 @@ +pipeline { + agent any + + stages { + stage('Checkout') { + steps { + // Pull code from version control repository + git 'https://github.com/KiruthikaES/coit-simple-microservice/coit-backend1.git' + } + } + + stage('Build') { + steps { + // Build the application + sh 'mvn clean install' + } + } + + stage('Create Artifacts') { + steps { + // Create artifacts (e.g., JAR file, WAR file) + sh 'mvn package' + } + + post { + success { + // Archive the artifacts + archiveArtifacts artifacts: '**/target/*.jar', fingerprint: true + } + } + } + } +} diff --git a/coit-backend1/pom.xml b/coit-backend1/pom.xml index 47559ec9..40777240 100644 --- a/coit-backend1/pom.xml +++ b/coit-backend1/pom.xml @@ -5,7 +5,7 @@ com.sa.web sentiment-analysis-web - 0.0.1-SNAPSHOT + 0.0.1 jar sentiment-analysis-web diff --git a/webhook-test.txt b/webhook-test.txt new file mode 100644 index 00000000..b06a6978 --- /dev/null +++ b/webhook-test.txt @@ -0,0 +1,3 @@ +webhook-test-auto triggering jenkins server-CI +testing - updated webhook url +updated