Commit 641a50be authored by mohamadbashar.disoki's avatar mohamadbashar.disoki

update jenkinsfile

parent e360052c
# Default ignored files
/shelf/
/workspace.xml
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="MavenProjectsManager">
<option name="originalFiles">
<list>
<option value="$PROJECT_DIR$/pom.xml" />
</list>
</option>
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK" />
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="RunConfigurationProducerService">
<option name="ignoredProducers">
<set>
<option value="com.android.tools.idea.compose.preview.runconfiguration.ComposePreviewRunConfigurationProducer" />
</set>
</option>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>
\ No newline at end of file
pipeline { pipeline {
agent any agent any
tools { tools {
maven 'maven3' maven 'Maven'
jdk 'JDK8' jdk 'JDK'
} }
stages { stages {
stage('Build maven ') { stage('Build maven ') {
...@@ -22,8 +22,8 @@ pipeline { ...@@ -22,8 +22,8 @@ pipeline {
stage('Build docker image') { stage('Build docker image') {
steps { steps {
script { script {
def customImage = docker.build('initsixcloud/petclinic', "./docker") def customImage = docker.build('mhdbashar/test-deploy', "./docker")
docker.withRegistry('https://registry.hub.docker.com', 'dockerhub') { docker.withRegistry('https://registry.hub.docker.com', 'Docker-access') {
customImage.push("${env.BUILD_NUMBER}") customImage.push("${env.BUILD_NUMBER}")
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment