pipeline { agent { dockerfile true } //Definijuemy parametry, ktore bedzie mozna podac podczas wywolywania zadania parameters { string ( name: 'CUTOFF', defaultValue: '300', description: 'How many examples do You want to cut?', trim: false ) } stages { stage('Run Script') { steps { script { //sh "chmod +x -R ${env.WORKSPACE}" //sh './take_data.sh | tee output.txt' sh 'node --version | tee output.txt' } } } stage('Archive Output') { steps { archiveArtifacts 'output.txt' } } } }