yes, you can
*e.g.*
*note : change path with your own path*
*~/.jenkins/jobs/web2py/config.xml*
<?xml version='1.0' encoding='UTF-8'?>
<flow-definition plugin="workflow-job@2.15">
  <actions>
    
<org.jenkinsci.plugins.pipeline.modeldefinition.actions.DeclarativeJobAction 
plugin="pipeline-model-definition@1.2.5"/>
    
<org.jenkinsci.plugins.pipeline.modeldefinition.actions.DeclarativeJobPropertyTrackerAction
 
plugin="pipeline-model-definition@1.2.5">
      <jobProperties/>
      <triggers/>
      <parameters/>
    
</org.jenkinsci.plugins.pipeline.modeldefinition.actions.DeclarativeJobPropertyTrackerAction>
  </actions>
  <description></description>
  <keepDependencies>false</keepDependencies>
  <properties>
    <hudson.model.ParametersDefinitionProperty>
      <parameterDefinitions>
        <alex.jenkins.plugins.FileSystemListParameterDefinition plugin=
"filesystem-list-parameter-plugin@0.0.3">
          <name>app</name>
          <description></description>
          <path>/Users/sugizo/git/web2py/</path>
          <selectedType>ALL</selectedType>
          <sortByLastModified>false</sortByLastModified>
          <sortReverseOrder>false</sortReverseOrder>
          <selectedEnumType>ALL</selectedEnumType>
          <regexIncludePattern></regexIncludePattern>
          <regexExcludePattern></regexExcludePattern>
          <formatter>
            <a class="string-builder"></a>
            <l>en_ID</l>
            <zero>0</zero>
          </formatter>
        </alex.jenkins.plugins.FileSystemListParameterDefinition>
        <hudson.model.StringParameterDefinition>
          <name>install</name>
          <description></description>
          <defaultValue></defaultValue>
        </hudson.model.StringParameterDefinition>
        <hudson.model.StringParameterDefinition>
          <name>functional_test</name>
          <description></description>
          <defaultValue></defaultValue>
        </hudson.model.StringParameterDefinition>
      </parameterDefinitions>
    </hudson.model.ParametersDefinitionProperty>
  </properties>
  <definition class="org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition" 
plugin="workflow-cps@2.42">
    <script>
pipeline {
    agent any


    stages {
        stage(&apos;Remove App&apos;) {
            steps {
                sh &apos;&apos;&apos;
# Remove App
cd
rm -rf /Users/sugizo/web2py/applications/$app
&apos;&apos;&apos;
            }
        }
        stage(&apos;Install App&apos;) {
            steps {
                sh &apos;&apos;&apos;
# Install App
cp -R /Users/sugizo/web2py/applications/welcome/ /Users/sugizo/web2py/
applications/$app
rsync -zavr /Users/sugizo/git/web2py/$app /Users/sugizo/web2py/applications/
rsync -zavur /Users/sugizo/git/web2py/$app /Users/sugizo/web2py/applications
/
&apos;&apos;&apos;
            }
        }
        stage(&apos;Generate Data&apos;) {
            steps {
                sh &apos;&apos;&apos;
# Generate Data
curl http://127.0.0.1:8000/$app/$install
&apos;&apos;&apos;
            }
        }
        stage(&apos;Functional Test&apos;) {
            steps {
                sh &apos;&apos;&apos;
# Functional Test
python /Users/sugizo/web2py/web2py.py --nogui --no-banner -S $app -M -R /
Users/sugizo/web2py/applications/$app/modules/$app\_$functional_test.py
&apos;&apos;&apos;
            }
        }
    }
}
</script>
    <sandbox>true</sandbox>
  </definition>
  <triggers/>
  <disabled>false</disabled>
</flow-definition>

best regards,
stifan

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to