Skip to content

Instantly share code, notes, and snippets.

@dhgautam
Created September 24, 2020 18:00
Show Gist options
  • Save dhgautam/03b4886fe6cafd96679f4685f9c22fda to your computer and use it in GitHub Desktop.
Save dhgautam/03b4886fe6cafd96679f4685f9c22fda to your computer and use it in GitHub Desktop.
<?xml version='1.1' encoding='UTF-8'?>
<flow-definition plugin="workflow-job@2.40">
<actions>
<org.jenkinsci.plugins.pipeline.modeldefinition.actions.DeclarativeJobAction plugin="pipeline-model-definition@1.7.2"/>
<org.jenkinsci.plugins.pipeline.modeldefinition.actions.DeclarativeJobPropertyTrackerAction plugin="pipeline-model-definition@1.7.2">
<jobProperties/>
<triggers/>
<parameters/>
<options/>
</org.jenkinsci.plugins.pipeline.modeldefinition.actions.DeclarativeJobPropertyTrackerAction>
</actions>
<description></description>
<keepDependencies>false</keepDependencies>
<properties>
<hudson.plugins.jira.JiraProjectProperty plugin="jira@3.1.1"/>
</properties>
<definition class="org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition" plugin="workflow-cps@2.83">
<script>pipeline {
agent any
stages {
stage(&apos;Build&apos;) {
steps {
echo &quot;Running build ${env.BUILD_NUMBER} in ${env.WORKSPACE}....&quot;
}
}
stage(&apos;Test&apos;) {
steps {
echo &quot;Running tests&quot;
}
}
stage(&apos;Deploy&apos;) {
steps {
echo &quot;Running deploy&quot;
}
}
}
}</script>
<sandbox>true</sandbox>
</definition>
<triggers/>
<disabled>false</disabled>
</flow-definition>
@dhgautam
Copy link
Author

updated config

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment