edit Jenkisfile

This commit is contained in:
Jakub Pogodziński 2021-03-28 13:58:35 +02:00
parent 85e4a6e33a
commit 33086fc51f
10 changed files with 82 additions and 2 deletions

8
.idea/.gitignore vendored Normal file
View File

@ -0,0 +1,8 @@
# Default ignored files
/shelf/
/workspace.xml
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml
# Editor-based HTTP Client requests
/httpRequests/

8
.idea/IUM.iml Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

View File

@ -0,0 +1,12 @@
<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="Project Default" />
<inspection_tool class="PyUnresolvedReferencesInspection" enabled="true" level="WARNING" enabled_by_default="true">
<option name="ignoredIdentifiers">
<list>
<option value="zad3.*" />
</list>
</option>
</inspection_tool>
</profile>
</component>

View File

@ -0,0 +1,6 @@
<component name="InspectionProjectProfileManager">
<settings>
<option name="USE_PROJECT_PROFILE" value="false" />
<version value="1.0" />
</settings>
</component>

4
.idea/misc.xml Normal file
View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.8 (pythonProject)" project-jdk-type="Python SDK" />
</project>

8
.idea/modules.xml Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/IUM.iml" filepath="$PROJECT_DIR$/.idea/IUM.iml" />
</modules>
</component>
</project>

6
.idea/vcs.xml Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

20
Jenkinsfile vendored
View File

@ -1,11 +1,27 @@
pipeline{ pipeline{
agent any agent any
properties([parameters([text(defaultValue: '50', description: 'Number of lines to cutoff', name: 'CUTOFF')])])
stages{ stages{
stage('Stage 1'){ stage('Stage 1'){
steps{ steps{
echo 'Hello World!' echo 'Hello World!'
checkout: Check out from version control }
sh: Shell Script }
stage('checkout: Check out from version control'){
steps{
git url: 'https://github.com/jfrogdev/project-examples.git'
}
}
stage('sh: Shell Script'){
steps{
./script.sh
}
}
stage('Archive artifacts'){
steps{
archiveArtifacts 'test.csv'
archiveArtifacts 'dev.csv'
archiveArtifacts 'train.csv'
} }
} }
} }

10
script.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash
curl -OL https://git.wmi.amu.edu.pl/s437622/ium_s437622/src/branch/master/games.csv
head -n -1 games.csv | shuf > chess.csv.shuf
wc -l chess.csv
head -n 2006 chess.csv.shuf > test.csv
head -n 4012 chess.csv.shuf | tail -n 2006 > dev.csv
tail -n +4013 chess.csv.shuf > train.csv
wc -l *.csv

2
script.sh.save Normal file
View File

@ -0,0 +1,2 @@
#!/bin/bash
curl -OL https://git.wmi.amu.edu.pl/s437622/ium_s437622/src/branch/master/chess.csv